Skip to content

Commit

Permalink
add Remoting_SiteApi manually for legacyhaxelib
Browse files Browse the repository at this point in the history
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
Simn committed Nov 17, 2023
1 parent 79384b8 commit 70ff6b6
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hx4compat
2 changes: 1 addition & 1 deletion src/legacyhaxelib/Main.hx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ enum Answer {
Always;
}

class SiteProxy extends haxe.remoting.Proxy<legacyhaxelib.SiteApi> {
class SiteProxy extends legacyhaxelib.Remoting_SiteApi {
}

class Progress extends haxe.io.Output {
Expand Down
18 changes: 18 additions & 0 deletions src/legacyhaxelib/Remoting_SiteApi.hx
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]);
}

0 comments on commit 70ff6b6

Please sign in to comment.