<method name="account_add">
<arg type="s" name="account_db_path" direction="in" />
<arg type="a{sv}" name="account_data" direction="in" />
- <arg type="s" name="cookie" direction="in" />
<arg type="i" name="account_db_id" direction="out" />
</method>
<method name="account_type_add">
<arg type="s" name="account_db_path" direction="in" />
<arg type="a{sv}" name="account_type_data" direction="in" />
- <arg type="s" name="cookie" direction="in" />
<arg type="i" name="account_type_db_id" direction="out" />
</method>
<method name="account_query_all">
<arg type="s" name="account_db_path" direction="in" />
- <arg type="s" name="cookie" direction="in" />
<arg type="aa{sv}" name="account_data" direction="out" />
</method>
<method name="account_type_query_all">
<arg type="s" name="account_db_path" direction="in" />
- <arg type="s" name="cookie" direction="in" />
<arg type="aa{sv}" name="account_type_data" direction="out" />
</method>
<method name="account_delete_from_db_by_id">
<arg type="s" name="account_db_path" direction="in" />
<arg type="i" name="account_db_id" direction="in" />
- <arg type="s" name="cookie" direction="in" />
</method>
<method name="account_delete_from_db_by_user_name">
<arg type="s" name="account_db_path" direction="in" />
<arg type="s" name="user_name" direction="in" />
<arg type="s" name="package_name" direction="in" />
- <arg type="s" name="cookie" direction="in" />
</method>
<method name="account_delete_from_db_by_package_name">
<arg type="s" name="account_db_path" direction="in" />
<arg type="s" name="package_name" direction="in" />
- <arg type="b" name="permission" direction="in" />
- <arg type="s" name="cookie" direction="in" />
+ <arg type="b" name="permission" direction="in" />
</method>
<method name="account_update_to_db_by_id">
<arg type="s" name="account_db_path" direction="in" />
<arg type="a{sv}" name="account_data" direction="in" />
<arg type="i" name="account_id" direction="in" />
- <arg type="s" name="cookie" direction="in" />
</method>
<method name="account_get_total_count_from_db">
<arg type="s" name="account_db_path" direction="in" />
<arg type="b" name="include_hidden" direction="in" />
- <arg type="s" name="cookie" direction="in" />
<arg type="i" name="count" direction="out" />
</method>
<method name="account_query_account_by_account_id">
<arg type="s" name="account_db_path" direction="in" />
<arg type="i" name="account_db_id" direction="in" />
- <arg type="s" name="cookie" direction="in" />
<arg type="a{sv}" name="account_data" direction="out" />
</method>
<method name="account_update_to_db_by_user_name">
<arg type="a{sv}" name="account_data" direction="in" />
<arg type="s" name="user_name" direction="in" />
<arg type="s" name="package_name" direction="in" />
- <arg type="s" name="cookie" direction="in" />
</method>
<method name="account_type_query_label_by_locale">
<arg type="s" name="account_db_path" direction="in" />
<arg type="s" name="app_id" direction="in" />
<arg type="s" name="locale" direction="in" />
- <arg type="s" name="cookie" direction="in" />
<arg type="s" name="label_name" direction="out" />
</method>
<method name="account_type_query_by_provider_feature">
<arg type="s" name="account_db_path" direction="in" />
<arg type="s" name="key" direction="in" />
- <arg type="s" name="cookie" direction="in" />
<arg type="aa{sv}" name="account_type_list_data" direction="out" />
</method>
<method name="account_query_account_by_user_name">
<arg type="s" name="account_db_path" direction="in" />
<arg type="s" name="user_name" direction="in" />
- <arg type="s" name="cookie" direction="in" />
<arg type="aa{sv}" name="account_list_data" direction="out" />
</method>
<method name="account_query_account_by_package_name">
<arg type="s" name="account_db_path" direction="in" />
<arg type="s" name="package_name" direction="in" />
- <arg type="s" name="cookie" direction="in" />
<arg type="aa{sv}" name="account_list_data" direction="out" />
</method>
<method name="account_query_account_by_capability">
<arg type="s" name="account_db_path" direction="in" />
<arg type="s" name="capability_type" direction="in" />
<arg type="i" name="capability_value" direction="in" />
- <arg type="s" name="cookie" direction="in" />
<arg type="aa{sv}" name="account_list_data" direction="out" />
</method>
<method name="account_query_account_by_capability_type">
<arg type="s" name="account_db_path" direction="in" />
<arg type="s" name="capability_type" direction="in" />
- <arg type="s" name="cookie" direction="in" />
<arg type="aa{sv}" name="account_list_data" direction="out" />
</method>
<method name="account_query_capability_by_account_id">
<arg type="s" name="account_db_path" direction="in" />
<arg type="i" name="account_id" direction="in" />
- <arg type="s" name="cookie" direction="in" />
<arg type="aa{sv}" name="account_list_data" direction="out" />
</method>
<method name="account_update_sync_status_by_id">
<arg type="s" name="account_db_path" direction="in" />
<arg type="i" name="account_db_id" direction="in" />
<arg type="i" name="sync_status" direction="in" />
- <arg type="s" name="cookie" direction="in" />
</method>
<method name="account_type_query_provider_feature_by_app_id">
<arg type="s" name="account_db_path" direction="in" />
<arg type="s" name="app_id" direction="in" />
- <arg type="s" name="cookie" direction="in" />
<arg type="a(ss)" name="feature_list_data" direction="out" />
</method>
<method name="account_type_query_supported_feature">
<arg type="s" name="account_db_path" direction="in" />
<arg type="s" name="app_id" direction="in" />
<arg type="s" name="capability" direction="in" />
- <arg type="s" name="cookie" direction="in" />
<arg type="i" name="is_supported" direction="out" />
</method>
<method name="account_type_update_to_db_by_app_id">
<arg type="s" name="account_db_path" direction="in" />
<arg type="a{sv}" name="account_type_variant" direction="in" />
<arg type="s" name="app_id" direction="in" />
- <arg type="s" name="cookie" direction="in" />
</method>
<method name="account_type_delete_by_app_id">
<arg type="s" name="account_db_path" direction="in" />
<arg type="s" name="app_id" direction="in" />
- <arg type="s" name="cookie" direction="in" />
</method>
<method name="account_type_query_label_by_app_id">
<arg type="s" name="account_db_path" direction="in" />
<arg type="s" name="app_id" direction="in" />
- <arg type="s" name="cookie" direction="in" />
<arg type="a(sss)" name="label_list_variant" direction="out" />
</method>
<method name="account_type_query_by_app_id">
<arg type="s" name="account_db_path" direction="in" />
<arg type="s" name="app_id" direction="in" />
- <arg type="s" name="cookie" direction="in" />
<arg type="a{sv}" name="account_type_variant" direction="out" />
</method>
<method name="account_type_query_app_id_exist">
<arg type="s" name="account_db_path" direction="in" />
<arg type="s" name="app_id" direction="in" />
- <arg type="s" name="cookie" direction="in" />
</method>
<method name="account_update_to_db_by_id_ex">
<arg type="s" name="account_db_path" direction="in" />
<arg type="a{sv}" name="account_variant" direction="in" />
<arg type="i" name="account_id" direction="in" />
- <arg type="s" name="cookie" direction="in" />
</method>
</interface>
</node>
#include <unistd.h>
#endif
#include <vconf.h>
-#include <security-server.h>
#include "account.h"
#include "account-error.h"
#define VCONF_OK 0
-#define _GET_COOKIE int ret_code = 0;\
-char *e_cookie = NULL;\
-char cookie[256] = {0,};\
-int size = 0;\
-\
-size = security_server_get_cookie_size();\
-ret_code = security_server_request_cookie(cookie, size);\
-if (ret_code < 0) {\
- _ERR("security_server_request_cookie() is failed.");\
- return ACCOUNT_ERROR_PERMISSION_DENIED;\
-}\
-\
-e_cookie = g_base64_encode((const guchar *)cookie, size);\
-if (e_cookie == NULL) {\
- _ERR("g_base64_encode() is failed.");\
- return ACCOUNT_ERROR_PERMISSION_DENIED;\
-}
-
static AccountManager *_acc_mgr = NULL;
static char *_account_get_text(const char *text_data);
ACCOUNT_RETURN_VAL((account != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("ACCOUNT HANDLE IS NULL"));
ACCOUNT_RETURN_VAL((account_db_id != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("ACCOUNT ID POINTER IS NULL"));
- _GET_COOKIE
-
account_s *account_data = (account_s*) account;
int error_code = ACCOUNT_ERROR_NONE;
GError *error = NULL;
GVariant* account_serialized = marshal_account(account_data);
_INFO("3. Before account_manager_call_account_add_sync");
- bool is_success = account_manager_call_account_add_sync(acc_mgr, account_db_path, account_serialized, e_cookie, &db_id, NULL, &error);
+ bool is_success = account_manager_call_account_add_sync(acc_mgr, account_db_path, account_serialized, &db_id, NULL, &error);
ACCOUNT_CATCH_ERROR((is_success != false), {}, _account_get_error_code(is_success, error), "Failed to get dbus.");
*account_db_id = db_id;
ACCOUNT_RETURN_VAL((account_db_id > 0), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("ACCOUNT ID IS LESS THAN ZERO."));
- _GET_COOKIE
-
GError *error = NULL;
AccountManager* acc_mgr = _account_manager_get_instance();
_INFO("2. Before account_manager_call_account_query_account_by_account_id_sync");
GVariant *account_serialized_old = NULL;
- bool is_success = account_manager_call_account_query_account_by_account_id_sync(acc_mgr, account_db_path, account_db_id, e_cookie, &account_serialized_old, NULL, &error);
+ bool is_success = account_manager_call_account_query_account_by_account_id_sync(acc_mgr, account_db_path, account_db_id, &account_serialized_old, NULL, &error);
+
if (!is_success)
{
_ERR("account_manager_call_account_query_account_by_account_id_sync failed [%d]", error->code);
}
_INFO("3. Before account_manager_call_account_delete_from_db_by_id_sync");
- is_success = account_manager_call_account_delete_from_db_by_id_sync(acc_mgr, account_db_path, account_db_id, e_cookie, NULL, &error);
+ is_success = account_manager_call_account_delete_from_db_by_id_sync(acc_mgr, account_db_path, account_db_id, NULL, &error);
+
if (!is_success)
{
_ERR("account_manager_call_account_delete_from_db_by_id_sync failed [%d]", error->code);
ACCOUNT_RETURN_VAL((user_name != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("user_name is null!"));
ACCOUNT_RETURN_VAL((package_name != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("package_name is null!"));
- _GET_COOKIE
GError *error = NULL;
}
GVariant* account_list_variant = NULL;
- bool is_success = account_manager_call_account_query_account_by_user_name_sync(acc_mgr, account_db_path, user_name, e_cookie, &account_list_variant, NULL, &error);
+ bool is_success = account_manager_call_account_query_account_by_user_name_sync(acc_mgr, account_db_path, user_name, &account_list_variant, NULL, &error);
int error_code = _account_get_error_code(is_success, error);
if (error_code != ACCOUNT_ERROR_NONE)
//TODO free account_list, account_list_variant
- is_success = account_manager_call_account_delete_from_db_by_user_name_sync(acc_mgr, account_db_path, user_name, package_name, e_cookie, NULL, &error);
+ is_success = account_manager_call_account_delete_from_db_by_user_name_sync(acc_mgr, account_db_path, user_name, package_name, NULL, &error);
if (!is_success)
{
ACCOUNT_RETURN_VAL((package_name != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("package_name is null!"));
- _GET_COOKIE
-
GError *error = NULL;
AccountManager* acc_mgr = _account_manager_get_instance();
//First get account list of user_name, used for gSSO DB deletion
GVariant* account_list_variant = NULL;
- bool is_success = account_manager_call_account_query_account_by_package_name_sync(acc_mgr, account_db_path, package_name, e_cookie, &account_list_variant, NULL, &error);
+ bool is_success = account_manager_call_account_query_account_by_package_name_sync(acc_mgr, account_db_path, package_name, &account_list_variant, NULL, &error);
int error_code = _account_get_error_code(is_success, error);
if (error_code != ACCOUNT_ERROR_NONE)
return ACCOUNT_ERROR_NO_DATA;
}
- is_success = account_manager_call_account_delete_from_db_by_package_name_sync(acc_mgr, account_db_path, package_name, permission, e_cookie, NULL, &error);
+ is_success = account_manager_call_account_delete_from_db_by_package_name_sync(acc_mgr, account_db_path, package_name, permission, NULL, &error);
if (!is_success)
{
ACCOUNT_RETURN_VAL((account != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("DATA IS NULL"));
ACCOUNT_RETURN_VAL((account_id > 0), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("Account id is not valid"));
- _GET_COOKIE
-
GError *error = NULL;
AccountManager* acc_mgr = _account_manager_get_instance();
_INFO("2. Before account_manager_call_account_query_account_by_account_id_sync");
GVariant *account_serialized_old = NULL;
- bool is_success = account_manager_call_account_query_account_by_account_id_sync(acc_mgr, account_db_path, account_id, e_cookie, &account_serialized_old, NULL, &error);
+ bool is_success = account_manager_call_account_query_account_by_account_id_sync(acc_mgr, account_db_path, account_id, &account_serialized_old, NULL, &error);
+
if (!is_success)
{
_ERR("account_manager_call_account_query_account_by_account_id_sync failed [%d]", error->code);
_INFO("3. Before account_manager_call_account_update_to_db_by_id_sync");
GVariant* account_serialized = marshal_account((account_s*) account);
- is_success = account_manager_call_account_update_to_db_by_id_sync(acc_mgr, account_db_path, account_serialized, account_id, e_cookie, NULL, &error);
+ is_success = account_manager_call_account_update_to_db_by_id_sync(acc_mgr, account_db_path, account_serialized, account_id, NULL, &error);
if (!is_success)
{
ACCOUNT_RETURN_VAL((account != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("DATA IS NULL"));
ACCOUNT_RETURN_VAL((account_id > 0), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("Account id is not valid"));
- _GET_COOKIE
-
GError *error = NULL;
AccountManager* acc_mgr = _account_manager_get_instance();
GVariant *account_serialized_old = NULL;
_INFO("before query() account_id[%d]", account_id);
- bool is_success = account_manager_call_account_query_account_by_account_id_sync(acc_mgr, account_db_path, account_id, e_cookie, &account_serialized_old, NULL, &error);
+ bool is_success = account_manager_call_account_query_account_by_account_id_sync(acc_mgr, account_db_path, account_id, &account_serialized_old, NULL, &error);
+
if (!is_success)
{
_ERR("account_manager_call_account_query_account_by_account_id_sync failed [%d]", error->code);
}
_INFO("before call update() : account_id[%d]", account_id);
- is_success = account_manager_call_account_update_to_db_by_id_ex_sync(acc_mgr, account_db_path, account_serialized, account_id, e_cookie, NULL, &error);
+ is_success = account_manager_call_account_update_to_db_by_id_ex_sync(acc_mgr, account_db_path, account_serialized, account_id, NULL, &error);
+
_INFO("after call update() : is_success=%d", is_success);
if (!is_success)
{
ACCOUNT_RETURN_VAL((user_name != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("USER NAME IS NULL"));
ACCOUNT_RETURN_VAL((package_name != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("PACKAGE NAME IS NULL"));
- _GET_COOKIE
-
GError *error = NULL;
AccountManager* acc_mgr = _account_manager_get_instance();
GVariant *account_serialized_old = NULL;
account_s *account_data = (account_s*) account;
- bool is_success = account_manager_call_account_query_account_by_account_id_sync(acc_mgr, account_db_path, account_data->id, e_cookie, &account_serialized_old, NULL, &error);
+ bool is_success = account_manager_call_account_query_account_by_account_id_sync(acc_mgr, account_db_path, account_data->id, &account_serialized_old, NULL, &error);
+
if (!is_success)
{
_ERR("account_manager_call_account_query_account_by_account_id_sync failed [%d]", error->code);
}
GVariant* account_serialized = marshal_account(account_data);
- is_success = account_manager_call_account_update_to_db_by_user_name_sync(acc_mgr, account_db_path, account_serialized, user_name, package_name, e_cookie, NULL, &error);
+ is_success = account_manager_call_account_update_to_db_by_user_name_sync(acc_mgr, account_db_path, account_serialized, user_name, package_name, NULL, &error);
+
if (!is_success)
{
_ERR("account_manager_call_account_update_to_db_by_user_name_sync failed [%d]", error->code);
ACCOUNT_RETURN_VAL((callback != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("ACCOUNT Callback IS NULL"));
- _GET_COOKIE
-
GError *error = NULL;
AccountManager* acc_mgr = _account_manager_get_instance();
}
GVariant* account_list_variant = NULL;
- bool is_success = account_manager_call_account_query_all_sync(acc_mgr, account_db_path, e_cookie, &account_list_variant, NULL, &error);
+ bool is_success = account_manager_call_account_query_all_sync(acc_mgr, account_db_path, &account_list_variant, NULL, &error);
int error_code = _account_get_error_code(is_success, error);
if (error_code != ACCOUNT_ERROR_NONE)
ACCOUNT_RETURN_VAL((account_db_id > 0), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("ACCOUNT INDEX IS LESS THAN 0"));
ACCOUNT_RETURN_VAL((*account != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("ACCOUNT IS NULL"));
- _GET_COOKIE
-
GError *error = NULL;
AccountManager* acc_mgr = _account_manager_get_instance();
}
GVariant* account_variant = NULL;
- bool is_success = account_manager_call_account_query_account_by_account_id_sync(acc_mgr, account_db_path, account_db_id, e_cookie, &account_variant, NULL, &error);
+ bool is_success = account_manager_call_account_query_account_by_account_id_sync(acc_mgr, account_db_path, account_db_id, &account_variant, NULL, &error);
int error_code = _account_get_error_code(is_success, error);
if (error_code != ACCOUNT_ERROR_NONE)
ACCOUNT_RETURN_VAL((user_name != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("USER NAME IS NULL"));
ACCOUNT_RETURN_VAL((callback != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("CALL BACK IS NULL"));
- _GET_COOKIE
-
GError *error = NULL;
AccountManager* acc_mgr = _account_manager_get_instance();
}
GVariant* account_list_variant = NULL;
- bool is_success = account_manager_call_account_query_account_by_user_name_sync(acc_mgr, account_db_path, user_name, e_cookie, &account_list_variant, NULL, &error);
+ bool is_success = account_manager_call_account_query_account_by_user_name_sync(acc_mgr, account_db_path, user_name, &account_list_variant, NULL, &error);
int error_code = _account_get_error_code(is_success, error);
if (error_code != ACCOUNT_ERROR_NONE)
ACCOUNT_RETURN_VAL((package_name != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("PACKAGE NAME IS NULL"));
ACCOUNT_RETURN_VAL((callback != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("CALL BACK IS NULL"));
- _GET_COOKIE
-
GError *error = NULL;
AccountManager* acc_mgr = _account_manager_get_instance();
}
GVariant* account_list_variant = NULL;
- bool is_success = account_manager_call_account_query_account_by_package_name_sync(acc_mgr, account_db_path, package_name, e_cookie, &account_list_variant, NULL, &error);
+ bool is_success = account_manager_call_account_query_account_by_package_name_sync(acc_mgr, account_db_path, package_name, &account_list_variant, NULL, &error);
+
int error_code = _account_get_error_code(is_success, error);
if (error_code != ACCOUNT_ERROR_NONE)
{
ACCOUNT_RETURN_VAL((callback != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("CALL BACK IS NULL"));
- _GET_COOKIE
-
GError *error = NULL;
AccountManager* acc_mgr = _account_manager_get_instance();
}
GVariant* account_list_variant = NULL;
- bool is_success = account_manager_call_account_query_account_by_capability_sync(acc_mgr, account_db_path, capability_type, capability_value, e_cookie, &account_list_variant, NULL, &error);
+ bool is_success = account_manager_call_account_query_account_by_capability_sync(acc_mgr, account_db_path, capability_type, capability_value, &account_list_variant, NULL, &error);
int error_code = _account_get_error_code(is_success, error);
if (error_code != ACCOUNT_ERROR_NONE)
ACCOUNT_RETURN_VAL((capability_type != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("capability_type IS NULL"));
ACCOUNT_RETURN_VAL((callback != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("CALL BACK IS NULL"));
- _GET_COOKIE
-
GError *error = NULL;
AccountManager* acc_mgr = _account_manager_get_instance();
}
GVariant* account_list_variant = NULL;
- bool is_success = account_manager_call_account_query_account_by_capability_type_sync(acc_mgr, account_db_path, capability_type, e_cookie, &account_list_variant, NULL, &error);
+ bool is_success = account_manager_call_account_query_account_by_capability_type_sync(acc_mgr, account_db_path, capability_type, &account_list_variant, NULL, &error);
int error_code = _account_get_error_code(is_success, error);
if (error_code != ACCOUNT_ERROR_NONE)
ACCOUNT_RETURN_VAL((account_id > 0), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("ACCOUNT INDEX IS LESS THAN 0"));
ACCOUNT_RETURN_VAL((callback != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("NO CALLBACK FUNCTION"));
- _GET_COOKIE
-
GError *error = NULL;
AccountManager* acc_mgr = _account_manager_get_instance();
if (acc_mgr == NULL)
}
GVariant* capability_list_variant = NULL;
- bool is_success = account_manager_call_account_query_capability_by_account_id_sync(acc_mgr, account_db_path, account_id, e_cookie, &capability_list_variant, NULL, &error);
+ bool is_success = account_manager_call_account_query_capability_by_account_id_sync(acc_mgr, account_db_path, account_id, &capability_list_variant, NULL, &error);
+
int error_code = _account_get_error_code(is_success, error);
if (error_code != ACCOUNT_ERROR_NONE)
{
return -1;
}
- _GET_COOKIE
-
AccountManager* acc_mgr = _account_manager_get_instance();
if (acc_mgr == NULL)
{
}
int temp_count = -1;
- bool is_success = account_manager_call_account_get_total_count_from_db_sync(acc_mgr, account_db_path, include_hidden, e_cookie, &temp_count, NULL, &error);
+ bool is_success = account_manager_call_account_get_total_count_from_db_sync(acc_mgr, account_db_path, include_hidden, &temp_count, NULL, &error);
int error_code = _account_get_error_code(is_success, error);
if (error_code != ACCOUNT_ERROR_NONE)
{
return ACCOUNT_ERROR_INVALID_PARAMETER;
}
- _GET_COOKIE
-
GError *error = NULL;
AccountManager* acc_mgr = _account_manager_get_instance();
return ACCOUNT_ERROR_PERMISSION_DENIED;
}
- bool is_success = account_manager_call_account_update_sync_status_by_id_sync(acc_mgr, account_db_path, account_db_id, sync_status, e_cookie, NULL, &error);
+ bool is_success = account_manager_call_account_update_sync_status_by_id_sync(acc_mgr, account_db_path, account_db_id, sync_status, NULL, &error);
+
return _account_get_error_code(is_success, error);
}
ACCOUNT_RETURN_VAL((app_id != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("APP ID IS NULL"));
ACCOUNT_RETURN_VAL((callback != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("NO CALLBACK FUNCTION"));
- _GET_COOKIE
-
GError *error = NULL;
gint error_code = ACCOUNT_ERROR_NONE;
}
GVariant* feature_list_variant = NULL;
- bool is_success = account_manager_call_account_type_query_provider_feature_by_app_id_sync(acc_mgr, account_db_path, app_id, e_cookie, &feature_list_variant, NULL, &error);
+ bool is_success = account_manager_call_account_type_query_provider_feature_by_app_id_sync(acc_mgr, account_db_path, app_id, &feature_list_variant, NULL, &error);
+
_INFO("account_manager_call_account_type_query_provider_feature_by_app_id_sync end=[%d]", is_success);
if (!is_success)
return false;
}
- _GET_COOKIE
-
int is_supported = 0;
GError *error = NULL;
gint ret = ACCOUNT_ERROR_NONE;
return false;
}
- bool is_success = account_manager_call_account_type_query_supported_feature_sync(acc_mgr, account_db_path, app_id, capability, e_cookie, &is_supported, NULL, &error);
+ bool is_success = account_manager_call_account_type_query_supported_feature_sync(acc_mgr, account_db_path, app_id, capability, &is_supported, NULL, &error);
+
_INFO("account_manager_call_account_type_query_supported_feature_sync end=[%d]", is_success);
if (!is_success)
ACCOUNT_RETURN_VAL((account_type != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("ACCOUNT TYPE HANDLE IS NULL"));
ACCOUNT_RETURN_VAL((account_type_id != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("ACCOUNT TYPE ID POINTER IS NULL"));
- _GET_COOKIE
-
GError *error = NULL;
AccountManager* acc_mgr = _account_manager_get_instance();
int db_id = -1;
GVariant* account_type_serialized = marshal_account_type((account_type_s*) account_type);
- bool is_success = account_manager_call_account_type_add_sync(acc_mgr, account_db_path, account_type_serialized, e_cookie, &db_id, NULL, &error);
+ bool is_success = account_manager_call_account_type_add_sync(acc_mgr, account_db_path, account_type_serialized, &db_id, NULL, &error);
+
int ret = _account_get_error_code(is_success, error);
if (ret != ACCOUNT_ERROR_NONE)
{
ACCOUNT_RETURN_VAL((account_type != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("DATA IS NULL"));
ACCOUNT_RETURN_VAL((app_id != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("APP ID IS NULL"));
- _GET_COOKIE
-
GError *error = NULL;
AccountManager* acc_mgr = _account_manager_get_instance();
return ACCOUNT_ERROR_INVALID_PARAMETER;
}
- bool is_success = account_manager_call_account_type_update_to_db_by_app_id_sync(acc_mgr, account_db_path, account_type_variant, app_id, e_cookie, NULL, &error);
+ bool is_success = account_manager_call_account_type_update_to_db_by_app_id_sync(acc_mgr, account_db_path, account_type_variant, app_id, NULL, &error);
+
return _account_get_error_code(is_success, error);
}
ACCOUNT_RETURN_VAL((app_id != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("APP ID IS NULL"));
- _GET_COOKIE
-
GError *error = NULL;
AccountManager* acc_mgr = _account_manager_get_instance();
return ACCOUNT_ERROR_PERMISSION_DENIED;
}
- bool is_success = account_manager_call_account_type_delete_by_app_id_sync(acc_mgr, account_db_path, app_id, e_cookie, NULL, &error);
+ bool is_success = account_manager_call_account_type_delete_by_app_id_sync(acc_mgr, account_db_path, app_id, NULL, &error);
+
return _account_get_error_code(is_success, error);
}
ACCOUNT_RETURN_VAL((callback != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("ACCOUNT Callback IS NULL"));
ACCOUNT_RETURN_VAL((app_id != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("APP ID IS NULL"));
- _GET_COOKIE
-
GError *error = NULL;
AccountManager* acc_mgr = _account_manager_get_instance();
}
GVariant* label_list_variant = NULL;
- bool is_success = account_manager_call_account_type_query_label_by_app_id_sync(acc_mgr, account_db_path, app_id, e_cookie, &label_list_variant, NULL, &error);
+ bool is_success = account_manager_call_account_type_query_label_by_app_id_sync(acc_mgr, account_db_path, app_id, &label_list_variant, NULL, &error);
+
int ret = _account_get_error_code(is_success, error);
if (ret != ACCOUNT_ERROR_NONE)
{
ACCOUNT_RETURN_VAL((account_type != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("ACCOUNT TYPE'S POINTER IS NULL"));
ACCOUNT_RETURN_VAL((*account_type != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("ACCOUNT TYPE IS NULL"));
- _GET_COOKIE
-
GError *error = NULL;
AccountManager* acc_mgr = _account_manager_get_instance();
GVariant* account_type_variant = NULL;
account_type_s *in_data = (account_type_s*) (*account_type);
- bool is_success = account_manager_call_account_type_query_by_app_id_sync(acc_mgr, account_db_path, app_id, e_cookie, &account_type_variant, NULL, &error);
+ bool is_success = account_manager_call_account_type_query_by_app_id_sync(acc_mgr, account_db_path, app_id, &account_type_variant, NULL, &error);
+
int ret = _account_get_error_code(is_success, error);
if (ret != ACCOUNT_ERROR_NONE)
{
ACCOUNT_RETURN_VAL((callback != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("ACCOUNT Callback IS NULL"));
- _GET_COOKIE
-
GError *error = NULL;
AccountManager* acc_mgr = _account_manager_get_instance();
GVariant* account_type_list_variant = NULL;
_INFO("before account_type_query_all_sync()");
- bool is_success = account_manager_call_account_type_query_all_sync(acc_mgr, account_db_path, e_cookie, &account_type_list_variant, NULL, &error);
+ bool is_success = account_manager_call_account_type_query_all_sync(acc_mgr, account_db_path, &account_type_list_variant, NULL, &error);
+
_INFO("after account_type_query_all_sync()");
int ret = _account_get_error_code(is_success, error);
if (ret != ACCOUNT_ERROR_NONE)
ACCOUNT_RETURN_VAL((locale != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("NO LOCALE"));
ACCOUNT_RETURN_VAL((label != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("label char is null"));
- _GET_COOKIE
-
GError *error = NULL;
AccountManager* acc_mgr = _account_manager_get_instance();
char* label_temp = NULL;
_INFO("before account_type_query_label_by_locale_sync()");
- bool is_success = account_manager_call_account_type_query_label_by_locale_sync(acc_mgr, account_db_path, app_id, locale, e_cookie, &label_temp, NULL, &error);
+ bool is_success = account_manager_call_account_type_query_label_by_locale_sync(acc_mgr, account_db_path, app_id, locale, &label_temp, NULL, &error);
+
_INFO("after account_type_query_label_by_locale_sync() : is_success=%d", is_success);
int ret = _account_get_error_code(is_success, error);
if (ret != ACCOUNT_ERROR_NONE)
ACCOUNT_RETURN_VAL((key != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("capability_type IS NULL"));
ACCOUNT_RETURN_VAL((callback != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("CALL BACK IS NULL"));
- _GET_COOKIE
-
GError *error = NULL;
AccountManager* acc_mgr = _account_manager_get_instance();
}
GVariant* account_type_list_variant = NULL;
- bool is_success = account_manager_call_account_type_query_by_provider_feature_sync(acc_mgr, account_db_path, key, e_cookie, &account_type_list_variant, NULL, &error);
+ bool is_success = account_manager_call_account_type_query_by_provider_feature_sync(acc_mgr, account_db_path, key, &account_type_list_variant, NULL, &error);
+
int ret = _account_get_error_code(is_success, error);
if (ret != ACCOUNT_ERROR_NONE)
{
ACCOUNT_RETURN_VAL((app_id != 0), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("APP ID IS NULL"));
- _GET_COOKIE
-
GError *error = NULL;
AccountManager* acc_mgr = _account_manager_get_instance();
return ACCOUNT_ERROR_PERMISSION_DENIED;
}
- bool is_success = account_manager_call_account_type_query_app_id_exist_sync(acc_mgr, account_db_path, app_id, e_cookie, NULL, &error);
+ bool is_success = account_manager_call_account_type_query_app_id_exist_sync(acc_mgr, account_db_path, app_id, NULL, &error);
return _account_get_error_code(is_success, error);
}