ACCOUNT_API int account_insert_to_db(account_h account, int *account_db_id)
{
_INFO("1. account_insert_to_db start");
- char* account_db_path = ACCOUNT_DB_PATH;
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"));
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, &db_id, NULL, &error);
+ bool is_success = account_manager_call_account_add_sync(acc_mgr, 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_API int account_delete_from_db_by_id(int account_db_id)
{
_INFO("1. account_delete_from_db_by_id starting [%d]", account_db_id);
- char* account_db_path = ACCOUNT_DB_PATH;
int error_code = ACCOUNT_ERROR_NONE;
ACCOUNT_RETURN_VAL((account_db_id > 0), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("ACCOUNT ID IS LESS THAN ZERO."));
_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, &account_serialized_old, NULL, &error);
+ bool is_success = account_manager_call_account_query_account_by_account_id_sync(acc_mgr, account_db_id, &account_serialized_old, NULL, &error);
if (!is_success)
{
}
_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, NULL, &error);
+ is_success = account_manager_call_account_delete_from_db_by_id_sync(acc_mgr, account_db_id, NULL, &error);
if (!is_success)
{
ACCOUNT_API int account_delete_from_db_by_user_name(char *user_name, char *package_name)
{
int error_code = ACCOUNT_ERROR_NONE;
- char* account_db_path = ACCOUNT_DB_PATH;
_INFO("account_delete_from_db_by_user_name start");
ACCOUNT_RETURN_VAL((user_name != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("user_name is 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, &account_list_variant, NULL, &error);
+ bool is_success = account_manager_call_account_query_account_by_user_name_sync(acc_mgr, user_name, &account_list_variant, NULL, &error);
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, NULL, &error);
+ is_success = account_manager_call_account_delete_from_db_by_user_name_sync(acc_mgr, user_name, package_name, NULL, &error);
if (!is_success)
{
int _account_delete_from_db_by_package_name(const char *package_name, bool permission)
{
_INFO("_account_delete_from_db_by_package_name starting permission opions = %d", permission);
- char* account_db_path = ACCOUNT_DB_PATH;
int error_code = ACCOUNT_ERROR_NONE;
ACCOUNT_RETURN_VAL((package_name != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("package_name is null!"));
return ACCOUNT_ERROR_NO_DATA;
}
*/
- bool is_success = account_manager_call_account_delete_from_db_by_package_name_sync(acc_mgr, account_db_path, package_name, permission, NULL, &error);
+ bool is_success = account_manager_call_account_delete_from_db_by_package_name_sync(acc_mgr, package_name, permission, NULL, &error);
if (!is_success)
{
{
//First we will update account db
_INFO("1. account_update_to_db_by_id start");
- char* account_db_path = ACCOUNT_DB_PATH;
int error_code = ACCOUNT_ERROR_NONE;
ACCOUNT_RETURN_VAL((account != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("DATA IS NULL"));
_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, &account_serialized_old, NULL, &error);
+ bool is_success = account_manager_call_account_query_account_by_account_id_sync(acc_mgr, account_id, &account_serialized_old, NULL, &error);
if (!is_success)
{
_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, NULL, &error);
+ is_success = account_manager_call_account_update_to_db_by_id_sync(acc_mgr, account_serialized, account_id, NULL, &error);
if (!is_success)
{
//Then we will update gSSO DB, if it fails then we will rollback account db updates
_INFO("account_update_to_db_by_id_without_permission start");
- char* account_db_path = ACCOUNT_DB_PATH;
int error_code = ACCOUNT_ERROR_NONE;
ACCOUNT_RETURN_VAL((account != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("DATA IS NULL"));
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, &account_serialized_old, NULL, &error);
+ bool is_success = account_manager_call_account_query_account_by_account_id_sync(acc_mgr, account_id, &account_serialized_old, NULL, &error);
if (!is_success)
{
}
_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, NULL, &error);
+ is_success = account_manager_call_account_update_to_db_by_id_ex_sync(acc_mgr, account_serialized, account_id, NULL, &error);
_INFO("after call update() : is_success=%d", is_success);
if (!is_success)
{
//First we will update account db
_INFO("account_update_to_db_by_user_name starting");
- char* account_db_path = ACCOUNT_DB_PATH;
int error_code = ACCOUNT_ERROR_NONE;
ACCOUNT_RETURN_VAL((account != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("DATA IS NULL"));
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, &account_serialized_old, NULL, &error);
+ bool is_success = account_manager_call_account_query_account_by_account_id_sync(acc_mgr, account_data->id, &account_serialized_old, NULL, &error);
if (!is_success)
{
}
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, NULL, &error);
+ is_success = account_manager_call_account_update_to_db_by_user_name_sync(acc_mgr, account_serialized, user_name, package_name, NULL, &error);
if (!is_success)
{
ACCOUNT_API int account_foreach_account_from_db(account_cb callback, void *user_data)
{
_INFO("account_foreach_account_from_db start");
- char* account_db_path = ACCOUNT_DB_PATH;
ACCOUNT_RETURN_VAL((callback != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("ACCOUNT Callback IS NULL"));
}
GVariant* account_list_variant = NULL;
- bool is_success = account_manager_call_account_query_all_sync(acc_mgr, account_db_path, &account_list_variant, NULL, &error);
+ bool is_success = account_manager_call_account_query_all_sync(acc_mgr, &account_list_variant, NULL, &error);
int error_code = _account_get_error_code(is_success, error);
if (error_code != ACCOUNT_ERROR_NONE)
ACCOUNT_API int account_query_account_by_account_id(int account_db_id, account_h *account)
{
_INFO("account_query_account_by_account_id start [%d]", account_db_id);
- char* account_db_path = ACCOUNT_DB_PATH;
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 POINTER IS NULL"));
}
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, &account_variant, NULL, &error);
+ bool is_success = account_manager_call_account_query_account_by_account_id_sync(acc_mgr, account_db_id, &account_variant, NULL, &error);
int error_code = _account_get_error_code(is_success, error);
if (error_code != ACCOUNT_ERROR_NONE)
ACCOUNT_API int account_query_account_by_user_name(account_cb callback, const char* user_name, void* user_data)
{
_INFO("account_query_account_by_user_name starting");
- char* account_db_path = ACCOUNT_DB_PATH;
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"));
}
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, &account_list_variant, NULL, &error);
+ bool is_success = account_manager_call_account_query_account_by_user_name_sync(acc_mgr, user_name, &account_list_variant, NULL, &error);
int error_code = _account_get_error_code(is_success, error);
if (error_code != ACCOUNT_ERROR_NONE)
ACCOUNT_API int account_query_account_by_package_name(account_cb callback, const char *package_name, void *user_data)
{
_INFO("account_query_account_by_package_name starting");
- char* account_db_path = ACCOUNT_DB_PATH;
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"));
}
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, &account_list_variant, NULL, &error);
+ bool is_success = account_manager_call_account_query_account_by_package_name_sync(acc_mgr, package_name, &account_list_variant, NULL, &error);
int error_code = _account_get_error_code(is_success, error);
if (error_code != ACCOUNT_ERROR_NONE)
ACCOUNT_API int account_query_account_by_capability(account_cb callback, const char* capability_type, account_capability_state_e capability_value, void *user_data)
{
_INFO("account_query_account_by_capability starting");
- char* account_db_path = ACCOUNT_DB_PATH;
ACCOUNT_RETURN_VAL((capability_type != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("capability_type IS NULL"));
}
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, &account_list_variant, NULL, &error);
+ bool is_success = account_manager_call_account_query_account_by_capability_sync(acc_mgr, 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_API int account_query_account_by_capability_type(account_cb callback, const char* capability_type, void* user_data)
{
_INFO("account_query_account_by_capability_type starting");
- char* account_db_path = ACCOUNT_DB_PATH;
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"));
}
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, &account_list_variant, NULL, &error);
+ bool is_success = account_manager_call_account_query_account_by_capability_type_sync(acc_mgr, capability_type, &account_list_variant, NULL, &error);
int error_code = _account_get_error_code(is_success, error);
if (error_code != ACCOUNT_ERROR_NONE)
ACCOUNT_API int account_query_capability_by_account_id(capability_cb callback, int account_id, void *user_data)
{
_INFO("account_query_capability_by_account_id starting");
- char* account_db_path = ACCOUNT_DB_PATH;
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"));
}
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, &capability_list_variant, NULL, &error);
+ bool is_success = account_manager_call_account_query_capability_by_account_id_sync(acc_mgr, account_id, &capability_list_variant, NULL, &error);
int error_code = _account_get_error_code(is_success, error);
if (error_code != ACCOUNT_ERROR_NONE)
static int _account_get_total_count(int *count, bool include_hidden)
{
_INFO("account_get_total_count_from_db starting");
- char* account_db_path = ACCOUNT_DB_PATH;
if (!count)
{
}
int temp_count = -1;
- bool is_success = account_manager_call_account_get_total_count_from_db_sync(acc_mgr, account_db_path, include_hidden, &temp_count, NULL, &error);
+ bool is_success = account_manager_call_account_get_total_count_from_db_sync(acc_mgr, include_hidden, &temp_count, NULL, &error);
int error_code = _account_get_error_code(is_success, error);
if (error_code != ACCOUNT_ERROR_NONE)
{
ACCOUNT_API int account_update_sync_status_by_id(int account_db_id, const account_sync_state_e sync_status)
{
_INFO("account_update_sync_status_by_id starting");
- char* account_db_path = ACCOUNT_DB_PATH;
ACCOUNT_RETURN_VAL((account_db_id > 0), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("ACCOUNT INDEX IS LESS THAN 0"));
if ( ((int)sync_status < 0) || (sync_status > ACCOUNT_SYNC_STATUS_RUNNING)) {
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, NULL, &error);
+ bool is_success = account_manager_call_account_update_sync_status_by_id_sync(acc_mgr, account_db_id, sync_status, NULL, &error);
return _account_get_error_code(is_success, error);
}
ACCOUNT_API int account_type_query_provider_feature_by_app_id(provider_feature_cb callback, const char* app_id, void *user_data )
{
_INFO("account_type_query_provider_feature_by_app_id start");
- char* account_db_path = ACCOUNT_DB_PATH;
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"));
}
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, &feature_list_variant, NULL, &error);
+ bool is_success = account_manager_call_account_type_query_provider_feature_by_app_id_sync(acc_mgr, app_id, &feature_list_variant, NULL, &error);
_INFO("account_manager_call_account_type_query_provider_feature_by_app_id_sync end=[%d]", is_success);
ACCOUNT_API bool account_type_query_supported_feature(const char* app_id, const char* capability)
{
_INFO("account_type_query_supported_feature start");
- char* account_db_path = ACCOUNT_DB_PATH;
if (app_id == NULL || capability == NULL)
{
return false;
}
- bool is_success = account_manager_call_account_type_query_supported_feature_sync(acc_mgr, account_db_path, app_id, capability, &is_supported, NULL, &error);
+ bool is_success = account_manager_call_account_type_query_supported_feature_sync(acc_mgr, app_id, capability, &is_supported, NULL, &error);
_INFO("account_manager_call_account_type_query_supported_feature_sync end=[%d]", is_success);
ACCOUNT_INTERNAL_API int account_type_insert_to_db(account_type_h account_type, int* account_type_id)
{
_INFO("account_type_insert_to_db starting");
- char* account_db_path = ACCOUNT_DB_PATH;
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"));
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, &db_id, NULL, &error);
+ bool is_success = account_manager_call_account_type_add_sync(acc_mgr, account_type_serialized, &db_id, NULL, &error);
int ret = _account_get_error_code(is_success, error);
if (ret != ACCOUNT_ERROR_NONE)
ACCOUNT_INTERNAL_API int account_type_update_to_db_by_app_id(const account_type_h account_type, const char* app_id)
{
_INFO("account_type_update_to_db_by_app_id starting");
- char* account_db_path = ACCOUNT_DB_PATH;
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"));
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, NULL, &error);
+ bool is_success = account_manager_call_account_type_update_to_db_by_app_id_sync(acc_mgr, account_type_variant, app_id, NULL, &error);
return _account_get_error_code(is_success, error);
}
ACCOUNT_INTERNAL_API int account_type_delete_by_app_id(const char* app_id)
{
_INFO("account_type_delete_by_app_id starting");
- char* account_db_path = ACCOUNT_DB_PATH;
ACCOUNT_RETURN_VAL((app_id != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("APP ID IS NULL"));
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, NULL, &error);
+ bool is_success = account_manager_call_account_type_delete_by_app_id_sync(acc_mgr, app_id, NULL, &error);
return _account_get_error_code(is_success, error);
}
ACCOUNT_API int account_type_query_label_by_app_id(account_label_cb callback, const char* app_id, void *user_data )
{
_INFO("account_type_query_label_by_app_id starting");
- char* account_db_path = ACCOUNT_DB_PATH;
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"));
}
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, &label_list_variant, NULL, &error);
+ bool is_success = account_manager_call_account_type_query_label_by_app_id_sync(acc_mgr, app_id, &label_list_variant, NULL, &error);
int ret = _account_get_error_code(is_success, error);
if (ret != ACCOUNT_ERROR_NONE)
ACCOUNT_API int account_type_query_by_app_id(const char* app_id, account_type_h *account_type)
{
_INFO("account_type_query_by_app_id starting");
- char* account_db_path = ACCOUNT_DB_PATH;
ACCOUNT_RETURN_VAL((app_id != 0), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("APP ID IS NULL"));
ACCOUNT_RETURN_VAL((account_type != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("ACCOUNT TYPE'S POINTER IS NULL"));
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, &account_type_variant, NULL, &error);
+ bool is_success = account_manager_call_account_type_query_by_app_id_sync(acc_mgr, app_id, &account_type_variant, NULL, &error);
int ret = _account_get_error_code(is_success, error);
if (ret != ACCOUNT_ERROR_NONE)
ACCOUNT_API int account_type_foreach_account_type_from_db(account_type_cb callback, void *user_data)
{
_INFO("account_type_foreach_account_type_from_db starting");
- char* account_db_path = ACCOUNT_DB_PATH;
ACCOUNT_RETURN_VAL((callback != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("ACCOUNT Callback IS NULL"));
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, &account_type_list_variant, NULL, &error);
+ bool is_success = account_manager_call_account_type_query_all_sync(acc_mgr, &account_type_list_variant, NULL, &error);
_INFO("after account_type_query_all_sync()");
int ret = _account_get_error_code(is_success, error);
ACCOUNT_API int account_type_query_label_by_locale(const char* app_id, const char* locale, char** label)
{
_INFO("account_type_query_label_by_locale starting");
- char* account_db_path = ACCOUNT_DB_PATH;
ACCOUNT_RETURN_VAL((app_id != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("NO APP ID"));
ACCOUNT_RETURN_VAL((locale != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("NO LOCALE"));
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, &label_temp, NULL, &error);
+ bool is_success = account_manager_call_account_type_query_label_by_locale_sync(acc_mgr, 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);
ACCOUNT_API int account_type_query_by_provider_feature(account_type_cb callback, const char* key, void* user_data)
{
_INFO("account_type_query_by_provider_feature starting");
- char* account_db_path = ACCOUNT_DB_PATH;
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"));
}
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, &account_type_list_variant, NULL, &error);
+ bool is_success = account_manager_call_account_type_query_by_provider_feature_sync(acc_mgr, key, &account_type_list_variant, NULL, &error);
int ret = _account_get_error_code(is_success, error);
if (ret != ACCOUNT_ERROR_NONE)
ACCOUNT_API int account_type_query_app_id_exist(const char* app_id)
{
_INFO("account_type_query_app_id_exist starting");
- char* account_db_path = ACCOUNT_DB_PATH;
ACCOUNT_RETURN_VAL((app_id != 0), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("APP ID IS NULL"));
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, NULL, &error);
+ bool is_success = account_manager_call_account_type_query_app_id_exist_sync(acc_mgr, app_id, NULL, &error);
return _account_get_error_code(is_success, error);
}