fix code for coding convention 78/101678/2 accepted/tizen/common/20161202.233329 accepted/tizen/ivi/20161205.000418 accepted/tizen/ivi/20161205.232542 accepted/tizen/mobile/20161205.000318 accepted/tizen/mobile/20161205.232451 accepted/tizen/wearable/20161205.000357 accepted/tizen/wearable/20161205.232528 submit/tizen/20161202.063824 submit/tizen/20161205.012736
authorIckhee Woo <ickhee.woo@samsung.com>
Fri, 2 Dec 2016 02:45:06 +0000 (11:45 +0900)
committerIckhee Woo <ickhee.woo@samsung.com>
Fri, 2 Dec 2016 02:45:40 +0000 (11:45 +0900)
Change-Id: I1cbd44269ec11b2cbcce77a1d8e7dac6ee3b0737
Signed-off-by: Ickhee Woo <ickhee.woo@samsung.com>
include/account_PG.h
packaging/libaccount-service.spec

index c24c8c5..0e01688 100644 (file)
@@ -73,130 +73,130 @@ int account_disconnect(void);
 @code
 void insert_test(void)
 {
-   int ret = -1;
-   account_h account;
-
-   ret = account_connect();
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-      SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
-
-   ret = account_create(&account);
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-       SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
-
-   ret = account_set_user_name(account, "tarun.kr");
-
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-      SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
-
-   ret = account_set_display_name(account, "Tarun Kumar");
-
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-      SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
-
-   ret = account_set_domain_name(account, "Samsung electronics");
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-       SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
-
-   ret = account_set_email_address(account, "tarun@gmail.com");
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-       SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
-
-   ret = account_set_package_name(account, "com.samsung.twiter");
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-       SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
-
-   ret = account_set_icon_path(account, "icon-path");
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-       SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
-
-   ret = account_set_access_token(account, "ACCESSTOKEN");
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-       SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
-
-   ret = account_set_auth_type( account, ACCOUNT_AUTH_TYPE_OAUTH );
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-       SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
-
-   ret = account_set_secret( account, ACCOUNT_SECRECY_INVISIBLE );
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-       SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
-   ret = account_set_source(account, "URUSA inc.");
-
-   int i;
-
-   for(i=0;i<USER_TXT_CNT;i++)
-   {
-       ret = account_set_user_text(account, i, "user txt");
-       if(ret != ACCOUNT_ERROR_NONE)
-       {
-           SECURE_LOGD("(%d)-[Account] ret = %d, account=%p, i=%d\n", __LINE__, ret, account, i);
-       }
-
-   }
-
-   for(i=0;i<USER_INT_CNT;i++)
-   {
-       ret = account_set_user_int(account, i, 888);
-       if(ret != ACCOUNT_ERROR_NONE)
-       {
-           SECURE_LOGD("(%d)-[Account] ret = %d, account=%p, i=%d\n", __LINE__, ret, account, i);
-       }
-   }
-
-   ret = account_set_capability(account, ACCOUNT_CAPABILITY_CONTACT, ACCOUNT_CAPABILITY_ENABLED);
-   ret = account_set_capability(account, ACCOUNT_CAPABILITY_CALENDAR, ACCOUNT_CAPABILITY_ENABLED);
-   ret = account_set_capability(account, ACCOUNT_CAPABILITY_PHOTO, ACCOUNT_CAPABILITY_ENABLED);
-   ret = account_set_capability(account, ACCOUNT_CAPABILITY_VIDEO, ACCOUNT_CAPABILITY_ENABLED);
-   ret = account_set_capability(account, ACCOUNT_CAPABILITY_EMAIL, ACCOUNT_CAPABILITY_ENABLED);
-   ret = account_set_capability(account, ACCOUNT_CAPABILITY_STATUS_POST, ACCOUNT_CAPABILITY_ENABLED);
-   ret = account_set_capability(account, ACCOUNT_CAPABILITY_VOIP, ACCOUNT_CAPABILITY_ENABLED);
-   ret = account_set_capability(account, ACCOUNT_CAPABILITY_SAMSUNG_APPS, ACCOUNT_CAPABILITY_ENABLED);
-   ret = account_set_capability(account, ACCOUNT_CAPABILITY_MOBILE_TRACKER, ACCOUNT_CAPABILITY_ENABLED);
-
-   int account_id = -1;
-   ret = account_insert_to_db(account, &account_id);
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-       SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-       return;
-   }
-
-   ret = account_destroy(account);
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-       SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
-
-   ret = account_disconnect();
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-       SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
-
-   return;
+       int ret = -1;
+       account_h account;
+
+       ret = account_connect();
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
+
+       ret = account_create(&account);
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
+
+       ret = account_set_user_name(account, "tarun.kr");
+
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
+
+       ret = account_set_display_name(account, "Tarun Kumar");
+
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
+
+       ret = account_set_domain_name(account, "Samsung electronics");
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
+
+       ret = account_set_email_address(account, "tarun@gmail.com");
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
+
+       ret = account_set_package_name(account, "com.samsung.twiter");
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
+
+       ret = account_set_icon_path(account, "icon-path");
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
+
+       ret = account_set_access_token(account, "ACCESSTOKEN");
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
+
+       ret = account_set_auth_type( account, ACCOUNT_AUTH_TYPE_OAUTH );
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
+
+       ret = account_set_secret( account, ACCOUNT_SECRECY_INVISIBLE );
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
+       ret = account_set_source(account, "URUSA inc.");
+
+       int i;
+
+       for(i=0;i<USER_TXT_CNT;i++)
+       {
+               ret = account_set_user_text(account, i, "user txt");
+               if(ret != ACCOUNT_ERROR_NONE)
+               {
+                       SECURE_LOGD("(%d)-[Account] ret = %d, account=%p, i=%d\n", __LINE__, ret, account, i);
+               }
+
+       }
+
+       for(i=0;i<USER_INT_CNT;i++)
+       {
+               ret = account_set_user_int(account, i, 888);
+               if(ret != ACCOUNT_ERROR_NONE)
+               {
+                       SECURE_LOGD("(%d)-[Account] ret = %d, account=%p, i=%d\n", __LINE__, ret, account, i);
+               }
+       }
+
+       ret = account_set_capability(account, ACCOUNT_CAPABILITY_CONTACT, ACCOUNT_CAPABILITY_ENABLED);
+       ret = account_set_capability(account, ACCOUNT_CAPABILITY_CALENDAR, ACCOUNT_CAPABILITY_ENABLED);
+       ret = account_set_capability(account, ACCOUNT_CAPABILITY_PHOTO, ACCOUNT_CAPABILITY_ENABLED);
+       ret = account_set_capability(account, ACCOUNT_CAPABILITY_VIDEO, ACCOUNT_CAPABILITY_ENABLED);
+       ret = account_set_capability(account, ACCOUNT_CAPABILITY_EMAIL, ACCOUNT_CAPABILITY_ENABLED);
+       ret = account_set_capability(account, ACCOUNT_CAPABILITY_STATUS_POST, ACCOUNT_CAPABILITY_ENABLED);
+       ret = account_set_capability(account, ACCOUNT_CAPABILITY_VOIP, ACCOUNT_CAPABILITY_ENABLED);
+       ret = account_set_capability(account, ACCOUNT_CAPABILITY_SAMSUNG_APPS, ACCOUNT_CAPABILITY_ENABLED);
+       ret = account_set_capability(account, ACCOUNT_CAPABILITY_MOBILE_TRACKER, ACCOUNT_CAPABILITY_ENABLED);
+
+       int account_id = -1;
+       ret = account_insert_to_db(account, &account_id);
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+               return;
+       }
+
+       ret = account_destroy(account);
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
+
+       ret = account_disconnect();
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
+
+       return;
 }
 @endcode
 
@@ -205,12 +205,12 @@ void insert_test(void)
 @code
 bool _capability_get_callback(const char* capability_type, account_capability_state_e capability_value, void* user_data)
 {
-   char* test_type = capability_type;
-   int test_value = capability_value;
+       char* test_type = capability_type;
+       int test_value = capability_value;
 
-   SECURE_LOGD("_capability_get_callback test_type = : %s\n", test_type);
-   SECURE_LOGD("_capability_get_callback test_value = : %d\n", test_value);
-   return TRUE;
+       SECURE_LOGD("_capability_get_callback test_type = : %s\n", test_type);
+       SECURE_LOGD("_capability_get_callback test_value = : %d\n", test_value);
+       return TRUE;
 }
 
 static void _account_free_text(char *text)
@@ -223,111 +223,111 @@ static void _account_free_text(char *text)
 
 void get_account_by_id(int account_id)
 {
-   int ret = - 1;
-   account_h account;
-
-   ret = account_connect();
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-          SECURE_LOGD("(%d)-[Account] ret = %d, \n", __LINE__, ret);
-   }
-
-   ret = account_create(&account);
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-          SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
+       int ret = - 1;
+       account_h account;
 
-   ret = account_query_account_by_account_id(account_id, &account);
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-          SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
+       ret = account_connect();
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, \n", __LINE__, ret);
+       }
 
-   char *test_text = NULL;
+       ret = account_create(&account);
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
 
-   account_get_user_name(handle, &test_text);
-   SECURE_LOGD("_account_get_callback : %s\n", test_text);
+       ret = account_query_account_by_account_id(account_id, &account);
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
 
-   _account_free_text(test_text);
+       char *test_text = NULL;
 
-   account_get_display_name(handle, &test_text);
-   SECURE_LOGD("_account_get_callback : %s\n", test_text);
+       account_get_user_name(handle, &test_text);
+       SECURE_LOGD("_account_get_callback : %s\n", test_text);
 
-   _account_free_text(test_text);
+       _account_free_text(test_text);
+
+       account_get_display_name(handle, &test_text);
+       SECURE_LOGD("_account_get_callback : %s\n", test_text);
 
-   account_get_email_address(handle, &test_text);
-   SECURE_LOGD("_account_get_callback : %s\n", test_text);
+       _account_free_text(test_text);
 
-   _account_free_text(test_text);
+       account_get_email_address(handle, &test_text);
+       SECURE_LOGD("_account_get_callback : %s\n", test_text);
 
-   account_get_icon_path(handle, &test_text);
-   SECURE_LOGD("_account_get_callback : %s\n", test_text);
+       _account_free_text(test_text);
 
-   _account_free_text(test_text);
+       account_get_icon_path(handle, &test_text);
+       SECURE_LOGD("_account_get_callback : %s\n", test_text);
 
-   account_get_source(handle, &test_text);
-   SECURE_LOGD("_account_get_callback : %s\n", test_text);
+       _account_free_text(test_text);
 
-   _account_free_text(test_text);
+       account_get_source(handle, &test_text);
+       SECURE_LOGD("_account_get_callback : %s\n", test_text);
 
-   account_get_package_name(handle, &test_text);
-   SECURE_LOGD("_account_get_callback : %s\n", test_text);
+       _account_free_text(test_text);
 
-   _account_free_text(test_text);
+       account_get_package_name(handle, &test_text);
+       SECURE_LOGD("_account_get_callback : %s\n", test_text);
 
-   account_get_domain_name(handle, &test_text);
-   SECURE_LOGD("_account_get_callback : %s\n", test_text);
+       _account_free_text(test_text);
 
-   _account_free_text(test_text);
+       account_get_domain_name(handle, &test_text);
+       SECURE_LOGD("_account_get_callback : %s\n", test_text);
 
-   account_get_access_token(handle, &test_text);
-   SECURE_LOGD("_account_get_callback : %s\n", test_text);
+       _account_free_text(test_text);
 
-   int i;
+       account_get_access_token(handle, &test_text);
+       SECURE_LOGD("_account_get_callback : %s\n", test_text);
 
-   for(i=0;i<USER_TXT_CNT;i++)
-   {
-          _account_free_text(test_text);
+       int i;
 
-          account_get_user_text(handle, i, &test_text);
-          SECURE_LOGD("_account_get_callback : %s\n", test_text);
-   }
+       for(i=0;i<USER_TXT_CNT;i++)
+       {
+               _account_free_text(test_text);
 
-   int test_int  = -1;
+               account_get_user_text(handle, i, &test_text);
+               SECURE_LOGD("_account_get_callback : %s\n", test_text);
+       }
 
-   account_auth_type_e auth_type;
-   account_get_auth_type(handle, &auth_type);
-   SECURE_LOGD("account_get_auth_type : %d\n", auth_type);
+       int test_int  = -1;
 
-   account_secrecy_state_e secret;
-   account_get_secret(handle, &secret);
-   SECURE_LOGD("account_get_secret : %d\n", secret);
+       account_auth_type_e auth_type;
+       account_get_auth_type(handle, &auth_type);
+       SECURE_LOGD("account_get_auth_type : %d\n", auth_type);
 
-   account_sync_state_e sync_support;
-   account_get_sync_support(handle, &sync_support);
-   SECURE_LOGD("account_get_sync_support : %d\n", sync_support);
+       account_secrecy_state_e secret;
+       account_get_secret(handle, &secret);
+       SECURE_LOGD("account_get_secret : %d\n", secret);
 
-   for(i=0;i<USER_INT_CNT;i++)
-   {
-          test_int  = -1;
-          account_get_user_int(handle, i, &test_int);
-          SECURE_LOGD("_account_get_callback : %d\n", test_int);
-   }
+       account_sync_state_e sync_support;
+       account_get_sync_support(handle, &sync_support);
+       SECURE_LOGD("account_get_sync_support : %d\n", sync_support);
 
-   account_get_capability(handle, _capability_get_callback, NULL);
+       for(i=0;i<USER_INT_CNT;i++)
+       {
+               test_int  = -1;
+               account_get_user_int(handle, i, &test_int);
+               SECURE_LOGD("_account_get_callback : %d\n", test_int);
+       }
 
-   ret = account_destroy(account);
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-          SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
+       account_get_capability(handle, _capability_get_callback, NULL);
 
-   ret = account_disconnect();
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-          SECURE_LOGD("(%d)-[Account] ret = %d, \n", __LINE__, ret);
-   }
+       ret = account_destroy(account);
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
+
+       ret = account_disconnect();
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, \n", __LINE__, ret);
+       }
 }
 @endcode
 
@@ -345,107 +345,107 @@ static void _account_free_text(char *text)
 
 bool _account_get_callback(account_h handle, void* user_data)
 {
-   SECURE_LOGD("_account_get_callback\n");
+       SECURE_LOGD("_account_get_callback\n");
 
-   char *test_text = NULL;
+       char *test_text = NULL;
 
-   account_get_user_name(handle, &test_text);
-   SECURE_LOGD("_account_get_callback : %s\n", test_text);
+       account_get_user_name(handle, &test_text);
+       SECURE_LOGD("_account_get_callback : %s\n", test_text);
 
-   _account_free_text(test_text);
+       _account_free_text(test_text);
 
-   account_get_display_name(handle, &test_text);
-   SECURE_LOGD("_account_get_callback : %s\n", test_text);
+       account_get_display_name(handle, &test_text);
+       SECURE_LOGD("_account_get_callback : %s\n", test_text);
 
-   _account_free_text(test_text);
+       _account_free_text(test_text);
 
-   account_get_email_address(handle, &test_text);
-   SECURE_LOGD("_account_get_callback : %s\n", test_text);
+       account_get_email_address(handle, &test_text);
+       SECURE_LOGD("_account_get_callback : %s\n", test_text);
 
-   _account_free_text(test_text);
+       _account_free_text(test_text);
 
-   account_get_icon_path(handle, &test_text);
-   SECURE_LOGD("_account_get_callback : %s\n", test_text);
+       account_get_icon_path(handle, &test_text);
+       SECURE_LOGD("_account_get_callback : %s\n", test_text);
 
-   _account_free_text(test_text);
+       _account_free_text(test_text);
 
-   account_get_source(handle, &test_text);
-   SECURE_LOGD("_account_get_callback : %s\n", test_text);
+       account_get_source(handle, &test_text);
+       SECURE_LOGD("_account_get_callback : %s\n", test_text);
 
-   _account_free_text(test_text);
+       _account_free_text(test_text);
 
-   account_get_package_name(handle, &test_text);
-   SECURE_LOGD("_account_get_callback : %s\n", test_text);
+       account_get_package_name(handle, &test_text);
+       SECURE_LOGD("_account_get_callback : %s\n", test_text);
 
-   _account_free_text(test_text);
+       _account_free_text(test_text);
 
-   account_get_domain_name(handle, &test_text);
-   SECURE_LOGD("_account_get_callback : %s\n", test_text);
+       account_get_domain_name(handle, &test_text);
+       SECURE_LOGD("_account_get_callback : %s\n", test_text);
 
-   _account_free_text(test_text);
+       _account_free_text(test_text);
 
-   account_get_access_token(handle, &test_text);
-   SECURE_LOGD("_account_get_callback : %s\n", test_text);
+       account_get_access_token(handle, &test_text);
+       SECURE_LOGD("_account_get_callback : %s\n", test_text);
 
-   int i;
+       int i;
 
-   for(i=0;i<USER_TXT_CNT;i++)
-   {
-       _account_free_text(test_text);
+       for(i=0;i<USER_TXT_CNT;i++)
+       {
+               _account_free_text(test_text);
 
-       account_get_user_text(handle, i, &test_text);
-       SECURE_LOGD("_account_get_callback : %s\n", test_text);
-   }
+               account_get_user_text(handle, i, &test_text);
+               SECURE_LOGD("_account_get_callback : %s\n", test_text);
+       }
 
-   int test_int  = -1;
+       int test_int  = -1;
 
-   account_auth_type_e auth_type;
-   account_get_auth_type(handle, &auth_type);
-   SECURE_LOGD("account_get_auth_type : %d\n", auth_type);
+       account_auth_type_e auth_type;
+       account_get_auth_type(handle, &auth_type);
+       SECURE_LOGD("account_get_auth_type : %d\n", auth_type);
 
-   account_secrecy_state_e secret;
-   account_get_secret(handle, &secret);
-   SECURE_LOGD("account_get_secret : %d\n", secret);
+       account_secrecy_state_e secret;
+       account_get_secret(handle, &secret);
+       SECURE_LOGD("account_get_secret : %d\n", secret);
 
-   account_sync_state_e sync_support;
-   account_get_sync_support(handle, &sync_support);
-   SECURE_LOGD("account_get_sync_support : %d\n", sync_support);
+       account_sync_state_e sync_support;
+       account_get_sync_support(handle, &sync_support);
+       SECURE_LOGD("account_get_sync_support : %d\n", sync_support);
 
-   for(i=0;i<USER_INT_CNT;i++)
-   {
-       test_int  = -1;
-       account_get_user_int(handle, i, &test_int);
-       SECURE_LOGD("_account_get_callback : %d\n", test_int);
-   }
+       for(i=0;i<USER_INT_CNT;i++)
+       {
+               test_int  = -1;
+               account_get_user_int(handle, i, &test_int);
+               SECURE_LOGD("_account_get_callback : %d\n", test_int);
+       }
 
-   account_get_capability(handle, _capability_get_callback, NULL);
+       account_get_capability(handle, _capability_get_callback, NULL);
 
-   return TRUE;
+       return TRUE;
 }
 
 
 void get_account_list_by_user_name(char * user_name)
 {
-   int ret = - 1;
-   account_h account;
-
-   ret = account_connect();
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-          SECURE_LOGD("(%d)-[Account] ret = %d, \n", __LINE__, ret);
-   }
-
-   ret = account_query_account_by_user_name(_account_get_callback, user_name, NULL);
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-          SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
+       int ret = - 1;
+       account_h account;
 
-   ret = account_disconnect();
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-          SECURE_LOGD("(%d)-[Account] ret = %d, \n", __LINE__, ret);
-   }
+       ret = account_connect();
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, \n", __LINE__, ret);
+       }
+
+       ret = account_query_account_by_user_name(_account_get_callback, user_name, NULL);
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
+
+       ret = account_disconnect();
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, \n", __LINE__, ret);
+       }
 }
 @endcode
 
@@ -462,106 +462,106 @@ static void _account_free_text(char *text)
 
 bool _account_get_callback(account_h handle, void* user_data)
 {
-   SECURE_LOGD("_account_get_callback\n");
+       SECURE_LOGD("_account_get_callback\n");
 
-   char *test_text = NULL;
+       char *test_text = NULL;
 
-   account_get_user_name(handle, &test_text);
-   SECURE_LOGD("_account_get_callback : %s\n", test_text);
+       account_get_user_name(handle, &test_text);
+       SECURE_LOGD("_account_get_callback : %s\n", test_text);
 
-   _account_free_text(test_text);
+       _account_free_text(test_text);
 
-   account_get_display_name(handle, &test_text);
-   SECURE_LOGD("_account_get_callback : %s\n", test_text);
+       account_get_display_name(handle, &test_text);
+       SECURE_LOGD("_account_get_callback : %s\n", test_text);
 
-   _account_free_text(test_text);
+       _account_free_text(test_text);
 
-   account_get_email_address(handle, &test_text);
-   SECURE_LOGD("_account_get_callback : %s\n", test_text);
+       account_get_email_address(handle, &test_text);
+       SECURE_LOGD("_account_get_callback : %s\n", test_text);
 
-   _account_free_text(test_text);
+       _account_free_text(test_text);
 
-   account_get_icon_path(handle, &test_text);
-   SECURE_LOGD("_account_get_callback : %s\n", test_text);
+       account_get_icon_path(handle, &test_text);
+       SECURE_LOGD("_account_get_callback : %s\n", test_text);
 
-   _account_free_text(test_text);
+       _account_free_text(test_text);
 
-   account_get_source(handle, &test_text);
-   SECURE_LOGD("_account_get_callback : %s\n", test_text);
+       account_get_source(handle, &test_text);
+       SECURE_LOGD("_account_get_callback : %s\n", test_text);
 
-   _account_free_text(test_text);
+       _account_free_text(test_text);
 
-   account_get_package_name(handle, &test_text);
-   SECURE_LOGD("_account_get_callback : %s\n", test_text);
+       account_get_package_name(handle, &test_text);
+       SECURE_LOGD("_account_get_callback : %s\n", test_text);
 
-   _account_free_text(test_text);
+       _account_free_text(test_text);
 
-   account_get_domain_name(handle, &test_text);
-   SECURE_LOGD("_account_get_callback : %s\n", test_text);
+       account_get_domain_name(handle, &test_text);
+       SECURE_LOGD("_account_get_callback : %s\n", test_text);
 
-   _account_free_text(test_text);
+       _account_free_text(test_text);
 
-   account_get_access_token(handle, &test_text);
-   SECURE_LOGD("_account_get_callback : %s\n", test_text);
+       account_get_access_token(handle, &test_text);
+       SECURE_LOGD("_account_get_callback : %s\n", test_text);
 
-   int i;
+       int i;
 
-   for(i=0;i<USER_TXT_CNT;i++)
-   {
-          _account_free_text(test_text);
+       for(i=0;i<USER_TXT_CNT;i++)
+       {
+               _account_free_text(test_text);
 
-       account_get_user_text(handle, i, &test_text);
-       SECURE_LOGD("_account_get_callback : %s\n", test_text);
-   }
+               account_get_user_text(handle, i, &test_text);
+               SECURE_LOGD("_account_get_callback : %s\n", test_text);
+       }
 
-   int test_int  = -1;
+       int test_int  = -1;
 
-   account_auth_type_e auth_type;
-   account_get_auth_type(handle, &auth_type);
-   SECURE_LOGD("account_get_auth_type : %d\n", auth_type);
+       account_auth_type_e auth_type;
+       account_get_auth_type(handle, &auth_type);
+       SECURE_LOGD("account_get_auth_type : %d\n", auth_type);
 
-   account_secrecy_state_e secret;
-   account_get_secret(handle, &secret);
-   SECURE_LOGD("account_get_secret : %d\n", secret);
+       account_secrecy_state_e secret;
+       account_get_secret(handle, &secret);
+       SECURE_LOGD("account_get_secret : %d\n", secret);
 
-   account_sync_state_e sync_support;
-   account_get_sync_support(handle, &sync_support);
-   SECURE_LOGD("account_get_sync_support : %d\n", sync_support);
+       account_sync_state_e sync_support;
+       account_get_sync_support(handle, &sync_support);
+       SECURE_LOGD("account_get_sync_support : %d\n", sync_support);
 
-   for(i=0;i<USER_INT_CNT;i++)
-   {
-       test_int  = -1;
-       account_get_user_int(handle, i, &test_int);
-       SECURE_LOGD("_account_get_callback : %d\n", test_int);
-   }
+       for(i=0;i<USER_INT_CNT;i++)
+       {
+               test_int  = -1;
+               account_get_user_int(handle, i, &test_int);
+               SECURE_LOGD("_account_get_callback : %d\n", test_int);
+       }
 
-   account_get_capability(handle, _capability_get_callback, NULL);
+       account_get_capability(handle, _capability_get_callback, NULL);
 
-   return TRUE;
+       return TRUE;
 }
 
 void get_account_list_by_package_name(char * package_name)
 {
-   int ret = - 1;
-   account_h account;
-
-   ret = account_connect();
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-          SECURE_LOGD("(%d)-[Account] ret = %d, \n", __LINE__, ret);
-   }
-
-   ret = account_query_account_by_package_name(_account_get_callback, package_name, NULL);
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-          SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
+       int ret = - 1;
+       account_h account;
 
-   ret = account_disconnect();
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-          SECURE_LOGD("(%d)-[Account] ret = %d, \n", __LINE__, ret);
-   }
+       ret = account_connect();
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, \n", __LINE__, ret);
+       }
+
+       ret = account_query_account_by_package_name(_account_get_callback, package_name, NULL);
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
+
+       ret = account_disconnect();
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, \n", __LINE__, ret);
+       }
 }
 @endcode
 
@@ -578,106 +578,106 @@ static void _account_free_text(char *text)
 
 bool _account_get_callback(account_h handle, void* user_data)
 {
-   SECURE_LOGD("_account_get_callback\n");
+       SECURE_LOGD("_account_get_callback\n");
 
-   char *test_text = NULL;
+       char *test_text = NULL;
 
-   account_get_user_name(handle, &test_text);
-   SECURE_LOGD("_account_get_callback : %s\n", test_text);
+       account_get_user_name(handle, &test_text);
+       SECURE_LOGD("_account_get_callback : %s\n", test_text);
 
-   _account_free_text(test_text);
+       _account_free_text(test_text);
 
-   account_get_display_name(handle, &test_text);
-   SECURE_LOGD("_account_get_callback : %s\n", test_text);
+       account_get_display_name(handle, &test_text);
+       SECURE_LOGD("_account_get_callback : %s\n", test_text);
 
-   _account_free_text(test_text);
+       _account_free_text(test_text);
 
-   account_get_email_address(handle, &test_text);
-   SECURE_LOGD("_account_get_callback : %s\n", test_text);
+       account_get_email_address(handle, &test_text);
+       SECURE_LOGD("_account_get_callback : %s\n", test_text);
 
-   _account_free_text(test_text);
+       _account_free_text(test_text);
 
-   account_get_icon_path(handle, &test_text);
-   SECURE_LOGD("_account_get_callback : %s\n", test_text);
+       account_get_icon_path(handle, &test_text);
+       SECURE_LOGD("_account_get_callback : %s\n", test_text);
 
-   _account_free_text(test_text);
+       _account_free_text(test_text);
 
-   account_get_source(handle, &test_text);
-   SECURE_LOGD("_account_get_callback : %s\n", test_text);
+       account_get_source(handle, &test_text);
+       SECURE_LOGD("_account_get_callback : %s\n", test_text);
 
-   _account_free_text(test_text);
+       _account_free_text(test_text);
 
-   account_get_package_name(handle, &test_text);
-   SECURE_LOGD("_account_get_callback : %s\n", test_text);
+       account_get_package_name(handle, &test_text);
+       SECURE_LOGD("_account_get_callback : %s\n", test_text);
 
-   _account_free_text(test_text);
+       _account_free_text(test_text);
 
-   account_get_domain_name(handle, &test_text);
-   SECURE_LOGD("_account_get_callback : %s\n", test_text);
+       account_get_domain_name(handle, &test_text);
+       SECURE_LOGD("_account_get_callback : %s\n", test_text);
 
-   _account_free_text(test_text);
+       _account_free_text(test_text);
 
-   account_get_access_token(handle, &test_text);
-   SECURE_LOGD("_account_get_callback : %s\n", test_text);
+       account_get_access_token(handle, &test_text);
+       SECURE_LOGD("_account_get_callback : %s\n", test_text);
 
-   int i;
+       int i;
 
-   for(i=0;i<USER_TXT_CNT;i++)
-   {
-       _account_free_text(test_text);
+       for(i=0;i<USER_TXT_CNT;i++)
+       {
+               _account_free_text(test_text);
 
-       account_get_user_text(handle, i, &test_text);
-       SECURE_LOGD("_account_get_callback : %s\n", test_text);
-   }
+               account_get_user_text(handle, i, &test_text);
+               SECURE_LOGD("_account_get_callback : %s\n", test_text);
+       }
 
-   int test_int  = -1;
+       int test_int  = -1;
 
-   account_auth_type_e auth_type;
-   account_get_auth_type(handle, &auth_type);
-   SECURE_LOGD("account_get_auth_type : %d\n", auth_type);
+       account_auth_type_e auth_type;
+       account_get_auth_type(handle, &auth_type);
+       SECURE_LOGD("account_get_auth_type : %d\n", auth_type);
 
-   account_secrecy_state_e secret;
-   account_get_secret(handle, &secret);
-   SECURE_LOGD("account_get_secret : %d\n", secret);
+       account_secrecy_state_e secret;
+       account_get_secret(handle, &secret);
+       SECURE_LOGD("account_get_secret : %d\n", secret);
 
-   account_sync_state_e sync_support;
-   account_get_sync_support(handle, &sync_support);
-   SECURE_LOGD("account_get_sync_support : %d\n", sync_support);
+       account_sync_state_e sync_support;
+       account_get_sync_support(handle, &sync_support);
+       SECURE_LOGD("account_get_sync_support : %d\n", sync_support);
 
-   for(i=0;i<USER_INT_CNT;i++)
-   {
-       test_int  = -1;
-       account_get_user_int(handle, i, &test_int);
-       SECURE_LOGD("_account_get_callback : %d\n", test_int);
-   }
+       for(i=0;i<USER_INT_CNT;i++)
+       {
+               test_int  = -1;
+               account_get_user_int(handle, i, &test_int);
+               SECURE_LOGD("_account_get_callback : %d\n", test_int);
+       }
 
-   account_get_capability(handle, _capability_get_callback, NULL);
+       account_get_capability(handle, _capability_get_callback, NULL);
 
-   return TRUE;
+       return TRUE;
 }
 
 void get_all_account()
 {
-   int ret = - 1;
-   account_h account;
-
-   ret = account_connect();
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-          SECURE_LOGD("(%d)-[Account] ret = %d, \n", __LINE__, ret);
-   }
-
-   ret = account_foreach_account_from_db(_account_get_callback, NULL);
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-          SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
+       int ret = - 1;
+       account_h account;
+
+       ret = account_connect();
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, \n", __LINE__, ret);
+       }
+
+       ret = account_foreach_account_from_db(_account_get_callback, NULL);
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
 
-   ret = account_disconnect();
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-          SECURE_LOGD("(%d)-[Account] ret = %d, \n", __LINE__, ret);
-   }
+       ret = account_disconnect();
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, \n", __LINE__, ret);
+       }
 }
 @endcode
 
@@ -686,125 +686,124 @@ void get_all_account()
 @code
 void update_accont_by_id(int account_id)
 {
-   int ret = -1;
-   account_h account;
-
-   ret = account_connect();
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-      SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
-
-   ret = account_create(&account);
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-      SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
-
-   ret = account_set_user_name(account, "update-tarun.kr");
-
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-       SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
-
-   ret = account_set_display_name(account, "update-Tarun Kumar");
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-       SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
-
-   ret = account_set_domain_name(account, "update-Samsung electronics");
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-       SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
-
-   ret = account_set_email_address(account, "update-tarun@gmail.com");
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-       SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
-
-   ret = account_set_package_name(account, "update-com.samsung.twiter");
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-       SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
-
-   ret = account_set_icon_path(account, "update-icon-path");
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-       SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
-
-   ret = account_set_access_token(account, "update-ACCESSTOKEN");
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-       SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
-
-   ret = account_set_auth_type( account, ACCOUNT_AUTH_TYPE_OAUTH );
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-       SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
-   ret = account_set_secret( account, ACCOUNT_SECRECY_INVISIBLE );
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-       SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
-   ret = account_set_source(account, "update-URUSA inc.");
-
-   int i;
-
-   for(i=0;i<USER_TXT_CNT;i++)
-   {
-       ret = account_set_user_text(account, i, "update-user txt");
-       if(ret != ACCOUNT_ERROR_NONE)
-       {
-           SECURE_LOGD("(%d)-[Account] ret = %d, account=%p, i=%d\n", __LINE__, ret, account, i);
-       }
-
-   }
-
-   for(i=0;i<USER_INT_CNT;i++)
-   {
-       ret = account_set_user_int(account, i, 999);
-       if(ret != ACCOUNT_ERROR_NONE)
-       {
-           SECURE_LOGD("(%d)-[Account] ret = %d, account=%p, i=%d\n", __LINE__, ret, account, i);
-       }
-   }
-
-   ret = account_set_capability(account, ACCOUNT_CAPABILITY_CONTACT, ACCOUNT_CAPABILITY_DISABLED);
-   ret = account_set_capability(account, ACCOUNT_CAPABILITY_CALENDAR, ACCOUNT_CAPABILITY_DISABLED);
-   ret = account_set_capability(account, ACCOUNT_CAPABILITY_PHOTO, ACCOUNT_CAPABILITY_DISABLED);
-   ret = account_set_capability(account, ACCOUNT_CAPABILITY_VIDEO, ACCOUNT_CAPABILITY_DISABLED);
-   ret = account_set_capability(account, ACCOUNT_CAPABILITY_EMAIL, ACCOUNT_CAPABILITY_DISABLED);
-   ret = account_set_capability(account, ACCOUNT_CAPABILITY_STATUS_POST, ACCOUNT_CAPABILITY_DISABLED);
-   ret = account_set_capability(account, ACCOUNT_CAPABILITY_VOIP, ACCOUNT_CAPABILITY_DISABLED);
-   ret = account_set_capability(account, ACCOUNT_CAPABILITY_SAMSUNG_APPS, ACCOUNT_CAPABILITY_DISABLED);
-   ret = account_set_capability(account, ACCOUNT_CAPABILITY_MOBILE_TRACKER, ACCOUNT_CAPABILITY_DISABLED);
-
-   ret = account_update_to_db_by_id(account, account_id);
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-       SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-       return;
-   }
-
-   ret = account_destroy(account);
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-       SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
-
-   ret = account_disconnect();
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-       SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
+       int ret = -1;
+       account_h account;
+
+       ret = account_connect();
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
+
+       ret = account_create(&account);
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
+
+       ret = account_set_user_name(account, "update-tarun.kr");
+
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
+
+       ret = account_set_display_name(account, "update-Tarun Kumar");
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
+
+       ret = account_set_domain_name(account, "update-Samsung electronics");
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
+
+       ret = account_set_email_address(account, "update-tarun@gmail.com");
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
+
+       ret = account_set_package_name(account, "update-com.samsung.twiter");
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
+
+       ret = account_set_icon_path(account, "update-icon-path");
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
+
+       ret = account_set_access_token(account, "update-ACCESSTOKEN");
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
+
+       ret = account_set_auth_type( account, ACCOUNT_AUTH_TYPE_OAUTH );
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
+       ret = account_set_secret( account, ACCOUNT_SECRECY_INVISIBLE );
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
+       ret = account_set_source(account, "update-URUSA inc.");
+
+       int i;
+
+       for(i=0;i<USER_TXT_CNT;i++)
+       {
+               ret = account_set_user_text(account, i, "update-user txt");
+               if(ret != ACCOUNT_ERROR_NONE)
+               {
+                       SECURE_LOGD("(%d)-[Account] ret = %d, account=%p, i=%d\n", __LINE__, ret, account, i);
+               }
+       }
+
+       for(i=0;i<USER_INT_CNT;i++)
+       {
+               ret = account_set_user_int(account, i, 999);
+               if(ret != ACCOUNT_ERROR_NONE)
+               {
+                       SECURE_LOGD("(%d)-[Account] ret = %d, account=%p, i=%d\n", __LINE__, ret, account, i);
+               }
+       }
+
+       ret = account_set_capability(account, ACCOUNT_CAPABILITY_CONTACT, ACCOUNT_CAPABILITY_DISABLED);
+       ret = account_set_capability(account, ACCOUNT_CAPABILITY_CALENDAR, ACCOUNT_CAPABILITY_DISABLED);
+       ret = account_set_capability(account, ACCOUNT_CAPABILITY_PHOTO, ACCOUNT_CAPABILITY_DISABLED);
+       ret = account_set_capability(account, ACCOUNT_CAPABILITY_VIDEO, ACCOUNT_CAPABILITY_DISABLED);
+       ret = account_set_capability(account, ACCOUNT_CAPABILITY_EMAIL, ACCOUNT_CAPABILITY_DISABLED);
+       ret = account_set_capability(account, ACCOUNT_CAPABILITY_STATUS_POST, ACCOUNT_CAPABILITY_DISABLED);
+       ret = account_set_capability(account, ACCOUNT_CAPABILITY_VOIP, ACCOUNT_CAPABILITY_DISABLED);
+       ret = account_set_capability(account, ACCOUNT_CAPABILITY_SAMSUNG_APPS, ACCOUNT_CAPABILITY_DISABLED);
+       ret = account_set_capability(account, ACCOUNT_CAPABILITY_MOBILE_TRACKER, ACCOUNT_CAPABILITY_DISABLED);
+
+       ret = account_update_to_db_by_id(account, account_id);
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+          SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+          return;
+       }
+
+       ret = account_destroy(account);
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
+
+       ret = account_disconnect();
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
 }
 @endcode
 
@@ -813,129 +812,128 @@ void update_accont_by_id(int account_id)
 @code
 void update_accont_by_user_name(char *user_name, char *package_name)
 {
-   int ret = -1;
-   account_h account;
-
-   ret = account_connect();
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-      SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
-
-   ret = account_create(&account);
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-      SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
-
-   ret = account_set_user_name(account, "update-tarun.kr");
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-      SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
-
-   ret = account_set_display_name(account, "update-Tarun Kumar");
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-      SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
-
-   ret = account_set_domain_name(account, "update-Samsung electronics");
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-       SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
-
-   ret = account_set_email_address(account, "update-tarun@gmail.com");
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-       SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
-
-   ret = account_set_package_name(account, "update-com.samsung.twiter");
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-       SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
-
-   ret = account_set_icon_path(account, "update-icon-path");
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-       SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
-
-   ret = account_set_access_token(account, "update-ACCESSTOKEN");
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-       SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
-
-   ret = account_set_auth_type( account, ACCOUNT_AUTH_TYPE_OAUTH );
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-       SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
-   ret = account_set_secret( account, ACCOUNT_SECRECY_INVISIBLE );
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-          SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
+       int ret = -1;
+       account_h account;
 
-   ret = account_set_source(account, "update-URUSA inc.");
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-          SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
-
-   int i;
-
-   for(i=0;i<USER_TXT_CNT;i++)
-   {
-       ret = account_set_user_text(account, i, "update-user txt");
-       if(ret != ACCOUNT_ERROR_NONE)
-       {
-           SECURE_LOGD("(%d)-[Account] ret = %d, account=%p, i=%d\n", __LINE__, ret, account, i);
-       }
-
-   }
-
-   for(i=0;i<USER_INT_CNT;i++)
-   {
-       ret = account_set_user_int(account, i, 999);
-       if(ret != ACCOUNT_ERROR_NONE)
-       {
-           SECURE_LOGD("(%d)-[Account] ret = %d, account=%p, i=%d\n", __LINE__, ret, account, i);
-       }
-   }
-
-   ret = account_set_capability(account, ACCOUNT_CAPABILITY_CONTACT, ACCOUNT_CAPABILITY_DISABLED);
-   ret = account_set_capability(account, ACCOUNT_CAPABILITY_CALENDAR, ACCOUNT_CAPABILITY_DISABLED);
-   ret = account_set_capability(account, ACCOUNT_CAPABILITY_PHOTO, ACCOUNT_CAPABILITY_DISABLED);
-   ret = account_set_capability(account, ACCOUNT_CAPABILITY_VIDEO, ACCOUNT_CAPABILITY_DISABLED);
-   ret = account_set_capability(account, ACCOUNT_CAPABILITY_EMAIL, ACCOUNT_CAPABILITY_DISABLED);
-   ret = account_set_capability(account, ACCOUNT_CAPABILITY_STATUS_POST, ACCOUNT_CAPABILITY_DISABLED);
-   ret = account_set_capability(account, ACCOUNT_CAPABILITY_VOIP, ACCOUNT_CAPABILITY_DISABLED);
-   ret = account_set_capability(account, ACCOUNT_CAPABILITY_SAMSUNG_APPS, ACCOUNT_CAPABILITY_DISABLED);
-   ret = account_set_capability(account, ACCOUNT_CAPABILITY_MOBILE_TRACKER, ACCOUNT_CAPABILITY_DISABLED);
-
-   ret = account_update_to_db_by_user_name(account, user_name, package_name);
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-       SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-       return;
-   }
-
-   ret = account_destroy(account);
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-      SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
-
-   ret = account_disconnect();
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-      SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
-   }
+       ret = account_connect();
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
+
+       ret = account_create(&account);
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
+
+       ret = account_set_user_name(account, "update-tarun.kr");
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
+
+       ret = account_set_display_name(account, "update-Tarun Kumar");
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
+
+       ret = account_set_domain_name(account, "update-Samsung electronics");
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
+
+       ret = account_set_email_address(account, "update-tarun@gmail.com");
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
+
+       ret = account_set_package_name(account, "update-com.samsung.twiter");
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
+
+       ret = account_set_icon_path(account, "update-icon-path");
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
+
+       ret = account_set_access_token(account, "update-ACCESSTOKEN");
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
+
+       ret = account_set_auth_type( account, ACCOUNT_AUTH_TYPE_OAUTH );
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
+       ret = account_set_secret( account, ACCOUNT_SECRECY_INVISIBLE );
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
+
+       ret = account_set_source(account, "update-URUSA inc.");
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
+
+       int i;
+
+       for(i=0;i<USER_TXT_CNT;i++)
+       {
+               ret = account_set_user_text(account, i, "update-user txt");
+               if(ret != ACCOUNT_ERROR_NONE)
+               {
+                       SECURE_LOGD("(%d)-[Account] ret = %d, account=%p, i=%d\n", __LINE__, ret, account, i);
+               }
+       }
+
+       for(i=0;i<USER_INT_CNT;i++)
+       {
+               ret = account_set_user_int(account, i, 999);
+               if(ret != ACCOUNT_ERROR_NONE)
+               {
+                       SECURE_LOGD("(%d)-[Account] ret = %d, account=%p, i=%d\n", __LINE__, ret, account, i);
+               }
+       }
+
+       ret = account_set_capability(account, ACCOUNT_CAPABILITY_CONTACT, ACCOUNT_CAPABILITY_DISABLED);
+       ret = account_set_capability(account, ACCOUNT_CAPABILITY_CALENDAR, ACCOUNT_CAPABILITY_DISABLED);
+       ret = account_set_capability(account, ACCOUNT_CAPABILITY_PHOTO, ACCOUNT_CAPABILITY_DISABLED);
+       ret = account_set_capability(account, ACCOUNT_CAPABILITY_VIDEO, ACCOUNT_CAPABILITY_DISABLED);
+       ret = account_set_capability(account, ACCOUNT_CAPABILITY_EMAIL, ACCOUNT_CAPABILITY_DISABLED);
+       ret = account_set_capability(account, ACCOUNT_CAPABILITY_STATUS_POST, ACCOUNT_CAPABILITY_DISABLED);
+       ret = account_set_capability(account, ACCOUNT_CAPABILITY_VOIP, ACCOUNT_CAPABILITY_DISABLED);
+       ret = account_set_capability(account, ACCOUNT_CAPABILITY_SAMSUNG_APPS, ACCOUNT_CAPABILITY_DISABLED);
+       ret = account_set_capability(account, ACCOUNT_CAPABILITY_MOBILE_TRACKER, ACCOUNT_CAPABILITY_DISABLED);
+
+       ret = account_update_to_db_by_user_name(account, user_name, package_name);
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+               return;
+       }
+
+       ret = account_destroy(account);
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
+
+       ret = account_disconnect();
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, account=%p\n", __LINE__, ret, account);
+       }
 }
 @endcode
 
@@ -944,26 +942,26 @@ void update_accont_by_user_name(char *user_name, char *package_name)
 @code
 void delete_account_by_id(int account_id)
 {
-   int ret = -1;
-
-   ret = account_connect();
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-          SECURE_LOGD("(%d)-[Account] ret = %d, \n", __LINE__, ret);
-   }
-
-   ret = account_delete(account_id);
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-          SECURE_LOGD("(%d)-[Account] ret = %d, \n", __LINE__, ret);
-   }
-
-   ret = account_disconnect();
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-          SECURE_LOGD("(%d)-[Account] ret = %d, \n", __LINE__, ret);
-   }
-   return;
+       int ret = -1;
+
+       ret = account_connect();
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, \n", __LINE__, ret);
+       }
+
+       ret = account_delete(account_id);
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, \n", __LINE__, ret);
+       }
+
+       ret = account_disconnect();
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, \n", __LINE__, ret);
+       }
+       return;
 }
 @endcode
 
@@ -972,26 +970,26 @@ void delete_account_by_id(int account_id)
 @code
 void update_sync_status_by_id(int account_id, const account_sync_state_e sync_status)
 {
-   int ret = -1;
-
-   ret = account_connect();
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-          SECURE_LOGD("(%d)-[Account] ret = %d, \n", __LINE__, ret);
-   }
-
-   ret = account_update_sync_status_by_id(account_id, sync_status);
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-          SECURE_LOGD("(%d)-[Account] ret = %d, \n", __LINE__, ret);
-   }
-
-   ret = account_disconnect();
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-          SECURE_LOGD("(%d)-[Account] ret = %d, \n", __LINE__, ret);
-   }
-   return;
+       int ret = -1;
+
+       ret = account_connect();
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, \n", __LINE__, ret);
+       }
+
+       ret = account_update_sync_status_by_id(account_id, sync_status);
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, \n", __LINE__, ret);
+       }
+
+       ret = account_disconnect();
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, \n", __LINE__, ret);
+       }
+       return;
 }
 @endcode
 
@@ -1000,25 +998,25 @@ void update_sync_status_by_id(int account_id, const account_sync_state_e sync_st
 @code
 void delete_account_by_user_name(char *user_name, char *package_name)
 {
-   int ret = -1;
-   ret = account_connect();
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-          SECURE_LOGD("(%d)-[Account] ret = %d, \n", __LINE__, ret);
-   }
-
-   ret = account_delete_from_db_by_user_name(user_name, package_name);
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-          SECURE_LOGD("(%d)-[Account] ret = %d \n", __LINE__, ret);
-   }
-
-   ret = account_disconnect();
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-          SECURE_LOGD("(%d)-[Account] ret = %d, \n", __LINE__, ret);
-   }
-   return;
+       int ret = -1;
+       ret = account_connect();
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, \n", __LINE__, ret);
+       }
+
+       ret = account_delete_from_db_by_user_name(user_name, package_name);
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d \n", __LINE__, ret);
+       }
+
+       ret = account_disconnect();
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, \n", __LINE__, ret);
+       }
+       return;
 }
 @endcode
 
@@ -1027,25 +1025,25 @@ void delete_account_by_user_name(char *user_name, char *package_name)
 @code
 void delete_account_by_package_name(char *package_name)
 {
-   int ret = -1;
-   ret = account_connect();
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-          SECURE_LOGD("(%d)-[Account] ret = %d, \n", __LINE__, ret);
-   }
-
-   ret = account_delete_from_db_by_package_name(package_name);
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-          SECURE_LOGD("(%d)-[Account] ret = %d \n", __LINE__, ret);
-   }
-
-   ret = account_disconnect();
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-          SECURE_LOGD("(%d)-[Account] ret = %d, \n", __LINE__, ret);
-   }
-   return;
+       int ret = -1;
+       ret = account_connect();
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, \n", __LINE__, ret);
+       }
+
+       ret = account_delete_from_db_by_package_name(package_name);
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d \n", __LINE__, ret);
+       }
+
+       ret = account_disconnect();
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, \n", __LINE__, ret);
+       }
+       return;
 }
 @endcode
 
@@ -1054,7 +1052,7 @@ void delete_account_by_package_name(char *package_name)
 @code
 void notify_account_insert()
 {
-    DBusMessage* msg;
+       DBusMessage* msg;
     DBusConnection* conn;
     DBusError err;
 
@@ -1063,35 +1061,34 @@ void notify_account_insert()
     dbus_error_init(&err);
 
     conn = dbus_bus_get(DBUS_BUS_SYSTEM, &err);
-    if  (dbus_error_is_set(&err)) {
-            dbus_error_free(&err);
+    if (dbus_error_is_set(&err)) {
+               dbus_error_free(&err);
     }
     if (NULL == conn) {
-            exit(1);
+               exit(1);
     }
 
     dbus_bus_add_match(conn, "type='signal',interface='account.signal.Type'", &err);
     dbus_connection_flush(conn);
-    if  (dbus_error_is_set(&err)) {
-            exit(1);
+    if (dbus_error_is_set(&err)) {
+               exit(1);
     }
     SECURE_LOGD("Match rule sent\n");
 
     while (true) {
+               dbus_connection_read_write(conn, 0);
+               msg = dbus_connection_pop_message(conn);
 
-            dbus_connection_read_write(conn, 0);
-            msg = dbus_connection_pop_message(conn);
+               if (NULL == msg) {
+                       sleep(1);
+                       continue;
+               }
 
-            if  (NULL == msg) {
-                sleep(1);
-                continue;
-            }
+               if (dbus_message_is_signal(msg, ACCOUNT_DBUS_SIGNAL_INTERFACE, ACCOUNT_DBUS_NOTI_NAME_INSERT)) {
+                       SECURE_LOGD("Got Signal with name insert\n");
+               }
 
-            if (dbus_message_is_signal(msg, ACCOUNT_DBUS_SIGNAL_INTERFACE, ACCOUNT_DBUS_NOTI_NAME_INSERT)) {
-                 SECURE_LOGD("Got Signal with name insert\n");
-            }
-
-            dbus_message_unref(msg);
+               dbus_message_unref(msg);
     }
     dbus_connection_close(conn);
 }
@@ -1108,39 +1105,37 @@ void notify_account_update()
 
     SECURE_LOGD("Listening for signals\n");
 
-
     dbus_error_init(&err);
 
     conn = dbus_bus_get(DBUS_BUS_SYSTEM, &err);
     if  (dbus_error_is_set(&err)) {
-            dbus_error_free(&err);
+               dbus_error_free(&err);
     }
     if (NULL == conn) {
-            exit(1);
+               exit(1);
     }
 
     dbus_bus_add_match(conn, "type='signal',interface='account.signal.Type'", &err);
     dbus_connection_flush(conn);
-    if  (dbus_error_is_set(&err)) {
-            exit(1);
+    if (dbus_error_is_set(&err)) {
+               exit(1);
     }
     SECURE_LOGD("Match rule sent\n");
 
-    while (true) {
-
-            dbus_connection_read_write(conn, 0);
-            msg = dbus_connection_pop_message(conn);
+       while (true) {
+               dbus_connection_read_write(conn, 0);
+               msg = dbus_connection_pop_message(conn);
 
-            if  (NULL == msg) {
-                sleep(1);
-                continue;
-            }
+               if (NULL == msg) {
+                       sleep(1);
+                       continue;
+               }
 
-            if (dbus_message_is_signal(msg, ACCOUNT_DBUS_SIGNAL_INTERFACE, ACCOUNT_DBUS_NOTI_NAME_UPDATE)) {
-                SECURE_LOGD("Got Signal with name update\n");
-            }
+               if (dbus_message_is_signal(msg, ACCOUNT_DBUS_SIGNAL_INTERFACE, ACCOUNT_DBUS_NOTI_NAME_UPDATE)) {
+                       SECURE_LOGD("Got Signal with name update\n");
+               }
 
-            dbus_message_unref(msg);
+               dbus_message_unref(msg);
     }
     dbus_connection_close(conn);
 }
@@ -1157,39 +1152,37 @@ void notify_account_delete()
 
     SECURE_LOGD("Listening for signals\n");
 
-
     dbus_error_init(&err);
 
     conn = dbus_bus_get(DBUS_BUS_SYSTEM, &err);
-    if  (dbus_error_is_set(&err)) {
-            dbus_error_free(&err);
+    if (dbus_error_is_set(&err)) {
+               dbus_error_free(&err);
     }
     if (NULL == conn) {
-            exit(1);
+               exit(1);
     }
 
     dbus_bus_add_match(conn, "type='signal',interface='account.signal.Type'", &err);
     dbus_connection_flush(conn);
     if  (dbus_error_is_set(&err)) {
-            exit(1);
+               exit(1);
     }
     SECURE_LOGD("Match rule sent\n");
 
     while (true) {
+               dbus_connection_read_write(conn, 0);
+               msg = dbus_connection_pop_message(conn);
 
-            dbus_connection_read_write(conn, 0);
-            msg = dbus_connection_pop_message(conn);
-
-            if  (NULL == msg) {
-                sleep(1);
-                continue;
-            }
+               if (NULL == msg) {
+                       sleep(1);
+                       continue;
+               }
 
-            if (dbus_message_is_signal(msg, ACCOUNT_DBUS_SIGNAL_INTERFACE, ACCOUNT_DBUS_NOTI_NAME_DELETE)) {
-                SECURE_LOGD("Got Signal with name delete\n");
-            }
+               if (dbus_message_is_signal(msg, ACCOUNT_DBUS_SIGNAL_INTERFACE, ACCOUNT_DBUS_NOTI_NAME_DELETE)) {
+               SECURE_LOGD("Got Signal with name delete\n");
+               }
 
-            dbus_message_unref(msg);
+               dbus_message_unref(msg);
     }
     dbus_connection_close(conn);
 }
@@ -1200,35 +1193,35 @@ void notify_account_delete()
 @code
 bool _capability_get_callback(const char* capability_type, account_capability_state_e capability_value, void* user_data)
 {
-   char* test_type = capability_type;
-   int test_value = capability_value;
+       char* test_type = capability_type;
+       int test_value = capability_value;
 
-   SECURE_LOGD("_capability_get_callback test_type = : %s\n", test_type);
-   SECURE_LOGD("_capability_get_callback test_value = : %d\n", test_value);
-   return TRUE;
+       SECURE_LOGD("_capability_get_callback test_type = : %s\n", test_type);
+       SECURE_LOGD("_capability_get_callback test_value = : %d\n", test_value);
+       return TRUE;
 }
 
 void capability_by_account_id(int account_id)
 {
-   int ret = -1;
-   ret = account_connect();
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-          SECURE_LOGD("(%d)-[Account] ret = %d, \n", __LINE__, ret);
-   }
-
-   ret = account_query_capability_by_account_id(_capability_get_callback, account_id, NULL);
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-          SECURE_LOGD("(%d)-[Account] ret = %d \n", __LINE__, ret);
-   }
-
-   ret = account_disconnect();
-   if(ret != ACCOUNT_ERROR_NONE)
-   {
-          SECURE_LOGD("(%d)-[Account] ret = %d, \n", __LINE__, ret);
-   }
-   return;
+       int ret = -1;
+       ret = account_connect();
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, \n", __LINE__, ret);
+       }
+
+       ret = account_query_capability_by_account_id(_capability_get_callback, account_id, NULL);
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d \n", __LINE__, ret);
+       }
+
+       ret = account_disconnect();
+       if(ret != ACCOUNT_ERROR_NONE)
+       {
+               SECURE_LOGD("(%d)-[Account] ret = %d, \n", __LINE__, ret);
+       }
+       return;
 }
 @endcode
  * @}
index c5209a6..7abd2f6 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libaccount-service
 Summary:    Account DB library
-Version:    0.4.11
+Version:    0.4.12
 Release:    1
 Group:      Social & Content/API
 License:    Apache-2.0