Code Review
/
apps
/
agl-service-unicens.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
agl-service-unicens: move definition of api v2
[apps/agl-service-unicens.git]
/
ucs2-afb
/
ucs_binding.h
diff --git
a/ucs2-afb/ucs_binding.h
b/ucs2-afb/ucs_binding.h
index
d77a2f8
..
e7b1a3c
100644
(file)
--- a/
ucs2-afb/ucs_binding.h
+++ b/
ucs2-afb/ucs_binding.h
@@
-18,17
+18,16
@@
#ifndef UCS2BINDING_H
#define UCS2BINDING_H
#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
#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 <afb/afb-binding.h>
-
+#include <json-c/json.h>
#include "ucs_interface.h"
#ifndef CONTROL_CDEV_TX
#include "ucs_interface.h"
#ifndef CONTROL_CDEV_TX
@@
-43,9
+42,9
@@
extern const struct afb_binding_interface *afbIface;
extern struct afb_service afbSrv;
// API verbs prototype
extern struct afb_service afbSrv;
// API verbs prototype
+PUBLIC int ucs2_initbinding(void);
PUBLIC void ucs2_configure (struct afb_req request);
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_subscribe (struct afb_req request);
PUBLIC void ucs2_writei2c (struct afb_req request);
#endif /* UCS2BINDING_H */
PUBLIC void ucs2_writei2c (struct afb_req request);
#endif /* UCS2BINDING_H */