Update deprecated libprivilege-control API functions. 88/19188/1 accepted/tizen_3.0.2014.q3_common accepted/tizen_3.0.m14.3_ivi tizen_3.0.2014.q3_common tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common tizen_3.0.2015.q2_common tizen_3.0.m14.2_ivi tizen_3.0.m14.3_ivi tizen_3.0_ivi submit/tizen_common/20140521.163740 submit/tizen_common/20140522.130648 submit/tizen_common/20140522.135644 submit/tizen_ivi/20140618.000000 submit/tizen_ivi/20140618.000001 submit/tizen_ivi/20140619.000000 submit/tizen_ivi/20140622.000000 submit/tizen_ivi/20140623.000000 submit/tizen_ivi/20140624.064036 submit/tizen_ivi/20140626.125712 submit/tizen_ivi/20140626.130032 submit/tizen_ivi/20140626.144348 submit/tizen_mobile/20141120.000000 tizen_3.0.2014.q3_common_release tizen_3.0.m14.2_ivi_release tizen_3.0.m14.3_ivi_release tizen_3.0_ivi_release
authorMarcin Lis <m.lis@samsung.com>
Mon, 7 Apr 2014 15:28:21 +0000 (17:28 +0200)
committerMarcin Lis <m.lis@samsung.com>
Mon, 7 Apr 2014 15:28:21 +0000 (17:28 +0200)
Change-Id: I5c78cf7f43ee2cb51622d461f1870a3fa2f09fc5
Signed-off-by: Marcin Lis <m.lis@samsung.com>
plugin/app2sd/src/app2sd_internals_utils.c

index e49bd11..fca7156 100755 (executable)
@@ -521,7 +521,7 @@ int _app2sd_setup_path(const char *pkgid, const char *dirpath,
        int ret = 0;
        void *handle = NULL;
        char *errmsg = NULL;
-       int (*app_setup_path)(const char*, const char*, int, ...) = NULL;
+       int (*perm_app_setup_path)(const char*, const char*, int, ...) = NULL;
 
        if (pkgid == NULL || dirpath == NULL)
                return -1;
@@ -532,22 +532,22 @@ int _app2sd_setup_path(const char *pkgid, const char *dirpath,
                return -1;
        }
 
-       app_setup_path = dlsym(handle, "app_setup_path");
+       perm_app_setup_path = dlsym(handle, "perm_app_setup_path");
        errmsg = dlerror();
-       if ((errmsg != NULL) || (app_setup_path == NULL)) {
+       if ((errmsg != NULL) || (perm_app_setup_path == NULL)) {
                app2ext_print( "setup path: dlsym() failed. [%s]", errmsg);
                dlclose(handle);
                return -1;
        }
 
        if (groupid == NULL) {
-               app2ext_print( "[smack] app_setup_path(%s, %s, %d)", pkgid, dirpath, apppathtype);
-               ret = app_setup_path(pkgid, dirpath, apppathtype);
-               app2ext_print( "[smack] app_setup_path(), result = [%d]", ret);
+               app2ext_print( "[smack] perm_app_setup_path(%s, %s, %d)", pkgid, dirpath, apppathtype);
+               ret = perm_app_setup_path(pkgid, dirpath, apppathtype);
+               app2ext_print( "[smack] perm_app_setup_path(), result = [%d]", ret);
        } else {
-               app2ext_print( "[smack] app_setup_path(%s, %s, %d, %s)", pkgid, dirpath, apppathtype, groupid);
-               ret = app_setup_path(pkgid, dirpath, apppathtype, groupid);
-               app2ext_print( "[smack] app_setup_path(), result = [%d]", ret);
+               app2ext_print( "[smack] perm_app_setup_path(%s, %s, %d, %s)", pkgid, dirpath, apppathtype, groupid);
+               ret = perm_app_setup_path(pkgid, dirpath, apppathtype, groupid);
+               app2ext_print( "[smack] perm_app_setup_path(), result = [%d]", ret);
        }
 
        dlclose(handle);