Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lua: Implement object removal #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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 [email protected]

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 <[email protected]>
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 <[email protected]>
@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