diff options
author | José Bollo <jose.bollo@iot.bzh> | 2017-03-14 10:07:20 +0100 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2017-03-17 13:01:40 +0100 |
commit | de02ff4734caf96658f40a9e352245f5046a183a (patch) | |
tree | 36b9bd401a8c86ad37b49508e26d72305fd744dd /src/wgtpkg-unit.h | |
parent | 366f2093c78347dbee190eff929052a969724076 (diff) |
wgtpkg-unit: install/uninstall functions added
Change-Id: Ib147de12d0b2c8e783ddb6aae2f9978f288d98fd
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/wgtpkg-unit.h')
-rw-r--r-- | src/wgtpkg-unit.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wgtpkg-unit.h b/src/wgtpkg-unit.h index 4843685..1d56eb3 100644 --- a/src/wgtpkg-unit.h +++ b/src/wgtpkg-unit.h @@ -18,6 +18,7 @@ struct json_object; +struct wgt_info; enum unitscope { unitscope_unknown = 0, @@ -43,3 +44,6 @@ struct unitdesc { extern int unit_generator_on(const char *filename); extern void unit_generator_off(); extern int unit_generator_process(struct json_object *jdesc, int (*process)(void *closure, const struct unitdesc descs[], unsigned count), void *closure); +extern int unit_install(struct wgt_info *ifo, const char *installdir, const char *icondir, int port); +extern int unit_uninstall(struct wgt_info *ifo); + |