XmmsClient
Functions
ConfigControl

This controls configuration values on the XMMS server. More...

Functions

xmmsc_result_txmmsc_config_register_value (xmmsc_connection_t *c, const char *key, const char *value)
 Registers a configvalue in the server. More...
 
xmmsc_result_txmmsc_config_set_value (xmmsc_connection_t *c, const char *key, const char *val)
 Sets a configvalue in the server. More...
 
xmmsc_result_txmmsc_config_get_value (xmmsc_connection_t *c, const char *key)
 Retrieves a configvalue from the server. More...
 
xmmsc_result_txmmsc_config_list_values (xmmsc_connection_t *c)
 Lists all configuration values. More...
 
xmmsc_result_txmmsc_broadcast_config_value_changed (xmmsc_connection_t *c)
 Requests the config_value_changed broadcast. More...
 

Detailed Description

This controls configuration values on the XMMS server.

Function Documentation

xmmsc_result_t* xmmsc_broadcast_config_value_changed ( xmmsc_connection_t c)

Requests the config_value_changed broadcast.

This will be called when a configvalue has been updated.

Parameters
cThe connection structure.
xmmsc_result_t* xmmsc_config_get_value ( xmmsc_connection_t c,
const char *  key 
)

Retrieves a configvalue from the server.

Parameters
cThe connection structure.
keyThe key of the configval to retrieve.
xmmsc_result_t* xmmsc_config_list_values ( xmmsc_connection_t c)

Lists all configuration values.

Parameters
cThe connection structure.
xmmsc_result_t* xmmsc_config_register_value ( xmmsc_connection_t c,
const char *  key,
const char *  value 
)

Registers a configvalue in the server.

Parameters
cThe connection structure.
keyshould be <clientname>.myval like cli.path or something like that.
valueThe default value of this config value.
xmmsc_result_t* xmmsc_config_set_value ( xmmsc_connection_t c,
const char *  key,
const char *  val 
)

Sets a configvalue in the server.

Parameters
cThe connection structure.
keyThe key of the configval to set a value for.
valThe new value of the configval.