Audio-XMMSClient
view release on metacpan or search on metacpan
XMMSClientCollection.xs view on Meta::CPAN
xmmsc_coll_t *coll
unsigned int from
unsigned int to
PREINIT:
size_t idlist_len;
INIT:
idlist_len = xmmsc_coll_idlist_get_size (coll);
if (from > idlist_len) {
croak ("trying to move id from after the idlists end");
}
if (to >= idlist_len) {
croak ("trying to move id to after the idlists end");
}
int
xmmsc_coll_idlist_clear (coll)
xmmsc_coll_t *coll
NO_OUTPUT int
xmmsc_coll_idlist_get_index (xmmsc_coll_t *coll, unsigned int index, OUTLIST uint32_t val)
INIT:
PERL_UNUSED_VAR (targ);
if (index > xmmsc_coll_idlist_get_size (coll)) {
croak ("trying to get an id from behind the idlists end");
}
POSTCALL:
if (RETVAL == 0)
XSRETURN_UNDEF;
int
xmmsc_coll_idlist_set_index (coll, index, val)
xmmsc_coll_t *coll
unsigned int index
uint32_t val
PREINIT:
size_t idlist_len;
INIT:
idlist_len = xmmsc_coll_idlist_get_size (coll);
if (idlist_len == 0 || index > idlist_len - 1) {
croak ("trying to set an id after the end of the idlist");
}
size_t
xmmsc_coll_idlist_get_size (coll)
xmmsc_coll_t *coll
xmmsc_coll_type_t
xmmsc_coll_get_type (coll)
xmmsc_coll_t *coll
void
xmmsc_coll_get_idlist (coll)
xmmsc_coll_t *coll
PREINIT:
uint32_t *ret;
size_t size;
unsigned int i = 0;
PPCODE:
ret = xmmsc_coll_get_idlist (coll);
if (ret == NULL)
XSRETURN_UNDEF;
size = xmmsc_coll_idlist_get_size (coll);
EXTEND (sp, size);
while (ret[i] != 0) {
PUSHs (sv_2mortal (newSVuv (ret[i])));
++i;
}
void
operands (coll)
xmmsc_coll_t *coll
ALIAS:
operand_list = 1
PREINIT:
xmmsc_coll_t *op;
PPCODE:
PERL_UNUSED_VAR (ix);
for (xmmsc_coll_operand_list_first (coll);
xmmsc_coll_operand_list_entry (coll, &op);
xmmsc_coll_operand_list_next (coll)) {
xmmsc_coll_ref (op);
XPUSHs (sv_2mortal (perl_xmmsclient_new_sv_from_ptr (op, "Audio::XMMSClient::Collection")));
}
int
xmmsc_coll_operand_list_first (coll)
xmmsc_coll_t *coll
int
xmmsc_coll_operand_list_valid (coll)
xmmsc_coll_t *coll
NO_OUTPUT int
xmmsc_coll_operand_list_entry (xmmsc_coll_t *coll, OUTLIST xmmsc_coll_t *op)
INIT:
PERL_UNUSED_VAR (targ);
POSTCALL:
xmmsc_coll_ref (op);
if (RETVAL == 0)
XSRETURN_UNDEF;
int
xmmsc_coll_operand_list_next (coll)
xmmsc_coll_t *coll
int
xmmsc_coll_operand_list_save (coll)
xmmsc_coll_t *coll
int
xmmsc_coll_operand_list_restore (coll)
xmmsc_coll_t *coll
void
xmmsc_coll_attribute_set (coll, key, value)
xmmsc_coll_t *coll
const char *key
const char *value
int
xmmsc_coll_attribute_remove (coll, key)
xmmsc_coll_t *coll
const char *key
NO_OUTPUT int
xmmsc_coll_attribute_get (xmmsc_coll_t *coll, const char *key, OUTLIST char *val)
INIT:
PERL_UNUSED_VAR (targ);
POSTCALL:
if (RETVAL == 0)
XSRETURN_UNDEF;
void
xmmsc_coll_attribute_list (xmmsc_coll_t *coll)
PREINIT:
const char *key;
const char *value;
PPCODE:
xmmsc_coll_attribute_list_first (coll);
while (xmmsc_coll_attribute_list_valid (coll)) {
xmmsc_coll_attribute_list_entry (coll, &key, &value);
EXTEND (sp, 2);
mPUSHp (key, strlen (key));
mPUSHp (value, strlen (value));
xmmsc_coll_attribute_list_next (coll);
}
xmmsc_coll_t *
xmmsc_coll_universe (class="optional")
C_ARGS:
/* void */
BOOT:
PERL_UNUSED_VAR (items);
( run in 3.330 seconds using v1.01-cache-2.11-cpan-71847e10f99 )