summaryrefslogtreecommitdiff
path: root/service/service.h
diff options
context:
space:
mode:
authorPierre Lebleu <pme.lebleu@gmail.com>2017-11-10 11:04:47 +0100
committerJohn Crispin <john@phrozen.org>2017-11-10 23:30:52 +0100
commit7c9aa7c39362bca872905e906ac82dfc667a4112 (patch)
tree52f5349f640ac8f64b167a2daa443b94247c6c2b /service/service.h
parente2b819ae3bacca794eb9d4d7ab3d3cbe2d536e38 (diff)
downloadprocd-7c9aa7c39362bca872905e906ac82dfc667a4112.tar.gz
service: add data within the service itself
It gives the ability to create firewall data within the service itself. Signed-off-by: Pierre Lebleu <pme.lebleu@gmail.com>
Diffstat (limited to 'service/service.h')
-rw-r--r--service/service.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/service/service.h b/service/service.h
index a433c9f..8f94ecd 100644
--- a/service/service.h
+++ b/service/service.h
@@ -18,6 +18,7 @@
#include <libubox/avl.h>
#include <libubox/vlist.h>
#include <libubox/list.h>
+#include "../utils/utils.h"
extern struct avl_tree services;
@@ -46,6 +47,8 @@ struct service {
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);