X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fprocd.git;a=blobdiff_plain;f=instance.h;h=668dde0bbe6355e25e1c7839d12d8d18489b91d1;hp=8016a44c018e655ac5dd7a305bb77bd72c147155;hb=d2602e4d3459271c2b4d3632a70539412eb29e7c;hpb=adcfdfd838f54f15ec7f4be6b5e8e5b78ddd3393 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);