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
afb-export: Provide the real path of the binding
[src/app-framework-binder.git]
/
src
/
afb-supervision.c
diff --git
a/src/afb-supervision.c
b/src/afb-supervision.c
index
2482a08
..
8636ef0
100644
(file)
--- a/
src/afb-supervision.c
+++ b/
src/afb-supervision.c
@@
-64,7
+64,7
@@
static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
/* the standard apiset */
static struct {
struct afb_apiset *apiset;
/* the standard apiset */
static struct {
struct afb_apiset *apiset;
- struct
afb_config
*config;
+ struct
json_object
*config;
} global;
/* the supervision apiset (not exported) */
} global;
/* the supervision apiset (not exported) */
@@
-238,7
+238,7
@@
static void on_sighup(int signum)
/**
* initialize the supervision
*/
/**
* initialize the supervision
*/
-int afb_supervision_init(struct afb_apiset *apiset, struct
afb_config
*config)
+int afb_supervision_init(struct afb_apiset *apiset, struct
json_object
*config)
{
int rc;
struct sigaction sa;
{
int rc;
struct sigaction sa;
@@
-351,7
+351,7
@@
static void on_supervision_call(void *closure, struct afb_xreq *xreq)
afb_xreq_reply(xreq, list, NULL, NULL);
break;
case Config:
afb_xreq_reply(xreq, list, NULL, NULL);
break;
case Config:
- afb_xreq_reply(xreq,
afb_config_json
(global.config), NULL, NULL);
+ afb_xreq_reply(xreq,
json_object_get
(global.config), NULL, NULL);
break;
case Trace:
if (!trace)
break;
case Trace:
if (!trace)