Config.addListener

Installs a configuration listener, which is a callback function which will be called every time a change occurs on a given configuration entry.

class Config
static
uint
addListener
(
string path
,
GdaConfigListenerFunc func
,
void* userData
)

Parameters

path string

configuration path to listen to.

func GdaConfigListenerFunc

callback function.

userData void*

data to be passed to the callback function.

Return Value

Type: uint

the ID of the listener, which you will need for calling gda_config_remove_listener. If an error occurs, 0 is returned.

Meta