diff options
author | José Bollo <jose.bollo@iot.bzh> | 2016-01-25 23:47:05 +0100 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2016-01-25 23:47:05 +0100 |
commit | 7fc272e5a9afc922f14c47b4c27d0a564e2de4ca (patch) | |
tree | df143756f661eac6c32e2490feab514d68e975d4 /src/utils-jbus.h | |
parent | d7a517e6b430ba2d8a60467e3c438fe2a5c12df6 (diff) |
utils-jbus: implments multiple bus handling
Change-Id: I3c40b27448000fda800e2a3d98210eb6c11bb969
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/utils-jbus.h')
-rw-r--r-- | src/utils-jbus.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/utils-jbus.h b/src/utils-jbus.h index 218c21d..3b6ec75 100644 --- a/src/utils-jbus.h +++ b/src/utils-jbus.h @@ -24,6 +24,12 @@ extern struct jbus *create_jbus(int session, const char *path); extern void jbus_addref(struct jbus *jbus); extern void jbus_unref(struct jbus *jbus); +struct pollfd; +extern int jbus_fill_pollfds(struct jbus **jbuses, int njbuses, struct pollfd *fds); +extern int jbus_dispatch_pollfds(struct jbus **jbuses, int njbuses, struct pollfd *fds, int maxcount); +extern int jbus_read_write_dispatch_multiple(struct jbus **jbuses, int njbuses, int toms, int maxcount); +extern int jbus_dispatch_multiple(struct jbus **jbuses, int njbuses, int maxcount); + extern int jbus_read_write_dispatch(struct jbus *jbus, int toms); /* verbs for the clients */ @@ -52,3 +58,4 @@ extern int jbus_start_serving(struct jbus *jbus); extern int jbus_send_signal_s(struct jbus *jbus, const char *name, const char *content); extern int jbus_send_signal_j(struct jbus *jbus, const char *name, struct json_object *content); + |