diff options
author | José Bollo <jose.bollo@iot.bzh> | 2016-02-04 15:43:49 +0100 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2016-02-04 15:48:32 +0100 |
commit | 50dd441a11440201e1da9da81a7103677e2282ad (patch) | |
tree | 489d653e78e1be60ae10877656c7aa09c9c49297 /src/secmgr-wrap.c | |
parent | bb15844347ed0d53a795d24dce7035ab27df4e53 (diff) |
Adding uninstallation of widgets
Change-Id: I8558a77312590181de5313c89ea4c9bdb9b477c7
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/secmgr-wrap.c')
-rw-r--r-- | src/secmgr-wrap.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/secmgr-wrap.c b/src/secmgr-wrap.c index 78680a5..fee9d64 100644 --- a/src/secmgr-wrap.c +++ b/src/secmgr-wrap.c @@ -80,6 +80,17 @@ int secmgr_install() return retcode(rc); } +int secmgr_uninstall() +{ + int rc; + assert(request != NULL); + rc = security_manager_app_uninstall(request); + if (rc != SECURITY_MANAGER_SUCCESS) + ERROR("security_manager_app_uninstall failed"); + secmgr_cancel(); + return retcode(rc); +} + int secmgr_permit(const char *permission) { int rc; |