XmmsClient
Macros | Typedefs | Functions
xmmsv_coll.h File Reference
#include <xmmsc/xmmsc_compiler.h>
#include <xmmsc/xmmsc_stdint.h>
#include <xmmsc/xmmsc_idnumbers.h>
#include <xmmsc/xmmsv_general.h>

Macros

#define xmmsc_coll_new   xmmsv_coll_new
 
#define xmmsc_coll_ref   xmmsv_coll_ref
 
#define xmmsc_coll_unref   xmmsv_coll_unref
 
#define xmmsc_coll_set_idlist   xmmsv_coll_set_idlist
 
#define xmmsc_coll_add_operand   xmmsv_coll_add_operand
 
#define xmmsc_coll_remove_operand   xmmsv_coll_remove_operand
 
#define xmmsc_coll_idlist_append   xmmsv_coll_idlist_append
 
#define xmmsc_coll_idlist_insert   xmmsv_coll_idlist_insert
 
#define xmmsc_coll_idlist_move   xmmsv_coll_idlist_move
 
#define xmmsc_coll_idlist_remove   xmmsv_coll_idlist_remove
 
#define xmmsc_coll_idlist_clear   xmmsv_coll_idlist_clear
 
#define xmmsc_coll_idlist_get_index   xmmsv_coll_idlist_get_index
 
#define xmmsc_coll_idlist_set_index   xmmsv_coll_idlist_set_index
 
#define xmmsc_coll_idlist_get_size   xmmsv_coll_idlist_get_size
 
#define xmmsc_coll_get_type   xmmsv_coll_get_type
 
#define xmmsc_coll_attribute_set   xmmsv_coll_attribute_set
 
#define xmmsc_coll_attribute_remove   xmmsv_coll_attribute_remove
 
#define xmmsc_coll_attribute_get   xmmsv_coll_attribute_get
 
#define xmmsc_coll_universe   xmmsv_coll_universe
 
#define xmmsv_coll_idlist_get_index   xmmsv_coll_idlist_get_index_int32
 
#define xmmsv_coll_attribute_get_int   xmmsv_coll_attribute_get_int32
 

Typedefs

typedef xmmsv_t xmmsv_coll_t XMMS_DEPRECATED
 
typedef xmmsv_t xmmsc_coll_t
 

Functions

xmmsv_txmmsv_coll_new (xmmsv_coll_type_t type) XMMS_PUBLIC XMMS_DEPRECATED
 
xmmsv_txmmsv_coll_ref (xmmsv_t *coll) XMMS_PUBLIC XMMS_DEPRECATED
 Increases the references for the xmmsv_t. More...
 
void xmmsv_coll_unref (xmmsv_t *coll) XMMS_PUBLIC XMMS_DEPRECATED
 Decreases the references for the xmmsv_t When the number of references reaches 0 it will be freed and all its operands unreferenced as well. More...
 
xmmsv_txmmsv_new_coll (xmmsv_coll_type_t type) XMMS_PUBLIC
 Allocates a new collection xmmsv_t of the given type. More...
 
void xmmsv_coll_set_idlist (xmmsv_t *coll, int ids[]) XMMS_PUBLIC
 Set the list of ids in the given collection. More...
 
void xmmsv_coll_add_operand (xmmsv_t *coll, xmmsv_t *op) XMMS_PUBLIC
 Add the operand to the given collection. More...
 
void xmmsv_coll_remove_operand (xmmsv_t *coll, xmmsv_t *op) XMMS_PUBLIC
 Remove all the occurences of the operand in the given collection. More...
 
xmmsv_txmmsv_coll_operands_get (xmmsv_t *coll) XMMS_PUBLIC
 
void xmmsv_coll_operands_set (xmmsv_t *coll, xmmsv_t *operands) XMMS_PUBLIC
 Replace all operands in the given collection. More...
 
int xmmsv_coll_idlist_append (xmmsv_t *coll, int64_t id) XMMS_PUBLIC
 Append a value to the idlist. More...
 
int xmmsv_coll_idlist_insert (xmmsv_t *coll, int index, int64_t id) XMMS_PUBLIC
 Insert a value at a given position in the idlist. More...
 
int xmmsv_coll_idlist_move (xmmsv_t *coll, int index, int newindex) XMMS_PUBLIC
 Move a value of the idlist to a new position. More...
 
int xmmsv_coll_idlist_remove (xmmsv_t *coll, int index) XMMS_PUBLIC
 Remove the value at a given index from the idlist. More...
 
int xmmsv_coll_idlist_clear (xmmsv_t *coll) XMMS_PUBLIC
 Empties the idlist. More...
 
int xmmsv_coll_idlist_get_index_int32 (xmmsv_t *coll, int index, int32_t *val) XMMS_PUBLIC
 Retrieves the value at the given position in the idlist. More...
 
int xmmsv_coll_idlist_get_index_int64 (xmmsv_t *coll, int index, int64_t *val) XMMS_PUBLIC
 Retrieves the value at the given position in the idlist. More...
 
int xmmsv_coll_idlist_set_index (xmmsv_t *coll, int index, int64_t val) XMMS_PUBLIC
 Sets the value at the given position in the idlist. More...
 
int xmmsv_coll_idlist_get_size (xmmsv_t *coll) XMMS_PUBLIC
 Get the size of the idlist. More...
 
int xmmsv_coll_is_type (xmmsv_t *val, xmmsv_coll_type_t t) XMMS_PUBLIC
 Check if collection is of specified type. More...
 
xmmsv_coll_type_t xmmsv_coll_get_type (xmmsv_t *coll) XMMS_PUBLIC
 Return the type of the collection. More...
 
xmmsv_txmmsv_coll_idlist_get (xmmsv_t *coll) XMMS_PUBLIC
 Return the list of ids stored in the collection. More...
 
void xmmsv_coll_idlist_set (xmmsv_t *coll, xmmsv_t *idlist) XMMS_PUBLIC
 Replace the idlist in the given collection. More...
 
void xmmsv_coll_attribute_set (xmmsv_t *coll, const char *key, const char *value) XMMS_PUBLIC XMMS_DEPRECATED
 Set a string attribute in the given collection. More...
 
void xmmsv_coll_attribute_set_string (xmmsv_t *coll, const char *key, const char *value) XMMS_PUBLIC
 Set a string attribute in the given collection. More...
 
void xmmsv_coll_attribute_set_int (xmmsv_t *coll, const char *key, int64_t value) XMMS_PUBLIC
 Set an integer attribute in the given collection. More...
 
void xmmsv_coll_attribute_set_value (xmmsv_t *coll, const char *key, xmmsv_t *value) XMMS_PUBLIC
 Set an attribute in the given collection. More...
 
int xmmsv_coll_attribute_remove (xmmsv_t *coll, const char *key) XMMS_PUBLIC
 Remove an attribute from the given collection. More...
 
int xmmsv_coll_attribute_get (xmmsv_t *coll, const char *key, const char **value) XMMS_PUBLIC XMMS_DEPRECATED
 Retrieve a string attribute from the given collection. More...
 
int xmmsv_coll_attribute_get_string (xmmsv_t *coll, const char *key, const char **value) XMMS_PUBLIC
 Retrieve a string attribute from the given collection. More...
 
int xmmsv_coll_attribute_get_int32 (xmmsv_t *coll, const char *key, int32_t *value) XMMS_PUBLIC
 Retrieve an integer attribute from the given collection. More...
 
int xmmsv_coll_attribute_get_int64 (xmmsv_t *coll, const char *key, int64_t *value) XMMS_PUBLIC
 Retrieve an integer attribute from the given collection. More...
 
int xmmsv_coll_attribute_get_value (xmmsv_t *coll, const char *key, xmmsv_t **value) XMMS_PUBLIC
 Retrieve an attribute from the given collection. More...
 
xmmsv_txmmsv_coll_attributes_get (xmmsv_t *coll) XMMS_PUBLIC
 
void xmmsv_coll_attributes_set (xmmsv_t *coll, xmmsv_t *attributes) XMMS_PUBLIC
 Replace all attributes in the given collection. More...
 
xmmsv_txmmsv_coll_universe (void) XMMS_PUBLIC XMMS_DEPRECATED
 Return a collection referencing the whole media library. More...
 
xmmsv_txmmsv_coll_add_order_operator (xmmsv_t *coll, xmmsv_t *order) XMMS_PUBLIC
 Return a collection with an order-operator added. More...
 
xmmsv_txmmsv_coll_add_order_operators (xmmsv_t *coll, xmmsv_t *order) XMMS_PUBLIC
 Return a collection with several order-operators added. More...
 
xmmsv_txmmsv_coll_add_limit_operator (xmmsv_t *coll, int lim_start, int lim_len) XMMS_PUBLIC
 Returns a collection with a LIMIT operator added. More...
 

Macro Definition Documentation

#define xmmsc_coll_add_operand   xmmsv_coll_add_operand
#define xmmsc_coll_attribute_get   xmmsv_coll_attribute_get
#define xmmsc_coll_attribute_remove   xmmsv_coll_attribute_remove
#define xmmsc_coll_attribute_set   xmmsv_coll_attribute_set
#define xmmsc_coll_get_type   xmmsv_coll_get_type
#define xmmsc_coll_idlist_append   xmmsv_coll_idlist_append
#define xmmsc_coll_idlist_clear   xmmsv_coll_idlist_clear
#define xmmsc_coll_idlist_get_index   xmmsv_coll_idlist_get_index
#define xmmsc_coll_idlist_get_size   xmmsv_coll_idlist_get_size
#define xmmsc_coll_idlist_insert   xmmsv_coll_idlist_insert
#define xmmsc_coll_idlist_move   xmmsv_coll_idlist_move
#define xmmsc_coll_idlist_remove   xmmsv_coll_idlist_remove
#define xmmsc_coll_idlist_set_index   xmmsv_coll_idlist_set_index
#define xmmsc_coll_new   xmmsv_coll_new
#define xmmsc_coll_ref   xmmsv_coll_ref
#define xmmsc_coll_remove_operand   xmmsv_coll_remove_operand
#define xmmsc_coll_set_idlist   xmmsv_coll_set_idlist
#define xmmsc_coll_universe   xmmsv_coll_universe
#define xmmsc_coll_unref   xmmsv_coll_unref
#define xmmsv_coll_attribute_get_int   xmmsv_coll_attribute_get_int32
#define xmmsv_coll_idlist_get_index   xmmsv_coll_idlist_get_index_int32

Typedef Documentation

typedef xmmsv_t xmmsv_coll_t XMMS_DEPRECATED