struct afb_context;
struct afb_xreq;
-struct afb_binding_v2;
-struct afb_binding_data_v2;
struct afb_api_v3;
struct afb_api_x3;
struct afb_event_x2;
int (*creator)(void*, struct afb_api_x3*),
void *closure);
-extern struct afb_export *afb_export_create_v2(struct afb_apiset *declare_set,
- struct afb_apiset *call_set,
- const char *apiname,
- const struct afb_binding_v2 *binding,
- struct afb_binding_data_v2 *data,
- int (*init)(),
- void (*onevent)(const char*, struct json_object*),
- const char* path);
-
extern struct afb_export *afb_export_create_v3(struct afb_apiset *declare_set,
struct afb_apiset *call_set,
const char *apiname,
int (*preinit)(void *,struct afb_api_x3*),
void *closure);
-extern int afb_export_handle_events_v12(
- struct afb_export *export,
- void (*on_event)(const char *event, struct json_object *object));
-
-
extern int afb_export_handle_events_v3(
struct afb_export *export,
void (*on_event)(struct afb_api_x3 *api, const char *event, struct json_object *object));
#endif
+#if WITH_LEGACY_BINDING_V2
+
+struct afb_binding_v2;
+struct afb_binding_data_v2;
+
+extern struct afb_export *afb_export_create_v2(struct afb_apiset *declare_set,
+ struct afb_apiset *call_set,
+ const char *apiname,
+ const struct afb_binding_v2 *binding,
+ struct afb_binding_data_v2 *data,
+ int (*init)(),
+ void (*onevent)(const char*, struct json_object*),
+ const char* path);
+
+#endif
+
+#if WITH_LEGACY_BINDING_V1 || WITH_LEGACY_BINDING_V2
+extern int afb_export_handle_events_v12(
+ struct afb_export *export,
+ void (*on_event)(const char *event, struct json_object *object));
+#endif
+
+