From de02ff4734caf96658f40a9e352245f5046a183a Mon Sep 17 00:00:00 2001 From: José Bollo Date: Tue, 14 Mar 2017 10:07:20 +0100 Subject: wgtpkg-unit: install/uninstall functions added MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ib147de12d0b2c8e783ddb6aae2f9978f288d98fd Signed-off-by: José Bollo --- src/wgtpkg-unit.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/wgtpkg-unit.h') 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); + -- cgit 1.2.3-korg