Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
map-agent
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Multi-AP
map-agent
Commits
7cd61aba
Commit
7cd61aba
authored
3 years ago
by
Anjan Chanda
Browse files
Options
Downloads
Patches
Plain Diff
cntlr-sync: fixup build - dynamic cntlr config sync
parent
4be11aac
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#43830
passed
3 years ago
Stage: static_code_analysis
Stage: compile_test
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/agent_ubus.c
+4
-0
4 additions, 0 deletions
src/agent_ubus.c
with
4 additions
and
0 deletions
src/agent_ubus.c
+
4
−
0
View file @
7cd61aba
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment