Skip to content
Snippets Groups Projects
Commit 7cd61aba authored by Anjan Chanda's avatar Anjan Chanda
Browse files

cntlr-sync: fixup build - dynamic cntlr config sync

parent 4be11aac
Branches
No related tags found
No related merge requests found
Pipeline #43830 passed
......@@ -812,6 +812,7 @@ error:
return UBUS_STATUS_UNKNOWN_ERROR;
}
#if AGENT_SYNC_DYNAMIC_CNTLR_CONFIG
static int sync_dyn_controller_config(struct ubus_context *ctx, struct ubus_object *obj,
struct ubus_request_data *req, const char *method,
struct blob_attr *msg)
......@@ -852,6 +853,7 @@ static int sync_dyn_controller_config(struct ubus_context *ctx, struct ubus_obje
error:
return UBUS_STATUS_UNKNOWN_ERROR;
}
#endif
static int cmd(struct ubus_context *ctx, struct ubus_object *obj,
struct ubus_request_data *req, const char *method,
......@@ -1175,7 +1177,9 @@ int agent_publish_object(struct agent *a, const char *objname)
UBUS_METHOD("assoc_notify", assoc_notify,
assoc_notify_params),
UBUS_METHOD("pref_channels", pref_channels, pref_channels_params),
#ifdef AGENT_SYNC_DYNAMIC_CNTLR_CONFIG
UBUS_METHOD_NOARG("sync", sync_dyn_controller_config),
#endif
};
int num_methods = ARRAY_SIZE(m);
struct ubus_object_type *obj_type;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment