#ifndef UCS2BINDING_H
#define UCS2BINDING_H
-// Use Version of AGL Application Framework API
-#define AFB_BINDING_VERSION 2
-
#ifndef PUBLIC
#define PUBLIC
#endif
#define STATIC static
-#include <json-c/json.h>
+/* binding is using the application framework API V2
+ * the compile option "AFB_BINDING_VERSION=2" is located
+ * in conf.d/project/config.cmake */
#include <afb/afb-binding.h>
-
+#include <json-c/json.h>
#include "ucs_interface.h"
#ifndef CONTROL_CDEV_TX
extern struct afb_service afbSrv;
// API verbs prototype
-PUBLIC void ucs2_configure (struct afb_req request);
-PUBLIC void ucs2_volume (struct afb_req request);
-PUBLIC void ucs2_monitor (struct afb_req request);
-PUBLIC void ucs2_writei2c (struct afb_req request);
+PUBLIC int ucs2_initbinding(afb_api_t api);
+PUBLIC void ucs2_configure (afb_req_t request);
+PUBLIC void ucs2_subscribe (afb_req_t request);
+PUBLIC void ucs2_writei2c (afb_req_t request);
#endif /* UCS2BINDING_H */