X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fubus.git;a=blobdiff_plain;f=libubus.h;h=bbed052e831c38e2106bb7fe74a1f5e011c67a67;hp=a120eb6d9f419dd99702cd56030af254393a73db;hb=495f4608189049495c7b4f6c5198bba556d6e9b0;hpb=62cdfc3d16f815e24b9c62eb9a3bacd9aa8f621a;ds=sidebyside diff --git a/libubus.h b/libubus.h index a120eb6..bbed052 100644 --- 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;