projects
/
project
/
ubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62cdfc3
)
libubus: add UBUS_METHOD_NOARG
author
Felix Fietkau
<nbd@openwrt.org>
Wed, 6 Mar 2013 15:56:33 +0000
(16:56 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Wed, 6 Mar 2013 15:56:33 +0000
(16:56 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
libubus.h
patch
|
blob
|
history
diff --git
a/libubus.h
b/libubus.h
index a120eb6d9f419dd99702cd56030af254393a73db..bbed052e831c38e2106bb7fe74a1f5e011c67a67 100644
(file)
--- a/
libubus.h
+++ b/
libubus.h
@@
-67,6
+67,12
@@
typedef void (*ubus_notify_complete_handler_t)(struct ubus_notify_request *req,
.n_policy = ARRAY_SIZE(_policy) \
}
+#define UBUS_METHOD_NOARG(_name, _handler) \
+ { \
+ .name = _name, \
+ .handler = _handler, \
+ }
+
struct ubus_method {
const char *name;
ubus_handler_t handler;