Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add 'afb_service_call_sync' function
[src/app-framework-binder.git]
/
include
/
afb
/
afb-binding-v1.h
diff --git
a/include/afb/afb-binding-v1.h
b/include/afb/afb-binding-v1.h
index
dc7af6f
..
b627d5c
100644
(file)
--- a/
include/afb/afb-binding-v1.h
+++ b/
include/afb/afb-binding-v1.h
@@
-18,7
+18,16
@@
#pragma once
struct json_object;
#pragma once
struct json_object;
-struct afb_service;
+
+#include "afb-req-itf.h"
+#include "afb-event-itf.h"
+#include "afb-service-common.h"
+#include "afb-daemon-common.h"
+
+#include "afb-session-v1.h"
+#include "afb-daemon-v1.h"
+#include "afb-daemon-v1.h"
+
struct afb_binding_v1;
struct afb_binding_interface_v1;
struct afb_binding_v1;
struct afb_binding_interface_v1;
@@
-41,7
+50,7
@@
struct afb_binding_interface_v1;
* Be aware that the given 'interface' is not fully functionnal
* because no provision is given to the name and description
* of the binding. Check the function 'afbBindingV1ServiceInit'
* Be aware that the given 'interface' is not fully functionnal
* because no provision is given to the name and description
* of the binding. Check the function 'afbBindingV1ServiceInit'
- * defined in the file <afb/afb-service-
itf
.h> because when
+ * defined in the file <afb/afb-service-
v1
.h> because when
* the function 'afbBindingV1ServiceInit' is called, the 'interface'
* is fully functionnal.
*/
* the function 'afbBindingV1ServiceInit' is called, the 'interface'
* is fully functionnal.
*/
@@
-79,7
+88,7
@@
extern void afbBindingV1ServiceEvent(const char *event, struct json_object *obje
struct afb_verb_desc_v1
{
const char *name; /* name of the verb */
struct afb_verb_desc_v1
{
const char *name; /* name of the verb */
- enum afb_session_flags
session;
/* authorisation and session requirements of the verb */
+ enum afb_session_flags
_v1 session;
/* authorisation and session requirements of the verb */
void (*callback)(struct afb_req req); /* callback function implementing the verb */
const char *info; /* textual description of the verb */
};
void (*callback)(struct afb_req req); /* callback function implementing the verb */
const char *info; /* textual description of the verb */
};
@@
-153,3
+162,5
@@
struct afb_binding_interface_v1
#endif
#endif
+
+