Data Structures | |
| union | rte_option_value |
| union | rte_option_value_ptr |
| struct | rte_option_info |
Enumerations | |
| enum | rte_option_type { RTE_OPTION_BOOL = 1, RTE_OPTION_INT, RTE_OPTION_REAL, RTE_OPTION_STRING, RTE_OPTION_MENU } |
Functions | |
| rte_option_info * | rte_context_option_info_enum (rte_context *context, unsigned int index) |
| rte_option_info * | rte_context_option_info_by_keyword (rte_context *context, const char *keyword) |
| rte_bool | rte_context_option_get (rte_context *context, const char *keyword, rte_option_value *value) |
| rte_bool | rte_context_option_set (rte_context *context, const char *keyword,...) |
| char * | rte_context_option_print (rte_context *context, const char *keyword,...) |
| rte_bool | rte_context_option_menu_get (rte_context *context, const char *keyword, unsigned int *entry) |
| rte_bool | rte_context_option_menu_set (rte_context *context, const char *keyword, unsigned int entry) |
| rte_bool | rte_context_options_reset (rte_context *context) |
| enum rte_option_type |
Option type.
| rte_option_info* rte_context_option_info_enum | ( | rte_context * | context, | |
| unsigned int | index | |||
| ) |
| context | Initialized rte_context as returned by rte_context_new(). | |
| index | Index into the option table. |
NULL if the index is out of bounds. | rte_option_info* rte_context_option_info_by_keyword | ( | rte_context * | context, | |
| const char * | keyword | |||
| ) |
| context | Initialized rte_context as returned by rte_context_new(). | |
| keyword | Keyword identifying the option as in rte_option_info. |
NULL if the keyword was not found. | rte_bool rte_context_option_get | ( | rte_context * | context, | |
| const char * | keyword, | |||
| rte_option_value * | value | |||
| ) |
| context | Initialized rte_context as returned by rte_context_new(). | |
| keyword | Keyword identifying the option as in rte_option_info. | |
| value | A place to store the option value. |
TRUE on success, otherwise value remained unchanged. | rte_bool rte_context_option_set | ( | rte_context * | context, | |
| const char * | keyword, | |||
| ... | ||||
| ) |
| context | Initialized rte_context as returned by rte_context_new(). | |
| keyword | Keyword identifying the option as in rte_option_info. | |
| ... | New value to set. |
Typical usage is:
rte_context_option_set (context, "frame_rate", (double) 3.141592);
TRUE on success. | char* rte_context_option_print | ( | rte_context * | context, | |
| const char * | keyword, | |||
| ... | ||||
| ) |
| context | Initialized rte_context as returned by rte_context_new(). | |
| keyword | Keyword identifying the option as in rte_option_info. | |
| ... | Option value. |
NULL on failure. | rte_bool rte_context_option_menu_get | ( | rte_context * | context, | |
| const char * | keyword, | |||
| unsigned int * | entry | |||
| ) |
| context | Initialized rte_context as returned by rte_context_new(). | |
| keyword | Keyword identifying the option as in rte_option_info. | |
| entry | A place to store the current menu entry. |
TRUE on success, otherwise value remained unchanged. | rte_bool rte_context_option_menu_set | ( | rte_context * | context, | |
| const char * | keyword, | |||
| unsigned int | entry | |||
| ) |
| context | Initialized rte_context as returned by rte_context_new(). | |
| keyword | Keyword identifying the option as in rte_option_info. | |
| entry | Menu entry to be selected. |
TRUE on success, otherwise the option is not changed. | rte_bool rte_context_options_reset | ( | rte_context * | context | ) |
| context | Initialized rte_context as returned by rte_context_new(). |
TRUE on success, on failure some options may be reset and some not.
1.4.7