summaryrefslogtreecommitdiffstats
path: root/include/afb
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-05-31 12:31:23 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-05-31 12:31:23 +0200
commitacf0c66981ef55bf212352442e2673fdfe4a5505 (patch)
treedcb35aba7f2e85eedf519fb9ea0de76336c0689f /include/afb
parent9ee5ae1883c58527f9cb63b7bafeb2f1d59e37ec (diff)
Introduce typedef for clients
Change-Id: Idb71c3ae869046f568166d239cf5addd31d42c6f Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'include/afb')
-rw-r--r--include/afb/afb-binding.h31
1 files changed, 30 insertions, 1 deletions
diff --git a/include/afb/afb-binding.h b/include/afb/afb-binding.h
index a7872517..b1830184 100644
--- a/include/afb/afb-binding.h
+++ b/include/afb/afb-binding.h
@@ -53,6 +53,35 @@
#include "afb-binding-v1.h"
#include "afb-binding-v2.h"
+typedef struct afb_verb_desc_v1 afb_verb_desc_v1;
+typedef struct afb_binding_desc_v1 afb_binding_desc_v1;
+typedef struct afb_binding_v1 afb_binding_v1;
+typedef struct afb_binding_interface_v1 afb_binding_interface_v1;
+
+typedef struct afb_verb_v2 afb_verb_v2;
+typedef struct afb_binding_v2 afb_binding_v2;
+
+typedef enum afb_auth_type afb_auth_type;
+typedef struct afb_auth afb_auth;
+typedef struct afb_daemon afb_daemon;
+typedef struct afb_event afb_event;
+typedef struct afb_arg afb_arg;
+typedef struct afb_req afb_req;
+typedef struct afb_service afb_service;
+
+#if 0
+/* these typedef's shouldn't be needed */
+typedef enum afb_binding_type_v1 afb_binding_type_v1;
+typedef enum afb_mode_v1 afb_mode_v1;
+typedef enum afb_session_flags_v1 afb_session_flags_v1;
+typedef enum afb_session_flags_v2 afb_session_flags_v2;
+typedef struct afb_binding_data_v2 afb_binding_data_v2;
+typedef struct afb_daemon_itf afb_daemon_itf;
+typedef struct afb_event_itf afb_event_itf;
+typedef struct afb_req_itf afb_req_itf;
+typedef struct afb_service_itf afb_service_itf;
+#endif
+
/***************************************************************************************************/
#if AFB_BINDING_VERSION == 1
@@ -130,7 +159,6 @@
#if AFB_BINDING_VERSION == 2
# define afb_binding afb_binding_v2
-# define afb_binding_interface afb_binding_interface_v2
# define AFB_SESSION_NONE AFB_SESSION_NONE_V2
# define AFB_SESSION_CLOSE AFB_SESSION_CLOSE_V2
@@ -175,3 +203,4 @@
#define afb_service_call_sync afb_service_call_sync_v2
#endif
+