config parser
Functions
parse_options
int parse_options (const struct weston_option * options, int count, int * argc, char *[] argv)
Parameters:
options
–
count
–
argc
–
argv
–
Returns
(
int
)
–
No description available
weston_config_destroy
void weston_config_destroy (struct weston_config * config)
Parameters:
config
–
Returns
(
void
)
–
No description available
weston_config_get_full_path
const char * weston_config_get_full_path (struct weston_config * config)
Parameters:
config
–
Returns
(
const char *
)
–
No description available
weston_config_get_name_from_env
const char * weston_config_get_name_from_env ()
Returns
(
const char *
)
–
No description available
weston_config_get_section
struct weston_config_section * weston_config_get_section (struct weston_config * config, const char * section, const char * key, const char * value)
Parameters:
config
–
section
–
key
–
value
–
Returns
(
struct weston_config_section *
)
–
No description available
weston_config_next_section
int weston_config_next_section (struct weston_config * config, struct weston_config_section ** section, const char ** name)
Parameters:
config
–
section
–
name
–
Returns
(
int
)
–
No description available
weston_config_parse
struct weston_config * weston_config_parse (const char * name)
Parameters:
name
–
Returns
(
struct weston_config *
)
–
No description available
weston_config_section_get_bool
int weston_config_section_get_bool (struct weston_config_section * section, const char * key, int * value, int default_value)
Parameters:
section
–
key
–
value
–
default_value
–
Returns
(
int
)
–
No description available
weston_config_section_get_color
int weston_config_section_get_color (struct weston_config_section * section, const char * key, uint32_t* color, uint32_t default_color)
Parameters:
section
–
key
–
color
–
default_color
–
Returns
(
int
)
–
No description available
weston_config_section_get_double
int weston_config_section_get_double (struct weston_config_section * section, const char * key, double * value, double default_value)
Parameters:
section
–
key
–
value
–
default_value
–
Returns
(
int
)
–
No description available
weston_config_section_get_int
int weston_config_section_get_int (struct weston_config_section * section, const char * key, int32_t* value, int32_t default_value)
Parameters:
section
–
key
–
value
–
default_value
–
Returns
(
int
)
–
No description available
weston_config_section_get_string
int weston_config_section_get_string (struct weston_config_section * section, const char * key, char ** value, const char * default_value)
Parameters:
section
–
key
–
value
–
default_value
–
Returns
(
int
)
–
No description available
weston_config_section_get_uint
int weston_config_section_get_uint (struct weston_config_section * section, const char * key, uint32_t* value, uint32_t default_value)
Parameters:
section
–
key
–
value
–
default_value
–
Returns
(
int
)
–
No description available
Structures
config_key
struct config_key { const char *name; enum config_key_type type; void *data; };
Fields
name
(const char *)
–
type
(enum config_key_type )
–
data
(void *)
–
config_section
struct config_section { const char *name; const struct config_key *keys; int num_keys; void (*done)(void *data); };
Fields
name
(const char *)
–
keys
(const struct config_key *)
–
num_keys
(int )
–
done
()
–
weston_config
weston_config_section
weston_option
struct weston_option { enum weston_option_type type; const char *name; char short_name; void *data; };
Fields
type
(enum weston_option_type )
–
name
(const char *)
–
short_name
(char )
–
data
(void *)
–
Enumerations
config_key_type
enum config_key_type { CONFIG_KEY_INTEGER, /* typeof data = int */ CONFIG_KEY_UNSIGNED_INTEGER, /* typeof data = unsigned int */ CONFIG_KEY_STRING, /* typeof data = char* */ CONFIG_KEY_BOOLEAN /* typeof data = int */ };
Members
CONFIG_KEY_INTEGER
(0)
–
CONFIG_KEY_UNSIGNED_INTEGER
(1)
–
CONFIG_KEY_STRING
(2)
–
CONFIG_KEY_BOOLEAN
(3)
–
weston_option_type
enum weston_option_type { WESTON_OPTION_INTEGER, WESTON_OPTION_UNSIGNED_INTEGER, WESTON_OPTION_STRING, WESTON_OPTION_BOOLEAN };
Members
WESTON_OPTION_INTEGER
(0)
–
WESTON_OPTION_UNSIGNED_INTEGER
(1)
–
WESTON_OPTION_STRING
(2)
–
WESTON_OPTION_BOOLEAN
(3)
–
The results of the search are