return err;
}
-/* LCOV_EXCL_START */
-bool privilege_info_cb(const char *privilege_name, void *user_data)
-{
- bool *found = user_data;
-
- if (privilege_name && strcmp(NOTIFICATION_PRIVILEGE, privilege_name) == 0) {
- *found = true;
- return false;
- }
-
- return true;
-}
-/* LCOV_EXCL_STOP */
-
EXPORT_API int notification_setting_insert_package_for_uid(const char *package_id, uid_t uid)
{
int err = NOTIFICATION_ERROR_NONE;
return _notification_setting_alter_package_list(OPERATION_TYPE_DELETE_RECORD, package_id, uid);
}
-/* system setting --------------------------------*/
-
EXPORT_API int notification_system_setting_load_system_setting_for_uid(notification_system_setting_h *system_setting, uid_t uid)
{
int ret = NOTIFICATION_ERROR_NONE;
_get_table_field_data_int(query_result, &(result_system_setting->dnd_start_min), col_index++);
_get_table_field_data_int(query_result, &(result_system_setting->dnd_end_hour), col_index++);
_get_table_field_data_int(query_result, &(result_system_setting->dnd_end_min), col_index++);
- _get_table_field_data_int(query_result, &(result_system_setting->lock_screen_content_level), col_index++);
+ _get_table_field_data_int(query_result, (int *)&(result_system_setting->lock_screen_content_level), col_index++);
/* LCOV_EXCL_STOP */
}