summaryrefslogtreecommitdiffstats
path: root/procd.h
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2014-06-04 13:46:28 +0200
committerJohn Crispin <blogic@openwrt.org>2014-06-05 12:45:15 +0200
commit0467aebb79f64d1c9d05a84367fda7c02c4ea6b8 (patch)
tree4bc7eacbd8a5bdc324c5e34a97386810975eacc8 /procd.h
parent54829607535631a6701a16113c95a0c09cbd45d8 (diff)
downloadunitd-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.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/procd.h b/procd.h
index 62f45b8..4ae0dc9 100644
--- a/procd.h
+++ b/procd.h
@@ -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