projects
/
project
/
procd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
move the instance data structure to instance.h
[project/procd.git]
/
instance.h
diff --git
a/instance.h
b/instance.h
index
8016a44
..
668dde0
100644
(file)
--- a/
instance.h
+++ b/
instance.h
@@
-1,6
+1,19
@@
#ifndef __PROCD_INSTANCE_H
#define __PROCD_INSTANCE_H
#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);
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);