girara
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
settings.h
Go to the documentation of this file.
1 /* See LICENSE file for license and copyright information */
2 
3 #ifndef GIRARA_SETTINGS_H
4 #define GIRARA_SETTINGS_H
5 
6 #include "types.h"
7 
22 bool girara_setting_add(girara_session_t* session, const char* name,
23  void* value, girara_setting_type_t type, bool init_only,
24  const char* description, girara_setting_callback_t callback, void* data);
25 
35 bool girara_setting_set(girara_session_t* session, const char* name, void* value);
36 
45 bool girara_setting_get(girara_session_t* session, const char* name, void* dest);
46 
54 girara_setting_t* girara_setting_find(girara_session_t* session, const char* name);
55 
62 const char* girara_setting_get_name(girara_setting_t* setting);
63 
72 bool girara_setting_get_value(girara_setting_t* setting, void* dest);
73 
80 girara_setting_type_t girara_setting_get_type(girara_setting_t* setting);
81 
90 void girara_setting_set_value(girara_session_t* session,
91  girara_setting_t* setting, void* value);
92 
93 #endif