mirror of
https://github.com/haiwen/libsearpc.git
synced 2025-09-04 14:24:46 +00:00
Add _async suffix for generated async RPC functions.
This commit is contained in:
@@ -126,7 +126,7 @@ main(int argc, char *argv[])
|
||||
rpc_client->async_arg = (void *)(long)transport;
|
||||
|
||||
/* call the client-side funcion */
|
||||
searpc_strlen(rpc_client, "hello searpc", strlen_callback, "user data");
|
||||
searpc_strlen_async(rpc_client, "hello searpc", strlen_callback, "user data");
|
||||
|
||||
/* call the transport to receive response */
|
||||
transport_read (transport);
|
||||
|
@@ -339,7 +339,7 @@ def gen_dfun_macro_list():
|
||||
async_dfun_template = r"""
|
||||
#define SEARPC_CLIENT_ASYNC_DEFUN_${RET_TYPE}__${ARG_TYPES}(funcname, gtype) \
|
||||
static int \
|
||||
funcname (SearpcClient *client, ${args} \
|
||||
funcname##_async (SearpcClient *client, ${args} \
|
||||
AsyncCallback callback, void *user_data) \
|
||||
{ \
|
||||
char *fcall; \
|
||||
|
Reference in New Issue
Block a user