Skip to content

Comments

lua: Implement object removal#4

Open
ernestask wants to merge 2 commits intoopenwrt:masterfrom
ernestask:master
Open

lua: Implement object removal#4
ernestask wants to merge 2 commits intoopenwrt:masterfrom
ernestask:master

Conversation

@ernestask
Copy link

When implementing services in Lua, some objects on the bus might need to
disappear, but there is no way to disappear them with the current
implementation.

Signed-off-by: Ernestas Kulik ernestas.k@iconn-networks.com

Currently, when setting __ubusobj on the table passed to ubus_lua_add(),
the global state is used. It’s not immediately apparent that it’s
intentional, so this commit changes the Lua calls to use function-local
state.

Signed-off-by: Ernestas Kulik <ernestas.k@iconn-networks.com>
When implementing services in Lua, some objects on the bus might need to
disappear, but there is no way to disappear them with the current
implementation.

Signed-off-by: Ernestas Kulik <ernestas.k@iconn-networks.com>
@ernestask
Copy link
Author

Originally posted as a patch series to openwrt-devel: https://lists.openwrt.org/pipermail/openwrt-devel/2025-January/043542.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant