diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-06-10 17:12:56 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-06-10 17:12:56 +0200 |
commit | d2602e4d3459271c2b4d3632a70539412eb29e7c (patch) | |
tree | 7c19040a0d4e1b13afe9047529b6ee9dfad4d1b5 | |
parent | adcfdfd838f54f15ec7f4be6b5e8e5b78ddd3393 (diff) | |
download | unitd-d2602e4d3459271c2b4d3632a70539412eb29e7c.tar unitd-d2602e4d3459271c2b4d3632a70539412eb29e7c.zip |
move the instance data structure to instance.h
-rw-r--r-- | instance.h | 13 | ||||
-rw-r--r-- | service.h | 14 |
2 files changed, 17 insertions, 10 deletions
@@ -1,6 +1,19 @@ #ifndef __PROCD_INSTANCE_H #define __PROCD_INSTANCE_H +#include <libubox/vlist.h> +#include <libubox/uloop.h> + +struct service_instance { + struct vlist_node node; + const char *name; + + bool restart; + struct blob_attr *config; + struct uloop_process proc; + struct uloop_timeout timeout; +}; + void instance_start(struct service_instance *in); void instance_stop(struct service_instance *in, bool restart); bool instance_update(struct service_instance *in, struct service_instance *in_new); @@ -1,3 +1,6 @@ +#ifndef __PROCD_SERVICE_H +#define __PROCD_SERVICE_H + #include <libubox/avl.h> #include <libubox/vlist.h> @@ -11,13 +14,4 @@ struct service { 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; -}; - +#endif |