Functions to manage the collections on the server.
More...
|
xmmsc_result_t * | xmmsc_coll_get (xmmsc_connection_t *conn, const char *collname, xmmsv_coll_namespace_t ns) |
| Get the collection structure of a collection saved on the server. More...
|
|
xmmsc_result_t * | xmmsc_coll_sync (xmmsc_connection_t *conn) |
| Synchronize collection data to the database. More...
|
|
xmmsc_result_t * | xmmsc_coll_list (xmmsc_connection_t *conn, xmmsv_coll_namespace_t ns) |
| List all collections saved on the server in the given namespace. More...
|
|
xmmsc_result_t * | xmmsc_coll_save (xmmsc_connection_t *conn, xmmsv_t *coll, const char *name, xmmsv_coll_namespace_t ns) |
| Save a collection structure on the server under the given name, in the given namespace. More...
|
|
xmmsc_result_t * | xmmsc_coll_remove (xmmsc_connection_t *conn, const char *name, xmmsv_coll_namespace_t ns) |
| Remove a collection from the server. More...
|
|
xmmsc_result_t * | xmmsc_coll_find (xmmsc_connection_t *conn, int mediaid, xmmsv_coll_namespace_t ns) |
| Find all collections in the given namespace which match the given media. More...
|
|
xmmsc_result_t * | xmmsc_coll_rename (xmmsc_connection_t *conn, const char *from_name, const char *to_name, xmmsv_coll_namespace_t ns) |
| Rename a saved collection. More...
|
|
xmmsc_result_t * | xmmsc_coll_query_ids (xmmsc_connection_t *conn, xmmsv_t *coll, xmmsv_t *order, int limit_start, int limit_len) |
| List the ids of all media matched by the given collection. More...
|
|
xmmsc_result_t * | xmmsc_coll_query_infos (xmmsc_connection_t *conn, xmmsv_t *coll, xmmsv_t *order, int limit_start, int limit_len, xmmsv_t *fetch, xmmsv_t *group) |
| List the properties of all media matched by the given collection. More...
|
|
xmmsc_result_t * | xmmsc_coll_query (xmmsc_connection_t *conn, xmmsv_t *coll, xmmsv_t *fetch) |
| Finds all media in the collection and fetches it as specified in fetch. More...
|
|
xmmsc_result_t * | xmmsc_broadcast_collection_changed (xmmsc_connection_t *c) |
| Request the collection changed broadcast from the server. More...
|
|
xmmsc_result_t * | xmmsc_coll_idlist_from_playlist_file (xmmsc_connection_t *conn, const char *path) |
| Create a new collections structure with type idlist from a playlist file. More...
|
|
Functions to manage the collections on the server.
Request the collection changed broadcast from the server.
Everytime someone manipulates a collection this will be emitted.
Find all collections in the given namespace which match the given media.
The names of these collections is returned as a list.
- Parameters
-
conn | The connection to the server. |
mediaid | The id of the media to look for. |
ns | The namespace to consider (cannot be ALL). |
Get the collection structure of a collection saved on the server.
- Parameters
-
conn | The connection to the server. |
collname | The name of the saved collection. |
ns | The namespace containing the saved collection. |
Create a new collections structure with type idlist from a playlist file.
- Parameters
-
conn | The connection to the server. |
path | Path to the playlist file. Must be unencoded. |
List all collections saved on the server in the given namespace.
- Parameters
-
conn | The connection to the server. |
ns | The namespace containing the saved collections. |
Referenced by xmmsc_playlist_list().
Finds all media in the collection and fetches it as specified in fetch.
For a description of the different collection operators and the fetch specification look at http://xmms2.org/wiki/Collections_2.0
- Parameters
-
conn | The connection to the server. |
coll | The collection used to query. |
fetch | The fetch specification. |
- Returns
- An xmmsv_t with the structure specified in fetch.
Referenced by xmmsc_coll_query_ids().
List the ids of all media matched by the given collection.
A list of ordering properties can be specified, as well as offsets to only retrieve part of the result set.
- Parameters
-
conn | The connection to the server. |
coll | The collection used to query. |
order | The list of properties to order by, passed as an xmmsv_t list of strings. |
limit_start | The offset at which to start retrieving results (0 to disable). |
limit_len | The maximum number of entries to retrieve (0 to disable). |
List the properties of all media matched by the given collection.
A list of ordering properties can be specified, as well as offsets to only retrieve part of the result set. The list of properties to retrieve must be explicitely specified. It is also possible to group by certain properties.
- Parameters
-
conn | The connection to the server. |
coll | The collection used to query. |
order | The list of properties to order by, passed as an xmmsv_t list of strings. |
limit_start | The offset at which to start retrieving results (0 to disable). |
limit_len | The maximum number of entries to retrieve (0 to disable). |
fetch | The list of properties to retrieve, passed as an xmmsv_t list of strings. At least one property is required. |
group | The list of properties to group by, passed as an xmmsv_t list of strings. |
Remove a collection from the server.
- Parameters
-
conn | The connection to the server. |
name | The name of the collection to remove. |
ns | The namespace from which to remove the collection. |
Referenced by xmmsc_playlist_remove().
Rename a saved collection.
- Parameters
-
conn | The connection to the server. |
from_name | The name of the collection to rename. |
to_name | The new name of the collection. |
ns | The namespace containing the collection. |
Save a collection structure on the server under the given name, in the given namespace.
- Parameters
-
conn | The connection to the server. |
coll | The collection structure to save. |
name | The name under which to save the collection. |
ns | The namespace in which to save the collection. |
Referenced by xmmsc_playlist_create().
Synchronize collection data to the database.
- Parameters
-
conn | The connection to the server. |