Download

Support

lib/ewl_config.c File Reference

#include "ewl_base.h"
#include "ewl_macros.h"
#include "ewl_private.h"
#include "ewl_debug.h"
#include <unistd.h>
#include <libgen.h>
#include <Evas.h>

Include dependency graph for ewl_config.c:


Defines

#define EWL_CONFIG_KEY_NOMATCH   ((char *)0xdeadbeef)
#define O_BINARY   0

Functions

void ewl_config_cache_init (void)
int ewl_config_can_save_system (Ewl_Config *cfg)
 Determines if the user can write the system config file.
void ewl_config_color_get (Ewl_Config *cfg, const char *k, int *r, int *g, int *b, int *a)
 Retrieve color associated with a key.
void ewl_config_color_set (Ewl_Config *cfg, const char *k, int r, int g, int b, int a, Ewl_Durability state)
 Set the value of key to the specified color.
void ewl_config_destroy (Ewl_Config *cfg)
 Destroys the given config structure.
float ewl_config_float_get (Ewl_Config *cfg, const char *k)
 Retrieve floating point value associated with a key.
void ewl_config_float_set (Ewl_Config *cfg, const char *k, float v, Ewl_Durability state)
 Set the value of key to the specified float.
int ewl_config_init (void)
void ewl_config_instance_key_remove (Ewl_Config *cfg, const char *k)
 Removes the given key from the instance configuration data.
void ewl_config_instance_keys_remove (Ewl_Config *cfg, const char *k)
 Removes all keys/value pairs from the instance config, which start with the string .
int ewl_config_int_get (Ewl_Config *cfg, const char *k)
 Retrieve integer value associated with a key.
void ewl_config_int_set (Ewl_Config *cfg, const char *k, int v, Ewl_Durability state)
 Set the value of key to the specified integer.
void ewl_config_key_remove (Ewl_Config *cfg, const char *k)
 Removes key from configuration.
Ecore_List * ewl_config_keys_get (Ewl_Config *cfg, const char *starts_with)
 Returns a list with all keys in the config starting with .
void ewl_config_keys_remove (Ewl_Config *cfg, const char *k)
 Removes all keys/value pairs from all configs (system, user and instance), which start with the string .
Ewl_Configewl_config_new (const char *app_name)
 Creats the Ewl_Config file for the given application.
void ewl_config_shutdown (void)
const char * ewl_config_string_get (Ewl_Config *cfg, const char *k)
 Retrieve string value associated with a key.
void ewl_config_string_set (Ewl_Config *cfg, const char *k, const char *v, Ewl_Durability state)
 set the value of key to the specified string
void ewl_config_system_key_remove (Ewl_Config *cfg, const char *k)
 Removes the given key from the system configuration data.
void ewl_config_system_keys_remove (Ewl_Config *cfg, const char *k)
 Removes all keys/value pairs from the system config, which start with the string .
int ewl_config_system_save (Ewl_Config *cfg)
 Writes out the system and user data to the system config file.
void ewl_config_user_key_remove (Ewl_Config *cfg, const char *k)
 Removes the given key from the user configuration data.
void ewl_config_user_keys_remove (Ewl_Config *cfg, const char *k)
 Removes all keys/value pairs from the user config, which start with the string .
int ewl_config_user_save (Ewl_Config *cfg)
 Writes out the user config to the users config file.

Variables

Ewl_Configewl_config = NULL
Ewl_Config_Cache ewl_config_cache
Ecore_List * ewl_embed_list

Define Documentation

#define EWL_CONFIG_KEY_NOMATCH   ((char *)0xdeadbeef)

#define O_BINARY   0


Variable Documentation

The system configuration data

system debug data

Ecore_List* ewl_embed_list


Copyright © Enlightenment.org

Enlightened Widget Library Documentation Generated: Sun Sep 27 01:49:00 2009