Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions lib/searpc-client.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ extern "C" {
#define DFT_DOMAIN g_quark_from_string(G_LOG_DOMAIN)
#endif

#define LIBSEARPC_ASYNC_API_WORKS 1

typedef char *(*TransportCB)(void *arg, const gchar *fcall_str,
size_t fcall_len, size_t *ret_len);

Expand All @@ -36,7 +38,7 @@ typedef void (*AsyncCallback) (void *result, void *user_data, GError *error);
struct _SearpcClient {
TransportCB send;
void *arg;

AsyncTransportSend async_send;
void *async_arg;
};
Expand Down Expand Up @@ -88,7 +90,7 @@ searpc_client_transport_send (SearpcClient *client,
size_t fcall_len,
size_t *ret_len);


#if LIBSEARPC_ASYNC_API_WORKS

LIBSEARPC_API int
searpc_client_async_call__int (SearpcClient *client,
Expand Down Expand Up @@ -128,6 +130,7 @@ searpc_client_async_call__json (SearpcClient *client,
AsyncCallback callback, void *cbdata,
int n_params, ...);

#endif

/* called by the transport layer, the rpc layer should be able to
* modify the str, but not take ownership of it */
Expand Down