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
afs-supervisor: Improve name of supervisor api
[src/app-framework-binder.git]
/
src
/
afs-supervisor.c
diff --git
a/src/afs-supervisor.c
b/src/afs-supervisor.c
index
32bd995
..
8d76832
100644
(file)
--- a/
src/afs-supervisor.c
+++ b/
src/afs-supervisor.c
@@
-63,7
+63,8
@@
struct supervised
};
/* api and apiset name */
};
/* api and apiset name */
-static const char supervision_apiname[] = AFS_SURPERVISION_APINAME;
+static const char supervision_apiname[] = AFS_SURPERVISION_APINAME_INTERNAL;
+static const char supervisor_apiname[] = "supervisor";
/* the main apiset */
struct afb_apiset *main_apiset;
/* the main apiset */
struct afb_apiset *main_apiset;
@@
-269,14
+270,14
@@
static int init(const char *spec)
/* TODO check that value */
/* create the apisets */
/* TODO check that value */
/* create the apisets */
- main_apiset = afb_apiset_create(supervis
ion
_apiname, 0);
+ main_apiset = afb_apiset_create(supervis
or
_apiname, 0);
if (!main_apiset) {
if (!main_apiset) {
- ERROR("Can't create supervis
ion
's apiset");
+ ERROR("Can't create supervis
or
's apiset");
return -1;
}
empty_apiset = afb_apiset_create(supervision_apiname, 0);
if (!empty_apiset) {
return -1;
}
empty_apiset = afb_apiset_create(supervision_apiname, 0);
if (!empty_apiset) {
- ERROR("Can't create supervis
ed
apiset");
+ ERROR("Can't create supervis
ion
apiset");
return -1;
}
return -1;
}
@@
-525,7
+526,7
@@
static const struct afb_verb_v2 _afb_verbs_v2_supervision[] = {
};
static const struct afb_binding_v2 _afb_binding_v2_supervision = {
};
static const struct afb_binding_v2 _afb_binding_v2_supervision = {
- .api = supervis
ion
_apiname,
+ .api = supervis
or
_apiname,
.specification = NULL,
.info = NULL,
.verbs = _afb_verbs_v2_supervision,
.specification = NULL,
.info = NULL,
.verbs = _afb_verbs_v2_supervision,