add build requires for aul API 46/89846/2 accepted/tizen/3.0/common/20161114.105129 accepted/tizen/3.0/ivi/20161028.123014 accepted/tizen/3.0/mobile/20161015.032258 accepted/tizen/3.0/mobile/20161028.122309 accepted/tizen/3.0/wearable/20161015.080332 accepted/tizen/3.0/wearable/20161028.122834 accepted/tizen/common/20160928.163745 accepted/tizen/ivi/20160929.001834 accepted/tizen/mobile/20160929.001714 accepted/tizen/wearable/20160929.001822 submit/tizen/20160928.025004 submit/tizen_3.0/20161028.062323 submit/tizen_3.0/20161028.082323 submit/tizen_3.0_common/20161104.104000 submit/tizen_3.0_ivi/20161010.000000 submit/tizen_3.0_mobile/20161015.000000 submit/tizen_3.0_wearable/20161015.000000
authorIckhee Woo <ickhee.woo@samsung.com>
Tue, 27 Sep 2016 07:34:25 +0000 (16:34 +0900)
committerIckhee Woo <ickhee.woo@samsung.com>
Tue, 27 Sep 2016 07:38:46 +0000 (16:38 +0900)
Change-Id: I44360c3afde1dc7db93dbadbf7cfe82282de59e4
Signed-off-by: Ickhee Woo <ickhee.woo@samsung.com>
CMakeLists.txt
packaging/account-parser.spec
src/account.c

index 184b0b1..9d9085b 100644 (file)
@@ -4,6 +4,7 @@ PROJECT(account C)
 INCLUDE(FindPkgConfig)
 pkg_check_modules(account_pkgs REQUIRED
        dlog
+       aul
        capi-base-common
        libxml-2.0
        pkgmgr-info
index 93ec481..1efe360 100644 (file)
@@ -1,6 +1,6 @@
 Name:          account-parser
 Summary:       Account Parser Library
-Version:       0.1.1
+Version:       0.1.2
 Release:       0
 Group:         Social & Content/Other
 License:       Apache-2.0
@@ -9,6 +9,7 @@ Source0:        %{name}-%{version}.tar.gz
 BuildRequires:  cmake
 BuildRequires:  pkgconfig(capi-base-common)
 BuildRequires:  pkgconfig(accounts-svc)
+BuildRequires:  pkgconfig(aul)
 BuildRequires:  pkgconfig(dlog)
 BuildRequires:  pkgconfig(libxml-2.0)
 BuildRequires:  pkgconfig(glib-2.0)
index 8686de2..9f44017 100644 (file)
@@ -19,6 +19,7 @@
 #include <errno.h>
 #include <libxml/parser.h>
 #include <libxml/tree.h>
+#include <aul.h>
 #include <account.h>
 #include <account-types.h>
 #include <account_internal.h>
@@ -257,6 +258,7 @@ int _register_account_provider(xmlDocPtr docPtr, char* account_provider_app_id)
                                                                        _E("pkgmgr_installer_info_get_target_uid() fail");
                                                                        goto CATCH;
                                                                }
+
                                                                ret = aul_get_usr_app_shared_resource_path_by_appid((char*)attribute_app_id, &resource_path, uid);
                                                                if(ret != APP_MANAGER_ERROR_NONE) {
                                                                        _E("Failed to get the shared resource path. app_manager ret=[%d]", ret);
@@ -321,6 +323,7 @@ int _register_account_provider(xmlDocPtr docPtr, char* account_provider_app_id)
                                                                        _E("pkgmgr_installer_info_get_target_uid() fail");
                                                                        goto CATCH;
                                                                }
+
                                                                ret = aul_get_usr_app_shared_resource_path_by_appid((char*)attribute_app_id, &resource_path, uid);
                                                                if(ret != APP_MANAGER_ERROR_NONE) {
                                                                        _E("Failed to get the shared resource path.");
@@ -352,7 +355,7 @@ int _register_account_provider(xmlDocPtr docPtr, char* account_provider_app_id)
 
                                        _SECURE_D("Node: %s", cur_ptr->name);
 
-                               // Attribute: xml:lang
+                                       // Attribute: xml:lang
                                        xmlChar* xml_lang = xmlNodeGetLang(cur_ptr);
                                        if(xml_lang != NULL) {
                                                _SECURE_D("Attribute: xml:lang - %s", xml_lang);