| XMMS2
    | 
Handles source preferences. More...
| Functions | |
| s4_sourcepref_t * | s4_sourcepref_create (const char **srcprefs) | 
| Creates a new source preferences that can be used when querying.  More... | |
| void | s4_sourcepref_unref (s4_sourcepref_t *sp) | 
| Decreases the reference of a sourcepref.  More... | |
| s4_sourcepref_t * | s4_sourcepref_ref (s4_sourcepref_t *sp) | 
| Increases the refcount of a sourcepref.  More... | |
| int | s4_sourcepref_get_priority (s4_sourcepref_t *sp, const char *src) | 
| Gets the priority of a source.  More... | |
Handles source preferences.
| s4_sourcepref_t* s4_sourcepref_create | ( | const char ** | srcprefs | ) | 
Creates a new source preferences that can be used when querying.
| srcprefs | An NULL terminated array of sources, where the first one has the highest priority. The sources may use glob- like patterns, for example "plugin*". | 
Referenced by CASE(), xmms_medialib_init(), and xmms_medialib_session_property_set().
| int s4_sourcepref_get_priority | ( | s4_sourcepref_t * | sp, | 
| const char * | src | ||
| ) | 
Gets the priority of a source.
| sp | The sourcepref to check against | 
| src | The source to check | 
Referenced by CASE().
| s4_sourcepref_t* s4_sourcepref_ref | ( | s4_sourcepref_t * | sp | ) | 
Increases the refcount of a sourcepref.
| sp | The sourcepref to reference | 
Referenced by s4_cond_new_custom_filter(), s4_cond_new_filter(), s4_fetchspec_add(), and xmms_medialib_get_source_preferences().
| void s4_sourcepref_unref | ( | s4_sourcepref_t * | sp | ) | 
Decreases the reference of a sourcepref.
If the reference count is less than or equal to zero it will be freed.
| sp | The sourcepref to free | 
Referenced by CASE(), s4_cond_free(), s4_fetchspec_free(), xmms_medialib_query(), and xmms_medialib_session_property_set().