Support legacy image for backward-compatibility
[platform/core/appfw/pkgmgr-server.git] / include / pkgmgr-server.h
index 530ca0d..7b2fe5a 100644 (file)
@@ -65,6 +65,7 @@ enum request_type {
        REQUEST_TYPE_ENABLE_APP,
        REQUEST_TYPE_DISABLE_APP,
        REQUEST_TYPE_GETSIZE,
+       REQUEST_TYPE_GETSIZE_SYNC,
        REQUEST_TYPE_CLEARDATA,
        REQUEST_TYPE_CLEARCACHE,
        REQUEST_TYPE_ENABLE_GLOBAL_APP_FOR_UID,
@@ -80,6 +81,7 @@ enum request_type {
        REQUEST_TYPE_UNSET_RESTRICTION_MODE,
        REQUEST_TYPE_GET_RESTRICTION_MODE,
        REQUEST_TYPE_SET_APP_LABEL,
+       REQUEST_TYPE_MIGRATE_EXTERNAL_IMAGE,
 };
 
 gboolean queue_job(void *data);
@@ -93,7 +95,8 @@ void _send_fail_signal(struct backend_job *job);
 int _set_restriction_mode(uid_t uid, const char *pkgid, int mode);
 int _unset_restriction_mode(uid_t uid, const char *pkgid, int mode);
 int _get_restriction_mode(uid_t uid, const char *pkgid, int *mode);
-const char *_get_pkgtype_from_file(const char *file_path, uid_t uid);
+const char *_get_pkgtype_from_file(const char *file_path);
 char *_get_pkgtype_from_pkgid(const char *pkgid, uid_t uid);
+const char *_get_adjusted_pkgpath(const char *org_file_path, uid_t caller_uid);
 
 #endif/*  _PKGMGR_SERVER_H_ */