summaryrefslogtreecommitdiffstats
path: root/service.h
blob: 96175c4713d578d98f326d5745cb15abd298c82d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <libubox/avl.h>
#include <libubox/vlist.h>

extern struct avl_tree services;

struct service {
	struct avl_node avl;
	const char *name;

	struct blob_attr *config;
	struct vlist_tree instances;
};

struct service_instance {
	struct vlist_node node;
	const char *name;

	bool restart;
	struct blob_attr *config;
	struct uloop_process proc;
	struct uloop_timeout timeout;
};