diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-03-06 16:56:33 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-03-06 16:56:33 +0100 |
commit | 495f4608189049495c7b4f6c5198bba556d6e9b0 (patch) | |
tree | 90ac9cc3036b3e13b7d9ddc5d54929982a28ebe0 /libubus.h | |
parent | 62cdfc3d16f815e24b9c62eb9a3bacd9aa8f621a (diff) | |
download | ubus-495f4608189049495c7b4f6c5198bba556d6e9b0.tar.gz |
libubus: add UBUS_METHOD_NOARG
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'libubus.h')
-rw-r--r-- | libubus.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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; |