summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
775144f)
Change-Id: Id0b43cecb91fa0a405c07f63d4f8c2f026c8a70c
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
extern struct afb_config *main_config;
/* api and apiset name */
extern struct afb_config *main_config;
/* api and apiset name */
-static const char supervision_apiname[] = AFS_SURPERVISION_APINAME;
+static const char supervision_apiname[] = AFS_SURPERVISION_APINAME_INTERNAL;
/* path of the supervision socket */
static const char supervisor_socket_path[] = AFS_SURPERVISION_SOCKET;
/* path of the supervision socket */
static const char supervisor_socket_path[] = AFS_SURPERVISION_SOCKET;
char extra[27]; /**< zero terminated extra computed here to be 64-37 */
};
char extra[27]; /**< zero terminated extra computed here to be 64-37 */
};
-#define AFS_SURPERVISION_APINAME "$"
+#define AFS_SURPERVISION_APINAME_INTERNAL "$"
};
/* 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;
/* TODO check that value */
/* create the apisets */
/* TODO check that value */
/* create the apisets */
- main_apiset = afb_apiset_create(supervision_apiname, 0);
+ main_apiset = afb_apiset_create(supervisor_apiname, 0);
- ERROR("Can't create supervision's apiset");
+ ERROR("Can't create supervisor'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 supervised apiset");
+ ERROR("Can't create supervision apiset");
};
static const struct afb_binding_v2 _afb_binding_v2_supervision = {
};
static const struct afb_binding_v2 _afb_binding_v2_supervision = {
- .api = supervision_apiname,
+ .api = supervisor_apiname,
.specification = NULL,
.info = NULL,
.verbs = _afb_verbs_v2_supervision,
.specification = NULL,
.info = NULL,
.verbs = _afb_verbs_v2_supervision,