On Tue, 27 Apr 2010 22:34:40 +0800
rui kou <[email protected]> wrote:
> xmmsv_t *
> create_native_value(char *value)
> {
> xmmsv_t *ret;
>
> ret = xmmsv_new_list();
> xmmsv_list_append(ret, xmmsv_new_string(value));
>
> return ret;
> }
Note that you should unref the value_t you allocated here.
> BUT,I can't get the string by:
...
> How can I make it??
The value your callback from xmmsc_coll_query_infos gets is a list of
dicts. Like such:
{{"artist" => "Flogging Molly", "album" => "Alive Behind The Green Door"},
...,
{"artist" => "asdf", album => "Qwerty, yeah!"}
}
Propdicts can be retrieved from xmmsc_medialib_get_info.
I think the code in the attachment (if the attachment is not eaten by
the list) should do what you want. Compile with gcc -Wall -Wextra
`pkg-config --cflags --libs xmms2-client` -o foo foo.c or similar.
Regards,
Erik Massop / nesciens
--
_______________________________________________
Xmms2-devel mailing list
[email protected]
http://lists.xmms.se/cgi-bin/mailman/listinfo/xmms2-devel