1
0
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:
killing
2011-11-02 20:37:54 +08:00
parent 7fef7aa31e
commit 12770eed2c
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -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; \