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
update monitoring into packaging
[src/app-framework-binder.git]
/
src
/
afb-svc.h
diff --git
a/src/afb-svc.h
b/src/afb-svc.h
index
fb82e3c
..
e23c286
100644
(file)
--- a/
src/afb-svc.h
+++ b/
src/afb-svc.h
@@
-50,20
+50,17
@@
struct afb_svc
int hookflags;
};
int hookflags;
};
-extern struct afb_svc *afb_svc_create_v1(
- const char *api,
- struct afb_apiset *apiset,
- int share_session,
- int (*start)(struct afb_service service),
- void (*on_event)(const char *event, struct json_object *object));
+extern void afb_svc_destroy(struct afb_svc *svc, struct afb_service *service);
-extern struct afb_svc *afb_svc_create
_v2
(
+extern struct afb_svc *afb_svc_create(
const char *api,
struct afb_apiset *apiset,
int share_session,
const char *api,
struct afb_apiset *apiset,
int share_session,
- int (*start)(),
void (*on_event)(const char *event, struct json_object *object),
void (*on_event)(const char *event, struct json_object *object),
- struct afb_binding_data_v2 *data);
+ struct afb_service *service);
+
+extern int afb_svc_start_v1(struct afb_svc *svc, int (*start)(struct afb_service));
+extern int afb_svc_start_v2(struct afb_svc *svc, int (*start)());
extern void afb_svc_update_hook(struct afb_svc *svc);
extern void afb_svc_update_hook(struct afb_svc *svc);