From d2602e4d3459271c2b4d3632a70539412eb29e7c Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 10 Jun 2012 17:12:56 +0200 Subject: [PATCH] move the instance data structure to instance.h --- instance.h | 13 +++++++++++++ service.h | 14 ++++---------- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/instance.h b/instance.h index 8016a44..668dde0 100644 --- a/instance.h +++ b/instance.h @@ -1,6 +1,19 @@ #ifndef __PROCD_INSTANCE_H #define __PROCD_INSTANCE_H +#include +#include + +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); diff --git a/service.h b/service.h index 96175c4..527e511 100644 --- a/service.h +++ b/service.h @@ -1,3 +1,6 @@ +#ifndef __PROCD_SERVICE_H +#define __PROCD_SERVICE_H + #include #include @@ -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 -- 2.11.0