ALSA project - the C library reference
Loading...
Searching...
No Matches
confeval.c File Reference

Configuration helper functions. More...

Functions

int snd_config_evaluate_string (snd_config_t **dst, const char *s, snd_config_expand_fcn_t fcn, void *private_data)
 Evaluate an math expression in the string.
 

Detailed Description

Configuration helper functions.

Author
Jaroslav Kysela perex.nosp@m.@per.nosp@m.ex.cz
Date
2021

Configuration string evaluation.

See the simple math expressions page for more details.

Function Documentation

◆ snd_config_evaluate_string()

int snd_config_evaluate_string ( snd_config_t ** dst,
const char * s,
snd_config_expand_fcn_t fcn,
void * private_data )

Evaluate an math expression in the string.

Parameters
[out]dstThe function puts the handle to the new configuration node at the address specified by dst.
[in]sA string to evaluate
[in]fcnA function to get the variable contents
[in]private_dataA private value for the variable contents function
Returns
0 if successful, otherwise a negative error code.