]>
git.gir.st - tmk_keyboard.git/blob - tmk_core/tool/mbed/mbed-sdk/workspace_tools/data/rpc/class.cpp
1 class Rpc
{{name
}} : public RPC
{
3 Rpc
{{name
}}({{cons_proto
}}) : RPC(name
), o({{cons_call
}}) {}
7 virtual const struct rpc_method
*get_rpc_methods() {
8 static const rpc_method rpc_methods
[] = {
14 static struct rpc_class
*get_rpc_class() {
15 static const rpc_function funcs
[] = {
16 {"new", rpc_function_caller
<const char*, {{cons_type
}}, &RPC::construct
<Rpc
{{name
}}, {{cons_type
}}> >},
19 static rpc_class c
= {"{{name}}", funcs
, NULL
};