[PATCH] rpcd: Add support for plugin command input via argv[3] ($3)

2020-11-11 Thread Louis_Hampton
This does not disable the current method of using plugin command arguments (stdin), only adding the new feature. Signed-off-by: Louis Hampton --- plugin.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin.c b/plugin.c index b0315dc..f12b212 100644 --- a/plugin.c +++ b/plugin.c @@ -229,6

[PATCH] ubus: add a private field to event handlers

2021-07-13 Thread Louis_Hampton
This is particularly useful in multithreaded non-C FFI, where additional context from where the event handler was registered may be critical to ensuring the output of the event is sent to the right location. Signed-off-by: Louis Hampton --- libubus.h | 1 + 1 file changed, 1 insertion(+) diff

Re: [PATCH] ubus: add a private field to event handlers

2021-07-14 Thread Louis_Hampton
We use generated Rust bindings to libubus, and our own thread as opposed to uloop. "container_of", quite aside from not being exported, violates the strong types and memory safety rules we've previously been able to uphold. This isn't an issue with callbacks from "ubus_invoke_fd", where we can pass