Applet API reference
Functions
Checking key existance
-
bool wapi_key_exists(_wap_t_config_variable *table, const char *key)
Checks if specified key exists in passed table.
-
bool wapi_index_exists(_wap_t_config_variable *array, size_t index)
Checks if specified index exists inside passed array.
Extracting variable from key directories
-
_wap_t_config_variable *wapi_get_var_from_table(_wap_t_config_variable *table, const char *key)
Extracts variable with specified key from table.
-
_wap_t_config_variable *wapi_get_var_from_array(_wap_t_config_variable *array, size_t index)
Extracts variable with specified index from array.
Converting variable to type
-
const char *wapi_var_as_string(_wap_t_config_variable *var)
Converts variable to string.
-
int64_t wapi_var_as_integer(_wap_t_config_variable *var)
Converts variable to integer.
-
double wapi_var_as_floating(_wap_t_config_variable *var)
Converts variable to floating.
-
bool wapi_var_as_boolean(_wap_t_config_variable *var)
Converts variable to boolean.
Structs
-
struct _wap_t_config_variable
Entire toml-based applet config.
Public Members
-
union _wap_t_config_variable::key key
-
union _wap_t_config_variable::content content
-
union content
Public Members
-
union _wap_t_config_variable::content::value value
-
struct _wap_t_config_variable::content::array array
-
struct _wap_t_config_variable::content::table table
-
struct array
-
struct table
-
union value
-
union _wap_t_config_variable::content::value value
-
union key
-
union _wap_t_config_variable::key key
-
struct wap_t_applet_config
Public Members
-
struct wap_t_applet_info
Basic informations about applet.
Enums
-
enum wap_t_config_var_type
Variable types used in applet config struct.
Values:
-
enumerator WAP_CONF_VAR_TYPE_STRING
-
enumerator WAP_CONF_VAR_TYPE_INTEGER
-
enumerator WAP_CONF_VAR_TYPE_FLOAT
-
enumerator WAP_CONF_VAR_TYPE_BOOLEAN
-
enumerator WAP_CONF_VAR_TYPE_ARRAY
-
enumerator WAP_CONF_VAR_TYPE_TABLE
-
enumerator WAP_CONF_VAR_TYPE_STRING