XMMS2
Functions
Result

Handles results returned from S4. More...

Functions

const s4_result_ts4_result_next (const s4_result_t *res)
 Gets the next result. More...
 
const char * s4_result_get_key (const s4_result_t *res)
 Gets the result key. More...
 
const char * s4_result_get_src (const s4_result_t *res)
 Gets the result source. More...
 
const s4_val_ts4_result_get_val (const s4_result_t *res)
 Gets the result value. More...
 
void s4_result_free (s4_result_t *res)
 Frees a result. More...
 
s4_result_ts4_result_create (s4_result_t *next, const char *key, const s4_val_t *val, const char *src)
 Creates a new result. More...
 

Detailed Description

Handles results returned from S4.

Function Documentation

s4_result_t* s4_result_create ( s4_result_t next,
const char *  key,
const s4_val_t val,
const char *  src 
)

Creates a new result.

Parameters
nextThe next result
keyThe key
valThe value
srcThe source
Returns
A new result
void s4_result_free ( s4_result_t res)

Frees a result.

Parameters
resThe result to free

Referenced by s4_resultrow_unref().

const char* s4_result_get_key ( const s4_result_t res)

Gets the result key.

Parameters
resThe result to find the key of
Returns
The key of the result

Referenced by print_result(), xmms_medialib_entry_cleanup(), and xmms_medialib_entry_remove().

const char* s4_result_get_src ( const s4_result_t res)

Gets the result source.

Parameters
resThe result to find the source of
Returns
The source of the result

Referenced by print_result(), xmms_medialib_entry_cleanup(), and xmms_medialib_entry_remove().

const s4_val_t* s4_result_get_val ( const s4_result_t res)

Gets the result value.

Parameters
resThe result to find the value of
Returns
The value of the result

Referenced by print_result(), xmms_medialib_entry_cleanup(), xmms_medialib_entry_not_resolved_get(), xmms_medialib_entry_remove(), and xmms_medialib_session_property_set().

const s4_result_t* s4_result_next ( const s4_result_t res)

Gets the next result.

Parameters
resThe result to find the next of
Returns
The next result, or NULL if there are no more

Referenced by print_result(), s4_resultrow_unref(), xmms_medialib_entry_cleanup(), and xmms_medialib_entry_remove().