Revert "Add api for watch setup-appid" 06/134906/2 accepted/tizen/3.0/common/20170705.075917 accepted/tizen/3.0/ivi/20170704.221707 accepted/tizen/3.0/mobile/20170704.221631 accepted/tizen/3.0/tv/20170704.221643 accepted/tizen/3.0/wearable/20170704.221655 submit/tizen_3.0/20170704.103329
authorHyunho Kang <hhstark.kang@samsung.com>
Tue, 20 Jun 2017 09:15:23 +0000 (18:15 +0900)
committerHyunho Kang <hhstark.kang@samsung.com>
Tue, 20 Jun 2017 09:15:50 +0000 (18:15 +0900)
This reverts commit 2695ae9b6afae9bdf76c03a060f0a229009c5bab.

Change-Id: Iaf141cdfb357ddcf575b3de913886a19d6d325db
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
include/pkgmgr-info.h
include/pkgmgrinfo_basic.h
parser/src/pkgmgr_parser_db.c
src/pkgmgrinfo_appinfo.c
src/pkgmgrinfo_basic.c

index b3565e4..f39bf83 100644 (file)
@@ -5106,22 +5106,6 @@ int pkgmgrinfo_appinfo_is_global(pkgmgrinfo_appinfo_h handle, bool *global);
 int pkgmgrinfo_appinfo_get_splash_screen_display(pkgmgrinfo_appinfo_h handle, bool *splash_screen_display);
 
 /**
- * @fn int pkgmgrinfo_appinfo_get_setup_appid(pkgmgrinfo_appinfo_h handle, char **setup_appid)
- * @brief      This API gets the application 'setup_appid' value from the app ID
- *
- * @par                This API is for package-manager client application
- * @par Sync (or) Async : Synchronous API
- *
- * @param[in]  handle          pointer to application info handle
- * @param[out] setup_appid     pointer to hold package setup_appid value
- * @return     0 if success, error code(<0) if fail
- * @retval     PMINFO_R_OK     success
- * @retval     PMINFO_R_EINVAL invalid argument
- * @retval     PMINFO_R_ERROR  internal error
- */
-int pkgmgrinfo_appinfo_get_setup_appid(pkgmgrinfo_appinfo_h handle, char **setup_appid);
-
-/**
  * @fn int pkgmgrinfo_appinfo_is_support_ambient(pkgmgrinfo_appinfo_h handle, bool *support_ambient)
  * @brief      This API gets the application 'support_ambient' value from the app ID
  *
index 319bf9b..d0c9509 100644 (file)
@@ -139,7 +139,6 @@ typedef struct application_x {
        char *ui_gadget;        /*attr, default: "false"*/
        char *launch_mode;      /*attr, default: "single"*/
        char *support_ambient;  /*attr, default: "false"*/
-       char *setup_appid;      /*attr*/
        char *alias_appid;      /*attr*/
        char *effective_appid;  /*attr*/
        char *package_type;     /*set from package_x*/
index 3d4845a..75fe187 100644 (file)
@@ -189,7 +189,6 @@ sqlite3 *pkgmgr_cert_db;
                                                "app_effective_appid TEXT, " \
                                                "app_splash_screen_display TEXT NOT NULL DEFAULT 'true', " \
                                                "app_external_path TEXT, " \
-                                               "app_setup_appid TEXT, " \
                                                "FOREIGN KEY(package) " \
                                                "REFERENCES package_info(package) " \
                                                "ON DELETE CASCADE)"
@@ -1272,7 +1271,7 @@ static int __insert_application_info(manifest_x *mfx)
                        "app_launch_mode, app_ui_gadget, app_support_mode, app_support_disable, component_type, package, " \
                        "app_tep_name, app_zip_mount_file, app_background_category, app_package_type, app_root_path, " \
                        "app_api_version, app_effective_appid, app_splash_screen_display, app_package_system, app_removable, " \
-                       "app_package_installed_time, app_support_ambient, app_setup_appid) " \
+                       "app_package_installed_time, app_support_ambient) " \
                        "VALUES(" \
                        "%Q, %Q, %Q, LOWER(%Q), %Q, " \
                        "LOWER(%Q), LOWER(%Q), LOWER(%Q), LOWER(%Q), " \
@@ -1282,7 +1281,7 @@ static int __insert_application_info(manifest_x *mfx)
                        "COALESCE(%Q, 'caller'), LOWER(%Q), %Q, LOWER(%Q), %Q, %Q, " \
                        "%Q, %Q, %d, %Q, %Q, " \
                        "%Q, %Q, LOWER(%Q), LOWER(%Q), LOWER(%Q), " \
-                       "%Q, LOWER(%Q), %Q)", \
+                       "%Q, LOWER(%Q))", \
                        app->appid, app->component_type, app->exec, __get_bool(app->nodisplay, false), app->type,
                        __get_bool(app->onboot, false), __get_bool(app->multiple, false), __get_bool(app->autorestart, false), __get_bool(app->taskmanage, false),
                        app->hwacceleration, app->screenreader, app->mainapp, app->recentimage, app->launchcondition,
@@ -1292,7 +1291,7 @@ static int __insert_application_info(manifest_x *mfx)
                        app->launch_mode, __get_bool(app->ui_gadget, false), mfx->support_mode, __get_bool(mfx->support_disable, false), app->component_type, mfx->package,
                        mfx->tep_name, mfx->zip_mount_file, background_value, type, mfx->root_path, mfx->api_version,
                        effective_appid, __get_bool(app->splash_screen_display, false), __get_bool(mfx->system, false), __get_bool(mfx->removable, true),
-                       mfx->installed_time, __get_bool(app->support_ambient, false), app->setup_appid);
+                       mfx->installed_time, __get_bool(app->support_ambient, false));
 
                ret = __exec_query(query);
                if (ret == -1) {
index 38f4884..c70878e 100644 (file)
@@ -473,7 +473,7 @@ static int _appinfo_get_applications(uid_t db_uid, uid_t uid,
                "ai.app_zip_mount_file, ai.component_type, ai.package, "
                "ai.app_package_system, ai.app_removable, "
                "ai.app_package_installed_time, ai.app_support_mode, "
-               "ai.app_support_ambient, ai.app_setup_appid";
+               "ai.app_support_ambient";
        static const char query_uid_info[] =
                ", ui.is_disabled, ui.is_splash_screen_enabled";
        static const char query_label[] =
@@ -624,7 +624,6 @@ static int _appinfo_get_applications(uid_t db_uid, uid_t uid,
                        _save_column_str(stmt, idx++, &info->package_installed_time);
                        _save_column_str(stmt, idx++, &info->support_mode);
                        _save_column_str(stmt, idx++, &info->support_ambient);
-                       _save_column_str(stmt, idx++, &info->setup_appid);
                        info->background_category = __get_background_category(
                                        bg_category_str);
                        free(bg_category_str);
@@ -2745,22 +2744,6 @@ API int pkgmgrinfo_appinfo_get_splash_screen_display(pkgmgrinfo_appinfo_h handle
        return PMINFO_R_OK;
 }
 
-API int pkgmgrinfo_appinfo_get_setup_appid(pkgmgrinfo_appinfo_h handle, char **setup_appid)
-{
-       pkgmgr_appinfo_x *info = (pkgmgr_appinfo_x *)handle;
-
-       if (info == NULL || setup_appid == NULL) {
-               _LOGE("Invalid parameter");
-               return PMINFO_R_EINVAL;
-       }
-
-       if (info->app_info == NULL || info->app_info->setup_appid == NULL)
-               return PMINFO_R_ERROR;
-
-       *setup_appid = info->app_info->setup_appid;
-       return PMINFO_R_OK;
-}
-
 API int pkgmgrinfo_appinfo_is_support_ambient(pkgmgrinfo_appinfo_h handle,
                bool *support_ambient)
 {
index 302143f..cd683ce 100644 (file)
@@ -335,8 +335,6 @@ static void __ps_free_application(gpointer data)
                free((void *)application->package_installed_time);
        if (application->support_mode)
                free((void *)application->support_mode);
-       if (application->setup_appid)
-               free((void *)application->setup_appid);
 
        /*Free Label*/
        g_list_free_full(application->label, __ps_free_label);