Download

Support

lib/ewl_config.h

Go to the documentation of this file.
00001 /* vim: set sw=8 ts=8 sts=8 expandtab: */
00002 #ifndef EWL_CONFIG_H
00003 #define EWL_CONFIG_H
00004 
00014 typedef struct Ewl_Config Ewl_Config;
00015 
00019 struct Ewl_Config
00020 {
00021         char *app_name;        
00023         struct
00024         {
00025                 Ecore_Hash *user;        
00026                 Ecore_Hash *system;        
00027                 Ecore_Hash *instance;        
00028         } data;                                
00029 };
00030 
00031 int                 ewl_config_init(void);
00032 void                 ewl_config_shutdown(void);
00033 void                  ewl_config_cache_init(void);
00034 
00035 Ewl_Config         *ewl_config_new(const char *app_name);
00036 void                 ewl_config_destroy(Ewl_Config *cfg);
00037 
00038 void                 ewl_config_string_set(Ewl_Config *cfg, const char *k,
00039                                                 const char *v,
00040                                                 Ewl_State_Type state);
00041 const char        *ewl_config_string_get(Ewl_Config *cfg, const char *k);
00042 
00043 void                 ewl_config_int_set(Ewl_Config *cfg, const char *k, int v,
00044                                                 Ewl_State_Type state);
00045 int                 ewl_config_int_get(Ewl_Config *cfg, const char *k);
00046 
00047 void                 ewl_config_float_set(Ewl_Config *cfg, const char *k,
00048                                                 float v,
00049                                                 Ewl_State_Type state);
00050 float                 ewl_config_float_get(Ewl_Config *cfg, const char *k);
00051 
00052 void                 ewl_config_color_set(Ewl_Config *cfg, const char *k,
00053                                                 int r, int g, int b, int a,
00054                                                 Ewl_State_Type state);
00055 void                 ewl_config_color_get(Ewl_Config *cfg, const char *k,
00056                                                 int *r, int *g,
00057                                                 int *b, int *a);
00058 
00059 void                 ewl_config_key_remove(Ewl_Config *cfg, const char *k);
00060 void                  ewl_config_instance_key_remove(Ewl_Config *cfg, const char *k);
00061 void                 ewl_config_system_key_remove(Ewl_Config *cfg, const char *k);
00062 void                  ewl_config_user_key_remove(Ewl_Config *cfg, const char *k);
00063 
00064 int                 ewl_config_can_save_system(Ewl_Config *cfg);
00065 int                 ewl_config_system_save(Ewl_Config *cfg);
00066 int                 ewl_config_user_save(Ewl_Config *cfg);
00067 
00072 #endif

Copyright © Enlightenment.org

Enlightened Widget Library Documentation Generated: Sat May 17 16:49:03 2008