summaryrefslogtreecommitdiff
path: root/inc/package_worker_pkgmgr.h
diff options
context:
space:
mode:
Diffstat (limited to 'inc/package_worker_pkgmgr.h')
-rw-r--r--inc/package_worker_pkgmgr.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/inc/package_worker_pkgmgr.h b/inc/package_worker_pkgmgr.h
index 5f7a3ac..52d5020 100644
--- a/inc/package_worker_pkgmgr.h
+++ b/inc/package_worker_pkgmgr.h
@@ -17,12 +17,20 @@
#ifndef __PACKAGE_WORKER_PKGMGR_H__
#define __PACKAGE_WORKER_PKGMGR_H__
-typedef void (*pm_installer_res_cb)(const char *package, int result, void *user_data);
+typedef enum {
+ PKGMGR_INSTALL = 0,
+ PKGMGR_REMOVE,
+ PKGMGR_MANAGE_MAX,
+} pkgmgr_manage_type_e;
-int pm_installer_install(const char *path, pm_installer_res_cb result_cb, void *cb_data);
+typedef enum {
+ REQUEST_SUCCESS = 0,
+ REQUEST_FAIL,
+} request_result_e;
-typedef void (*pm_uninstaller_res_cb)(const char *package, int result, void *user_data);
+typedef void (*request_result_cb)(const char *package, pkgmgr_manage_type_e type, request_result_e result, void *user_data);
-int pm_uninstaller_uninstall(const char *name, pm_uninstaller_res_cb result_cb, void *cb_data);
+int package_worker_pkgmgr_manage_package_by_type(const char *package,
+ pkgmgr_manage_type_e type, request_result_cb result_cb, void *cb_data);
#endif /* __PACKAGE_WORKER_PKGMGR_H__ */