diff options
author | John Crispin <blogic@openwrt.org> | 2014-06-04 13:46:28 +0200 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2014-06-05 12:45:15 +0200 |
commit | 0467aebb79f64d1c9d05a84367fda7c02c4ea6b8 (patch) | |
tree | 4bc7eacbd8a5bdc324c5e34a97386810975eacc8 /procd.h | |
parent | 54829607535631a6701a16113c95a0c09cbd45d8 (diff) | |
download | unitd-0467aebb79f64d1c9d05a84367fda7c02c4ea6b8.tar unitd-0467aebb79f64d1c9d05a84367fda7c02c4ea6b8.zip |
allow instances to register ubus object that should be watched
Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'procd.h')
-rw-r--r-- | procd.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -47,8 +47,12 @@ void procd_bcast_event(char *event, struct blob_attr *msg); struct trigger; void trigger_init(void); -void trigger_event(char *type, struct blob_attr *data); +void trigger_event(const char *type, struct blob_attr *data); void trigger_add(struct blob_attr *rule, void *id); void trigger_del(void *id); +void watch_add(const char *_name, void *id); +void watch_del(void *id); +void watch_ubus(struct ubus_context *ctx); + #endif |