Clone of official tools

Committer:
screamer
Date:
Thu Jul 14 20:21:19 2016 +0100
Revision:
13:ab47a20b66f0
Apply latest tools

Who changed what in which revision?

UserRevisionLine numberNew contents of line
screamer 13:ab47a20b66f0 1 class Rpc{{name}} : public RPC {
screamer 13:ab47a20b66f0 2 public:
screamer 13:ab47a20b66f0 3 Rpc{{name}}({{cons_proto}}) : RPC(name), o({{cons_call}}) {}
screamer 13:ab47a20b66f0 4
screamer 13:ab47a20b66f0 5 {{methods}}
screamer 13:ab47a20b66f0 6
screamer 13:ab47a20b66f0 7 virtual const struct rpc_method *get_rpc_methods() {
screamer 13:ab47a20b66f0 8 static const rpc_method rpc_methods[] = {
screamer 13:ab47a20b66f0 9 {{rpc_methods}},
screamer 13:ab47a20b66f0 10 RPC_METHOD_SUPER(RPC)
screamer 13:ab47a20b66f0 11 };
screamer 13:ab47a20b66f0 12 return rpc_methods;
screamer 13:ab47a20b66f0 13 }
screamer 13:ab47a20b66f0 14 static struct rpc_class *get_rpc_class() {
screamer 13:ab47a20b66f0 15 static const rpc_function funcs[] = {
screamer 13:ab47a20b66f0 16 {"new", rpc_function_caller<const char*, {{cons_type}}, &RPC::construct<Rpc{{name}}, {{cons_type}}> >},
screamer 13:ab47a20b66f0 17 RPC_METHOD_END
screamer 13:ab47a20b66f0 18 };
screamer 13:ab47a20b66f0 19 static rpc_class c = {"{{name}}", funcs, NULL};
screamer 13:ab47a20b66f0 20 return &c;
screamer 13:ab47a20b66f0 21 }
screamer 13:ab47a20b66f0 22 private:
screamer 13:ab47a20b66f0 23 {{name}} o;
screamer 13:ab47a20b66f0 24 };