Change-Id: I22c363e668d027305d14ad8d142b63c2a4e3a841
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
#SET(LIBDIR "\${prefix}/lib")
#SET(INCLUDEDIR "\${prefix}/include ")
SET(VERSION_MAJOR 0)
#SET(LIBDIR "\${prefix}/lib")
#SET(INCLUDEDIR "\${prefix}/include ")
SET(VERSION_MAJOR 0)
-SET(VERSION "${VERSION_MAJOR}.4.1")
+SET(VERSION "${VERSION_MAJOR}.4.2")
Name: libaccount-service
Summary: Account DB library
Name: libaccount-service
Summary: Account DB library
Release: 1
Group: Social & Content/API
License: Apache-2.0
Release: 1
Group: Social & Content/API
License: Apache-2.0
_INFO("3. Before account_manager_call_account_add_sync");
bool is_success = account_manager_call_account_add_sync(acc_mgr, account_serialized, (int)getuid(), &db_id, NULL, &error);
_INFO("3. Before account_manager_call_account_add_sync");
bool is_success = account_manager_call_account_add_sync(acc_mgr, account_serialized, (int)getuid(), &db_id, NULL, &error);
+ g_variant_unref(account_serialized);
+
ACCOUNT_CATCH_ERROR((is_success != false), {}, _account_get_error_code(is_success, error), "Failed to get dbus.");
g_clear_error(&error);
ACCOUNT_CATCH_ERROR((is_success != false), {}, _account_get_error_code(is_success, error), "Failed to get dbus.");
g_clear_error(&error);
_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_serialized, account_id, (int)getuid(), NULL, &error);
_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_serialized, account_id, (int)getuid(), NULL, &error);
+ g_variant_unref(account_serialized);
if (!is_success) {
error_code = _account_get_error_code(is_success, error);
if (!is_success) {
error_code = _account_get_error_code(is_success, error);
_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_serialized, account_id, (int)getuid(), NULL, &error);
_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_serialized, account_id, (int)getuid(), NULL, &error);
+ g_variant_unref(account_serialized);
_INFO("after call update() : is_success=%d", is_success);
if (!is_success) {
_INFO("after call update() : is_success=%d", is_success);
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_serialized, user_name, package_name, (int)getuid(), NULL, &error);
GVariant *account_serialized = marshal_account(account_data);
is_success = account_manager_call_account_update_to_db_by_user_name_sync(acc_mgr, account_serialized, user_name, package_name, (int)getuid(), NULL, &error);
+ g_variant_unref(account_serialized);
if (!is_success) {
error_code = _account_get_error_code(is_success, error);
if (!is_success) {
error_code = _account_get_error_code(is_success, error);
_INFO("before unmarshal_account");
account_s *account_data = umarshal_account(account_variant);
_INFO("before unmarshal_account");
account_s *account_data = umarshal_account(account_variant);
+ g_variant_unref(account_variant);
_INFO("after unmarshal_account");
if (account_data == NULL) {
_INFO("after unmarshal_account");
if (account_data == NULL) {
return error_code;
GSList *capability_list = unmarshal_capability_list(capability_list_variant);
return error_code;
GSList *capability_list = unmarshal_capability_list(capability_list_variant);
+ g_variant_unref(capability_list_variant);
if (capability_list == NULL)
return ACCOUNT_ERROR_NO_DATA;
if (capability_list == NULL)
return ACCOUNT_ERROR_NO_DATA;
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_type_serialized, (int)getuid(), &db_id, NULL, &error);
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_type_serialized, (int)getuid(), &db_id, NULL, &error);
+ g_variant_unref(account_type_serialized);
int ret = _account_get_error_code(is_success, error);
g_clear_error(&error);
int ret = _account_get_error_code(is_success, error);
g_clear_error(&error);
}
bool is_success = account_manager_call_account_type_update_to_db_by_app_id_sync(acc_mgr, account_type_variant, app_id, (int)getuid(), NULL, &error);
}
bool is_success = account_manager_call_account_type_update_to_db_by_app_id_sync(acc_mgr, account_type_variant, app_id, (int)getuid(), NULL, &error);
+ g_variant_unref(account_type_variant);
error_code = _account_get_error_code(is_success, error);
g_clear_error(&error);
error_code = _account_get_error_code(is_success, error);
g_clear_error(&error);