XmmsClient
|
Macros | |
#define | XMMSV_DICT_ENTRY(k, v) __xmmsv_identity_const_charp (k), __xmmsv_identity_xmmsv (v) |
#define | XMMSV_DICT_ENTRY_STR(k, v) XMMSV_DICT_ENTRY (k, __xmmsv_null_to_none (xmmsv_new_string (v))) |
#define | XMMSV_DICT_ENTRY_INT(k, v) XMMSV_DICT_ENTRY (k, xmmsv_new_int (v)) |
#define | XMMSV_DICT_ENTRY_FLOAT(k, v) XMMSV_DICT_ENTRY (k, xmmsv_new_float (v)) |
#define | XMMSV_DICT_END NULL |
#define | XMMSV_LIST_ENTRY(v) __xmmsv_identity_xmmsv (v) |
#define | XMMSV_LIST_ENTRY_STR(v) XMMSV_LIST_ENTRY (__xmmsv_null_to_none (xmmsv_new_string (v))) |
#define | XMMSV_LIST_ENTRY_INT(v) XMMSV_LIST_ENTRY (xmmsv_new_int (v)) |
#define | XMMSV_LIST_ENTRY_FLOAT(v) XMMSV_LIST_ENTRY (xmmsv_new_float (v)) |
#define | XMMSV_LIST_ENTRY_COLL(v) XMMSV_LIST_ENTRY (__xmmsv_null_to_none (xmmsv_new_coll (v))) |
#define | XMMSV_LIST_END NULL |
Functions | |
xmmsv_t * | xmmsv_make_stringlist (char *array[], int num) XMMS_PUBLIC |
Helper function to build a list xmmsv_t containing the strings from the input array. More... | |
xmmsv_t * | xmmsv_build_dict (const char *firstkey,...) XMMS_PUBLIC XMMS_SENTINEL(0) |
xmmsv_t * | xmmsv_build_dict_va (const char *firstkey, va_list ap) XMMS_PUBLIC |
xmmsv_t * | xmmsv_build_list (xmmsv_t *first_entry,...) XMMS_PUBLIC XMMS_SENTINEL(0) |
xmmsv_t * | xmmsv_build_list_va (xmmsv_t *first_entry, va_list ap) XMMS_PUBLIC |
xmmsv_t * | xmmsv_build_empty_organize (void) XMMS_PUBLIC |
xmmsv_t * | xmmsv_build_organize (xmmsv_t *data) XMMS_PUBLIC |
Creates an organize fetch specification that may be passed to xmmsc_coll_query. More... | |
xmmsv_t * | xmmsv_build_metadata (xmmsv_t *keys, xmmsv_t *get, const char *aggregate, xmmsv_t *sourcepref) XMMS_PUBLIC |
Creates a metadata fetch specification. More... | |
xmmsv_t * | xmmsv_build_cluster_list (xmmsv_t *cluster_by, xmmsv_t *cluster_field, xmmsv_t *cluster_data) XMMS_PUBLIC |
Creates a cluster-list fetch specification. More... | |
xmmsv_t * | xmmsv_build_cluster_dict (xmmsv_t *cluster_by, xmmsv_t *cluster_field, xmmsv_t *cluster_data) XMMS_PUBLIC |
Creates a cluster-dict fetch specification. More... | |
xmmsv_t * | xmmsv_build_count (void) XMMS_PUBLIC |
Creates a count fetch specification. More... | |
#define XMMSV_DICT_END NULL |
#define XMMSV_DICT_ENTRY | ( | k, | |
v | |||
) | __xmmsv_identity_const_charp (k), __xmmsv_identity_xmmsv (v) |
#define XMMSV_DICT_ENTRY_FLOAT | ( | k, | |
v | |||
) | XMMSV_DICT_ENTRY (k, xmmsv_new_float (v)) |
#define XMMSV_DICT_ENTRY_INT | ( | k, | |
v | |||
) | XMMSV_DICT_ENTRY (k, xmmsv_new_int (v)) |
#define XMMSV_DICT_ENTRY_STR | ( | k, | |
v | |||
) | XMMSV_DICT_ENTRY (k, __xmmsv_null_to_none (xmmsv_new_string (v))) |
Referenced by xmmsc_coll_query_ids().
#define XMMSV_LIST_END NULL |
Referenced by setup_shm_prepare(), setup_udp_prepare(), xmmsc_bindata_add(), xmmsc_bindata_list(), xmmsc_bindata_remove(), xmmsc_bindata_retrieve(), xmmsc_c2c_reply(), xmmsc_c2c_send(), xmmsc_coll_find(), xmmsc_coll_get(), xmmsc_coll_idlist_from_playlist_file(), xmmsc_coll_list(), xmmsc_coll_query(), xmmsc_coll_query_ids(), xmmsc_coll_query_infos(), xmmsc_coll_remove(), xmmsc_coll_rename(), xmmsc_coll_save(), xmmsc_coll_sync(), xmmsc_config_get_value(), xmmsc_config_register_value(), xmmsc_config_set_value(), xmmsc_main_list_plugins(), xmmsc_medialib_entry_property_remove_with_source(), xmmsc_medialib_entry_property_set_int_with_source(), xmmsc_medialib_entry_property_set_str_with_source(), xmmsc_medialib_get_info(), xmmsc_medialib_move_entry(), xmmsc_medialib_rehash(), xmmsc_medialib_remove_entry(), xmmsc_playback_seek_ms(), xmmsc_playback_seek_samples(), xmmsc_playback_volume_set(), xmmsc_playlist_add_collection(), xmmsc_playlist_add_encoded(), xmmsc_playlist_add_id(), xmmsc_playlist_add_idlist(), xmmsc_playlist_clear(), xmmsc_playlist_current_pos(), xmmsc_playlist_insert_collection(), xmmsc_playlist_insert_encoded(), xmmsc_playlist_insert_id(), xmmsc_playlist_list_entries(), xmmsc_playlist_load(), xmmsc_playlist_move_entry(), xmmsc_playlist_radd_encoded(), xmmsc_playlist_remove_entry(), xmmsc_playlist_replace(), xmmsc_playlist_rinsert_encoded(), xmmsc_playlist_set_next(), xmmsc_playlist_set_next_rel(), xmmsc_playlist_shuffle(), xmmsc_playlist_sort(), xmmsc_sc_introspect_constant(), xmmsc_sc_namespace_get(), xmmsc_send_broadcast_msg(), xmmsc_send_signal_msg(), xmmsc_visualization_properties_set(), xmmsc_visualization_property_set(), xmmsc_visualization_shutdown(), xmmsc_visualization_start_handle(), xmmsc_write_signal_msg(), and xmmsc_xform_media_browse_encoded().
#define XMMSV_LIST_ENTRY | ( | v | ) | __xmmsv_identity_xmmsv (v) |
Referenced by xmmsc_bindata_add(), xmmsc_c2c_reply(), xmmsc_c2c_send(), xmmsc_coll_query(), xmmsc_coll_query_infos(), xmmsc_coll_save(), xmmsc_playlist_add_collection(), xmmsc_playlist_add_id(), xmmsc_playlist_add_idlist(), xmmsc_playlist_clear(), xmmsc_playlist_insert_collection(), xmmsc_playlist_insert_id(), xmmsc_playlist_replace(), xmmsc_playlist_shuffle(), xmmsc_playlist_sort(), and xmmsc_visualization_properties_set().
#define XMMSV_LIST_ENTRY_COLL | ( | v | ) | XMMSV_LIST_ENTRY (__xmmsv_null_to_none (xmmsv_new_coll (v))) |
#define XMMSV_LIST_ENTRY_FLOAT | ( | v | ) | XMMSV_LIST_ENTRY (xmmsv_new_float (v)) |
#define XMMSV_LIST_ENTRY_INT | ( | v | ) | XMMSV_LIST_ENTRY (xmmsv_new_int (v)) |
Referenced by setup_shm_prepare(), setup_udp_prepare(), xmmsc_c2c_reply(), xmmsc_c2c_send(), xmmsc_coll_find(), xmmsc_coll_query_infos(), xmmsc_main_list_plugins(), xmmsc_medialib_entry_property_remove_with_source(), xmmsc_medialib_entry_property_set_int_with_source(), xmmsc_medialib_entry_property_set_str_with_source(), xmmsc_medialib_get_info(), xmmsc_medialib_move_entry(), xmmsc_medialib_rehash(), xmmsc_medialib_remove_entry(), xmmsc_playback_seek_ms(), xmmsc_playback_seek_samples(), xmmsc_playback_volume_set(), xmmsc_playlist_clear(), xmmsc_playlist_insert_collection(), xmmsc_playlist_insert_encoded(), xmmsc_playlist_insert_id(), xmmsc_playlist_move_entry(), xmmsc_playlist_remove_entry(), xmmsc_playlist_replace(), xmmsc_playlist_rinsert_encoded(), xmmsc_playlist_set_next(), xmmsc_playlist_set_next_rel(), xmmsc_playlist_shuffle(), xmmsc_playlist_sort(), xmmsc_send_broadcast_msg(), xmmsc_send_signal_msg(), xmmsc_visualization_properties_set(), xmmsc_visualization_property_set(), xmmsc_visualization_shutdown(), xmmsc_visualization_start_handle(), and xmmsc_write_signal_msg().
#define XMMSV_LIST_ENTRY_STR | ( | v | ) | XMMSV_LIST_ENTRY (__xmmsv_null_to_none (xmmsv_new_string (v))) |
Referenced by setup_shm_prepare(), xmmsc_bindata_remove(), xmmsc_bindata_retrieve(), xmmsc_coll_find(), xmmsc_coll_get(), xmmsc_coll_idlist_from_playlist_file(), xmmsc_coll_list(), xmmsc_coll_query_ids(), xmmsc_coll_remove(), xmmsc_coll_rename(), xmmsc_coll_save(), xmmsc_config_get_value(), xmmsc_config_register_value(), xmmsc_config_set_value(), xmmsc_medialib_entry_property_remove_with_source(), xmmsc_medialib_entry_property_set_int_with_source(), xmmsc_medialib_entry_property_set_str_with_source(), xmmsc_medialib_move_entry(), xmmsc_playback_volume_set(), xmmsc_playlist_add_collection(), xmmsc_playlist_add_encoded(), xmmsc_playlist_add_id(), xmmsc_playlist_add_idlist(), xmmsc_playlist_clear(), xmmsc_playlist_current_pos(), xmmsc_playlist_insert_collection(), xmmsc_playlist_insert_encoded(), xmmsc_playlist_insert_id(), xmmsc_playlist_list_entries(), xmmsc_playlist_load(), xmmsc_playlist_move_entry(), xmmsc_playlist_radd_encoded(), xmmsc_playlist_remove_entry(), xmmsc_playlist_replace(), xmmsc_playlist_rinsert_encoded(), xmmsc_playlist_shuffle(), xmmsc_playlist_sort(), xmmsc_sc_introspect_constant(), xmmsc_sc_namespace_get(), xmmsc_visualization_property_set(), and xmmsc_xform_media_browse_encoded().
xmmsv_t* xmmsv_build_cluster_dict | ( | xmmsv_t * | cluster_by, |
xmmsv_t * | cluster_field, | ||
xmmsv_t * | cluster_data | ||
) |
Creates a cluster-dict fetch specification.
cluster_by | A list of attributes to cluster by |
cluster_data | The fetch specifcation to use when filling the list |
xmmsv_t* xmmsv_build_cluster_list | ( | xmmsv_t * | cluster_by, |
xmmsv_t * | cluster_field, | ||
xmmsv_t * | cluster_data | ||
) |
Creates a cluster-list fetch specification.
cluster_by | A list of attributes to cluster by |
cluster_data | The fetch specifcation to use when filling the list |
xmmsv_t* xmmsv_build_count | ( | void | ) |
Creates a count fetch specification.
xmmsv_t* xmmsv_build_dict | ( | const char * | firstkey, |
... | |||
) |
xmmsv_t* xmmsv_build_dict_va | ( | const char * | firstkey, |
va_list | ap | ||
) |
Referenced by xmmsv_build_dict().
xmmsv_t* xmmsv_build_empty_organize | ( | void | ) |
Referenced by xmmsc_coll_query_ids(), xmmsc_sc_introspect_constant(), xmmsc_sc_namespace_get(), and xmmsc_write_signal_msg().
Referenced by xmmsc_send_cmd(), xmmsc_send_cmd_cookie(), and xmmsv_build_list().
xmmsv_t* xmmsv_build_metadata | ( | xmmsv_t * | fields, |
xmmsv_t * | get, | ||
const char * | aggregate, | ||
xmmsv_t * | sourcepref | ||
) |
Creates a metadata fetch specification.
fields | A list of fields to fetch, or NULL to fetch everything |
get | A list of what to get ("id", "key", "value", "source") |
aggregate | The aggregation function to use |
sourcepref | A list of sources, first one has the highest priority |
Creates an organize fetch specification that may be passed to xmmsc_coll_query.
It takes a dict with key-value pairs where the values are fetch specifications.
xmmsv_t* xmmsv_make_stringlist | ( | char * | array[], |
int | num | ||
) |
Helper function to build a list xmmsv_t containing the strings from the input array.
array | An array of C strings. Must be NULL-terminated if num is -1. |
num | The optional number of elements to read from the array. Set to -1 if the array is NULL-terminated. |