void test_searpc__simple_call_async (void) { searpc_client_async_call__string (client, "get_substring", simple_callback, NULL, 2, "string", "hello", "int", 2); searpc_client_async_call__string (client, "get_substring", simple_callback_error, NULL, 2, "string", "hello", "int", 10); }
int ccnet_get_binding_email_async (SearpcClient *client, const char *peer_id, AsyncCallback callback, void *user_data) { return searpc_client_async_call__string ( client, "get_binding_email", callback, user_data, 1, "string", peer_id); }
int seafile_get_config_async (SearpcClient *client, const char *key, AsyncCallback callback, void *user_data) { if (!key) return -1; return searpc_client_async_call__string ( client, "seafile_get_config", callback, user_data, 1, "string", key); }
int seafile_create_repo_async (SearpcClient *client, const gchar *name, const gchar *description, const gchar *worktree, const gchar *passwd, const gchar *relay_id, int keep_local_history, AsyncCallback callback, void *user_data) { g_return_val_if_fail (client && name && description && worktree, -1); return searpc_client_async_call__string ( client, "seafile_create_repo", callback, user_data, 6, "string", name, "string", description, "string", worktree, "string", passwd, "string", relay_id, "int", keep_local_history); }