add blobmsg list helpers
[project/procd.git] / service.h
1 #include <libubox/avl.h>
2 #include <libubox/vlist.h>
3
4 extern struct avl_tree services;
5
6 struct service {
7         struct avl_node avl;
8         const char *name;
9
10         struct blob_attr *config;
11         struct vlist_tree instances;
12 };
13
14 struct service_instance {
15         struct vlist_node node;
16         const char *name;
17
18         bool restart;
19         struct blob_attr *config;
20         struct uloop_process proc;
21         struct uloop_timeout timeout;
22 };
23