XMMS2
|
#include <stdarg.h>
#include <stdint.h>
#include <xmmsc/xmmsc_compiler.h>
#include <xmmsc/xmmsc_stdint.h>
#include <xmmsc/xmmsc_idnumbers.h>
Macros | |
#define | XMMSV_TYPE_INT32 XMMSV_TYPE_INT64 |
#define | xmmsv_get_int xmmsv_get_int32 |
Typedefs | |
typedef struct xmmsv_St | xmmsv_t |
Enumerations | |
enum | xmmsv_type_t { XMMSV_TYPE_NONE , XMMSV_TYPE_ERROR , XMMSV_TYPE_INT64 , XMMSV_TYPE_STRING , XMMSV_TYPE_COLL , XMMSV_TYPE_BIN , XMMSV_TYPE_LIST , XMMSV_TYPE_DICT , XMMSV_TYPE_BITBUFFER , XMMSV_TYPE_FLOAT , XMMSV_TYPE_END } |
Functions | |
xmmsv_t * | xmmsv_new_none (void) |
Allocates a new empty xmmsv_t. | |
xmmsv_t * | xmmsv_new_error (const char *errstr) |
Allocates a new error xmmsv_t. | |
xmmsv_t * | xmmsv_new_int (int64_t i) |
Allocates a new integer xmmsv_t. | |
xmmsv_t * | xmmsv_new_float (float i) |
Allocates a new float xmmsv_t. | |
xmmsv_t * | xmmsv_new_string (const char *s) |
Allocates a new string xmmsv_t. | |
xmmsv_t * | xmmsv_new_bin (const unsigned char *data, unsigned int len) |
Allocates a new binary data xmmsv_t. | |
xmmsv_t * | xmmsv_copy (xmmsv_t *val) |
Return a new value object which is a deep copy of the input value. | |
xmmsv_t * | xmmsv_coll_copy (xmmsv_t *orig_coll) |
xmmsv_t * | xmmsv_ref (xmmsv_t *val) |
References the xmmsv_t. | |
void | xmmsv_unref (xmmsv_t *val) |
Decreases the references for the xmmsv_t When the number of references reaches 0 it will be freed. | |
xmmsv_type_t | xmmsv_get_type (const xmmsv_t *val) |
Get the type of the value. | |
int | xmmsv_is_type (const xmmsv_t *val, xmmsv_type_t t) |
Check if value is of specified type. | |
int | xmmsv_get_error (const xmmsv_t *val, const char **r) |
Retrieves an error string describing the server error from the value. | |
int | xmmsv_get_int32 (const xmmsv_t *val, int32_t *r) |
Retrieves a signed integer from the value. | |
int | xmmsv_get_int64 (const xmmsv_t *val, int64_t *r) |
Retrieves a signed integer from the value. | |
int | xmmsv_get_float (const xmmsv_t *val, float *r) |
Retrieves a float from the value. | |
int | xmmsv_get_string (const xmmsv_t *val, const char **r) |
Retrieves a string from the value. | |
int | xmmsv_get_coll (const xmmsv_t *val, xmmsv_t **coll) |
Retrieves a collection from the value. | |
int | xmmsv_get_bin (const xmmsv_t *val, const unsigned char **r, unsigned int *rlen) |
Retrieves binary data from the value. | |
int | xmmsv_is_error (const xmmsv_t *val) |
Check if the value stores an error. | |