X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fprocd.git;a=blobdiff_plain;f=service%2Fservice.h;h=8f94ecdaa317c6e87a5731dbbd4480d00a8010d3;hp=c3f2964ef6dbb805a0a8528b9e7246ee94d536ae;hb=7aad9409d22dc38b71ec75d2aafcfa32426b5594;hpb=8ce928994027019c858a523f2a2078736f8e2c5d diff --git a/service/service.h b/service/service.h index c3f2964..8f94ecd 100644 --- a/service/service.h +++ b/service/service.h @@ -18,6 +18,7 @@ #include #include #include +#include "../utils/utils.h" extern struct avl_tree services; @@ -40,17 +41,24 @@ struct validate { struct service { struct avl_node avl; const char *name; + bool deleted; + bool autostart; struct blob_attr *trigger; struct vlist_tree instances; struct list_head validators; + struct blob_attr *data; + struct blobmsg_list data_blob; }; void service_validate_add(struct service *s, struct blob_attr *attr); void service_validate_dump(struct blob_buf *b, struct service *s); void service_validate_dump_all(struct blob_buf *b, char *p, char *s); int service_start_early(char *name, char *cmdline); +void service_stopped(struct service *s); void service_validate_del(struct service *s); void service_event(const char *type, const char *service, const char *instance); + + #endif