consumer_handle->data_foreach_by_keyword_cb(sticker_data, consumer_handle->data_foreach_by_keyword_cb_user_data);
else
LOGW("No registered callback function");
- } else if (g_strcmp0(signal_name, "send_sticker_info_by_goup") == 0) {
+ } else if (g_strcmp0(signal_name, "send_sticker_info_by_group") == 0) {
if (consumer_handle->data_foreach_by_group_cb != NULL)
consumer_handle->data_foreach_by_group_cb(sticker_data, consumer_handle->data_foreach_by_group_cb_user_data);
else
body = g_variant_new("(ii)", sticker_data->sticker_info_id, sticker_data->type);
ret = _send_sync_message(gdbus_connection, body, &reply, "update_sticker_type");
if (ret != STICKER_CLIENT_ERROR_NONE)
- LOGE("falied to update sticker type");
+ LOGE("failed to update sticker type");
}
if (sticker_data->uri && strcmp(sticker_data->uri, origin_data->uri) != 0) {
body = g_variant_new("(isis)", sticker_data->sticker_info_id, sticker_data->app_id, sticker_data->type, sticker_data->uri);
ret = _send_sync_message(gdbus_connection, body, &reply, "update_sticker_uri");
if (ret != STICKER_CLIENT_ERROR_NONE)
- LOGE("falied to update sticker uri");
+ LOGE("failed to update sticker uri");
}
if (sticker_data->thumbnail && strcmp(sticker_data->thumbnail, origin_data->thumbnail) != 0) {
body = g_variant_new("(is)", sticker_data->sticker_info_id, sticker_data->thumbnail);
ret = _send_sync_message(gdbus_connection, body, &reply, "update_sticker_thumbnail");
if (ret != STICKER_CLIENT_ERROR_NONE)
- LOGE("falied to update sticker thumbnail");
+ LOGE("failed to update sticker thumbnail");
}
if (sticker_data->description && strcmp(sticker_data->description, origin_data->description) != 0) {
body = g_variant_new("(is)", sticker_data->sticker_info_id, sticker_data->description);
ret = _send_sync_message(gdbus_connection, body, &reply, "update_sticker_description");
if (ret != STICKER_CLIENT_ERROR_NONE)
- LOGE("falied to update sticker description");
+ LOGE("failed to update sticker description");
}
if (sticker_data->group && strcmp(sticker_data->group, origin_data->group) != 0) {
body = g_variant_new("(is)", sticker_data->sticker_info_id, sticker_data->group);
ret = _send_sync_message(gdbus_connection, body, &reply, "update_sticker_group");
if (ret != STICKER_CLIENT_ERROR_NONE)
- LOGE("falied to update sticker group");
+ LOGE("failed to update sticker group");
}
if (sticker_data->keyword) {
body = g_variant_new("(ia(s))", sticker_data->sticker_info_id, keyword_builder);
ret = _send_sync_message(gdbus_connection, body, &reply, "update_sticker_keyword");
if (ret != STICKER_CLIENT_ERROR_NONE)
- LOGE("falied to update sticker keyword");
+ LOGE("failed to update sticker keyword");
}
_free_sticker_data(origin_data);
g_variant_get(reply_body, "(a(s))", &iter);
if (!iter) {
- LOGD("falied to get iter");
+ LOGD("failed to get iter");
return STICKER_CLIENT_ERROR_OPERATION_FAILED;
}
g_variant_get(reply_body, "(a(s))", &iter);
if (!iter) {
- LOGD("falied to get iter");
+ LOGD("failed to get iter");
return STICKER_CLIENT_ERROR_OPERATION_FAILED;
}
if (access(json_path, F_OK) != 0) {
ret = package_info_create(app_id, &package_info);
if (ret != PACKAGE_MANAGER_ERROR_NONE || package_info == NULL) {
- LOGE("faild to create package_info. ret: %d", ret);
+ LOGE("failed to create package_info. ret: %d", ret);
ret = STICKER_ERROR_OPERATION_FAILED;
goto cleanup;
}
ret = package_info_get_root_path(package_info, &app_path);
if (ret != PACKAGE_MANAGER_ERROR_NONE || app_path == NULL) {
- LOGE("faild to create package_info. ret: %d", ret);
+ LOGE("failed to create package_info. ret: %d", ret);
ret = STICKER_ERROR_OPERATION_FAILED;
goto cleanup;
}
ret = package_info_create(app_id, &package_info);
if (ret != PACKAGE_MANAGER_ERROR_NONE || package_info == NULL) {
- LOGE("faild to create package_info. ret: %d", ret);
+ LOGE("failed to create package_info. ret: %d", ret);
ret = -1;
goto cleanup;
}
ret = package_info_get_root_path(package_info, &app_path);
if (ret != PACKAGE_MANAGER_ERROR_NONE || app_path == NULL) {
- LOGE("faild to create package_info. ret: %d", ret);
+ LOGE("failed to create package_info. ret: %d", ret);
ret = -1;
goto cleanup;
}
cmd = "send_sticker_info_by_type";
break;
case STICKER_DB_STICKER_GROUP:
- cmd = "send_sticker_info_by_goup";
+ cmd = "send_sticker_info_by_group";
break;
case STICKER_DB_STICKER_KEYWORD:
cmd = "send_sticker_info_by_keyword";