From 0228a79c97fd14c54a1bc53bd4751919eccc4d3e Mon Sep 17 00:00:00 2001 From: Shuai Lin Date: Wed, 15 Jun 2016 14:48:04 +0800 Subject: [PATCH] Improved client headers to be used in c++ forward declaration. --- lib/searpc-client.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/searpc-client.h b/lib/searpc-client.h index 3d67ca6..439e32b 100644 --- a/lib/searpc-client.h +++ b/lib/searpc-client.h @@ -22,13 +22,15 @@ typedef int (*AsyncTransportSend)(void *arg, gchar *fcall_str, typedef void (*AsyncCallback) (void *result, void *user_data, GError *error); -typedef struct { +struct _SearpcClient { TransportCB send; void *arg; AsyncTransportSend async_send; void *async_arg; -} SearpcClient; +}; + +typedef struct _SearpcClient SearpcClient; SearpcClient *searpc_client_new ();