Skip to content
Snippets Groups Projects
Commit 448a69af authored by Yalu Zhang's avatar Yalu Zhang
Browse files

Reorganize the output formats of UBUS calls

- Support multiple lines and channels
- Embed channel(s) in the line
- Make text values more user friendly in C conventions
parent 6df93110
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ dsmngr: Userspace application to configure DSL from UCI options and provide ubus ...@@ -6,7 +6,7 @@ dsmngr: Userspace application to configure DSL from UCI options and provide ubus
----------------- -----------------
|xdsl object @ubus| |dsl object @ubus|
----------------- -----------------
|| ||
------- -------
......
This diff is collapsed.
...@@ -35,8 +35,7 @@ extern "C" { ...@@ -35,8 +35,7 @@ extern "C" {
#define CHECK_POINT() printf("Check point at %s@%s:%d\n", __func__, __FILE__, __LINE__) #define CHECK_POINT() printf("Check point at %s@%s:%d\n", __func__, __FILE__, __LINE__)
/* ubus published objects */ int dsl_add_ubus_objects(struct ubus_context *ctx);
extern struct ubus_object dsl_object;
#ifdef __cplusplus #ifdef __cplusplus
} }
......
...@@ -96,12 +96,10 @@ int main(int argc, char **argv) ...@@ -96,12 +96,10 @@ int main(int argc, char **argv)
} }
ubus_add_uloop(ctx); ubus_add_uloop(ctx);
ret = ubus_add_object(ctx, &dsl_object);
if (ret) { if (dsl_add_ubus_objects(ctx) != 0)
DSLMNGR_LOG(LOG_ERR, "Failed to add 'xdsl' object: %s\n", ubus_strerror(ret));
ret = -1;
goto __ret; goto __ret;
}
uloop_run(); uloop_run();
__ret: __ret:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment