mirror of
https://dev.iopsys.eu/system/sysmngr.git
synced 2025-12-10 00:06:19 +01:00
Align with bbfdm_ctx update: use ubus_ctx as pointer
This commit is contained in:
parent
772c45511a
commit
8d150fae12
1 changed files with 7 additions and 7 deletions
|
|
@ -114,11 +114,11 @@ int main(int argc, char **argv)
|
|||
#endif
|
||||
|
||||
#if defined(SYSMNGR_FWBANK_UBUS_SUPPORT) || defined(SYSMNGR_FIRMWARE_IMAGE)
|
||||
sysmngr_init_fwbank_dump(&bbfdm_ctx.ubus_ctx);
|
||||
sysmngr_init_fwbank_dump(bbfdm_ctx.ubus_ctx);
|
||||
#endif
|
||||
|
||||
#ifdef SYSMNGR_PROCESS_STATUS
|
||||
sysmngr_process_init(&bbfdm_ctx.ubus_ctx);
|
||||
sysmngr_process_init(bbfdm_ctx.ubus_ctx);
|
||||
sysmngr_cpu_init();
|
||||
#endif
|
||||
|
||||
|
|
@ -130,18 +130,18 @@ int main(int argc, char **argv)
|
|||
goto out;
|
||||
|
||||
#ifdef SYSMNGR_FWBANK_UBUS_SUPPORT
|
||||
if (sysmngr_register_fwbank(&bbfdm_ctx.ubus_ctx))
|
||||
if (sysmngr_register_fwbank(bbfdm_ctx.ubus_ctx))
|
||||
goto out;
|
||||
#endif
|
||||
|
||||
if (ubus_register_event_handler(&bbfdm_ctx.ubus_ctx, &ev, "sysmngr.reload"))
|
||||
if (ubus_register_event_handler(bbfdm_ctx.ubus_ctx, &ev, "sysmngr.reload"))
|
||||
goto out;
|
||||
|
||||
uloop_run();
|
||||
|
||||
out:
|
||||
#ifdef SYSMNGR_PROCESS_STATUS
|
||||
sysmngr_process_clean(&bbfdm_ctx.ubus_ctx);
|
||||
sysmngr_process_clean(bbfdm_ctx.ubus_ctx);
|
||||
sysmngr_cpu_clean();
|
||||
#endif
|
||||
|
||||
|
|
@ -150,11 +150,11 @@ out:
|
|||
#endif
|
||||
|
||||
#ifdef SYSMNGR_FWBANK_UBUS_SUPPORT
|
||||
sysmngr_unregister_fwbank(&bbfdm_ctx.ubus_ctx);
|
||||
sysmngr_unregister_fwbank(bbfdm_ctx.ubus_ctx);
|
||||
#endif
|
||||
|
||||
#if defined(SYSMNGR_FWBANK_UBUS_SUPPORT) || defined(SYSMNGR_MEMORY_STATUS)
|
||||
sysmngr_clean_fwbank_dump(&bbfdm_ctx.ubus_ctx);
|
||||
sysmngr_clean_fwbank_dump(bbfdm_ctx.ubus_ctx);
|
||||
#endif
|
||||
|
||||
bbfdm_ubus_register_free(&bbfdm_ctx);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue