1 /** 2 * Copyright (C) 2012-2013, 2016-2017 ARM Limited. All rights reserved. 3 * 4 * This program is free software and is provided to you under the terms of the GNU General Public License version 2 5 * as published by the Free Software Foundation, and any use by you of this program is subject to the terms of such GNU licence. 6 * 7 * A copy of the licence is included with the program, and can also be obtained from Free Software 8 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 9 */ 10 11 #ifndef __MALI_USER_SETTINGS_DB_H__ 12 #define __MALI_USER_SETTINGS_DB_H__ 13 14 #ifdef __cplusplus 15 extern "C" { 16 #endif 17 18 #include "mali_uk_types.h" 19 20 /** @brief Set Mali user setting in DB 21 * 22 * Update the DB with a new value for \a setting. If the value is different from theprevious set value running sessions will be notified of the change. 23 * 24 * @param setting the setting to be changed 25 * @param value the new value to set 26 */ 27 void mali_set_user_setting(_mali_uk_user_setting_t setting, u32 value); 28 29 /** @brief Get current Mali user setting value from DB 30 * 31 * @param setting the setting to extract 32 * @return the value of the selected setting 33 */ 34 u32 mali_get_user_setting(_mali_uk_user_setting_t setting); 35 36 #ifdef __cplusplus 37 } 38 #endif 39 #endif /* __MALI_KERNEL_USER_SETTING__ */ 40