summaryrefslogtreecommitdiffstats
path: root/service.h
blob: c2afdaedf1a4b945a29470bfa372ad5bb0ecbe34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#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;

	struct blob_attr *config;
	struct uloop_process proc;
};