forked from HaxeFoundation/haxelib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add Remoting_SiteApi manually for legacyhaxelib
I can't get it to work with the macro because everything is in one file and that leads to problems. Having a pre-expanded version for the legacy code should be fine.
- Loading branch information
Showing
3 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
Submodule hx4compat
updated
2 files
+12 −0 | std/haxe/remoting/Proxy.hx | |
+84 −0 | std/haxe/remoting/ProxyBuilder.macro.hx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package legacyhaxelib; | ||
|
||
class Remoting_SiteApi { | ||
public function new(c:haxe.remoting.Connection) { | ||
this.__cnx = c; | ||
} | ||
var __cnx : haxe.remoting.Connection; | ||
public function search(word:String):List<{ public var name(default, default) : String; public var id(default, default) : StdTypes.Int; }> return __cnx.resolve("search").call([word]); | ||
public function infos(project:String):legacyhaxelib.Data.ProjectInfos return __cnx.resolve("infos").call([project]); | ||
public function user(name:String):legacyhaxelib.Data.UserInfos return __cnx.resolve("user").call([name]); | ||
public function register(name:String, pass:String, mail:String, fullname:String):StdTypes.Bool return __cnx.resolve("register").call([name, pass, mail, fullname]); | ||
public function isNewUser(name:String):StdTypes.Bool return __cnx.resolve("isNewUser").call([name]); | ||
public function checkDeveloper(prj:String, user:String):StdTypes.Void __cnx.resolve("checkDeveloper").call([prj, user]); | ||
public function checkPassword(user:String, pass:String):StdTypes.Bool return __cnx.resolve("checkPassword").call([user, pass]); | ||
public function getSubmitId():String return __cnx.resolve("getSubmitId").call([]); | ||
public function processSubmit(id:String, user:String, pass:String):String return __cnx.resolve("processSubmit").call([id, user, pass]); | ||
public function postInstall(project:String, version:String):StdTypes.Void __cnx.resolve("postInstall").call([project, version]); | ||
} |