summaryrefslogtreecommitdiffstats
path: root/service.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-06-01 09:50:29 +0200
committerFelix Fietkau <nbd@openwrt.org>2012-06-01 09:50:29 +0200
commitca808f5c335a873c87359ce024e1a14ebae706b9 (patch)
treebf6ca050eedf2b3f71d8698d370786174bf17cca /service.h
downloadunitd-ca808f5c335a873c87359ce024e1a14ebae706b9.tar
unitd-ca808f5c335a873c87359ce024e1a14ebae706b9.zip
initial import: starts and connects to ubus
Diffstat (limited to 'service.h')
-rw-r--r--service.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/service.h b/service.h
new file mode 100644
index 0000000..5b86b3a
--- /dev/null
+++ b/service.h
@@ -0,0 +1,19 @@
+#include <libubox/avl.h>
+#include <libubox/vlist.h>
+
+struct service {
+ struct avl_node avl;
+ const char *name;
+
+ struct vlist_tree instances;
+};
+
+struct service_instance {
+ struct vlist_node node;
+ const char *name;
+
+ struct blob_attr *config;
+ struct uloop_process proc;
+};
+
+