template EVRPC_REGISTER(string base, string name, string request, string reply, string callback, string cbarg)
extern (C) nothrow
enum EVRPC_REGISTER =
"
evrpc_register_generic(" ~ base ~ ", `" ~ name ~ "`,
(ExternC!(void function(evrpc_req_generic*, void*)) )" ~ callback ~ ", " ~ cbarg ~ ",
(ExternC!(void* function(void*)) )" ~ request ~ "_new, NULL,
(ExternC!(void function(void*)) )" ~ request ~ "_free,
(ExternC!(int function(void*, evbuffer*)) )" ~ request ~ "_unmarshal,
(ExternC!(void* function(void*)) )" ~ reply ~ "_new, NULL,
(ExternC!(void function(void*)) )" ~ reply ~ "_free,
(ExternC!(int function(void*)) )" ~ reply ~ "_complete,
(ExternC!(void function(evbuffer*, void*)) )" ~ reply ~ "_marshal)
";