[PATCH 1/3] test: Add 'sort' parameter
- From: "Juan A. Suarez Romero" <jasuarez igalia com>
- To: grilo-list gnome org
- Subject: [PATCH 1/3] test: Add 'sort' parameter
- Date: Thu, 8 Jul 2010 18:15:47 +0200
---
test/main.c | 46 +++++++++++++++++++++++-----------------------
1 files changed, 23 insertions(+), 23 deletions(-)
diff --git a/test/main.c b/test/main.c
index 734edd2..80ef05f 100644
--- a/test/main.c
+++ b/test/main.c
@@ -328,44 +328,44 @@ main (void)
g_debug ("testing");
- if (0) grl_media_source_browse (youtube, NULL, keys, 0, 5, GRL_RESOLVE_IDLE_RELAY , browse_cb, NULL);
- if (0) grl_media_source_browse (youtube, NULL, keys, 0, 5, GRL_RESOLVE_IDLE_RELAY , browse_cb, NULL);
- if (0) grl_media_source_browse (youtube, media_from_id ("standard-feeds/most-viewed"), keys, 0, 10, GRL_RESOLVE_FAST_ONLY , browse_cb, NULL);
- if (0) grl_media_source_browse (youtube, media_from_id ("categories/Sports"), keys, 0, 5, GRL_RESOLVE_FAST_ONLY, browse_cb, NULL);
- if (0) grl_media_source_search (youtube, "igalia", keys, 0, 5, GRL_RESOLVE_NORMAL, browse_cb, NULL);
- if (0) grl_media_source_search (youtube, "igalia", keys, 1, 10, GRL_RESOLVE_FULL | GRL_RESOLVE_IDLE_RELAY | GRL_RESOLVE_FAST_ONLY, browse_cb, NULL);
+ if (0) grl_media_source_browse (youtube, NULL, keys, NULL, 0, 5, GRL_RESOLVE_IDLE_RELAY , browse_cb, NULL);
+ if (0) grl_media_source_browse (youtube, NULL, keys, NULL, 0, 5, GRL_RESOLVE_IDLE_RELAY , browse_cb, NULL);
+ if (0) grl_media_source_browse (youtube, media_from_id ("standard-feeds/most-viewed"), keys, NULL, 0, 10, GRL_RESOLVE_FAST_ONLY , browse_cb, NULL);
+ if (0) grl_media_source_browse (youtube, media_from_id ("categories/Sports"), keys, NULL, 0, 5, GRL_RESOLVE_FAST_ONLY, browse_cb, NULL);
+ if (0) grl_media_source_search (youtube, "igalia", keys, NULL, 0, 5, GRL_RESOLVE_NORMAL, browse_cb, NULL);
+ if (0) grl_media_source_search (youtube, "igalia", keys, NULL, 1, 10, GRL_RESOLVE_FULL | GRL_RESOLVE_IDLE_RELAY | GRL_RESOLVE_FAST_ONLY, browse_cb, NULL);
if (0) grl_media_source_metadata (youtube, NULL, keys, 0, metadata_cb, NULL);
if (0) grl_media_source_metadata (youtube, NULL, keys, GRL_RESOLVE_IDLE_RELAY | GRL_RESOLVE_FAST_ONLY | GRL_RESOLVE_FULL, metadata_cb, NULL);
if (0) grl_media_source_metadata (youtube, NULL, keys, GRL_RESOLVE_IDLE_RELAY | GRL_RESOLVE_FAST_ONLY , metadata_cb, NULL);
if (0) grl_media_source_metadata (youtube, NULL, keys, 0, metadata_cb, NULL);
- if (0) grl_media_source_browse (fs, media_from_id ("/home"), keys, 0, 100, GRL_RESOLVE_IDLE_RELAY | GRL_RESOLVE_FULL, browse_cb, NULL);
+ if (0) grl_media_source_browse (fs, media_from_id ("/home"), keys, NULL, 0, 100, GRL_RESOLVE_IDLE_RELAY | GRL_RESOLVE_FULL, browse_cb, NULL);
if (0) grl_media_source_metadata (fs, media_from_id ("/home"), keys, GRL_RESOLVE_IDLE_RELAY | GRL_RESOLVE_FULL, metadata_cb, NULL);
- if (0) grl_media_source_search (flickr, "igalia", keys, 1, 10, GRL_RESOLVE_FAST_ONLY, browse_cb, NULL);
+ if (0) grl_media_source_search (flickr, "igalia", keys, NULL, 1, 10, GRL_RESOLVE_FAST_ONLY, browse_cb, NULL);
if (0) grl_media_source_metadata (flickr, media_from_id ("4201406347"), keys, GRL_RESOLVE_IDLE_RELAY | GRL_RESOLVE_FULL, metadata_cb, NULL);
- if (0) grl_media_source_browse (jamendo, NULL, keys, 0, 5, GRL_RESOLVE_IDLE_RELAY , browse_cb, NULL);
- if (0) grl_media_source_browse (jamendo, media_from_id("1"), keys, 0, 5, GRL_RESOLVE_IDLE_RELAY , browse_cb, NULL);
- if (0) grl_media_source_browse (jamendo, media_from_id("1/9"), keys, 0, 5, GRL_RESOLVE_IDLE_RELAY , browse_cb, NULL);
- if (0) grl_media_source_browse (jamendo, media_from_id("2"), keys, -1, 2, GRL_RESOLVE_IDLE_RELAY , browse_cb, NULL);
- if (0) grl_media_source_browse (jamendo, media_from_id("2/25"), keys, -1, 2, GRL_RESOLVE_IDLE_RELAY , browse_cb, NULL);
- if (0) grl_media_source_browse (jamendo, media_from_id("2/1225"), keys, -1, 2, GRL_RESOLVE_IDLE_RELAY , browse_cb, NULL);
- if (0) grl_media_source_browse (jamendo, media_from_id("3/174"), keys, -1, 2, GRL_RESOLVE_IDLE_RELAY , browse_cb, NULL);
+ if (0) grl_media_source_browse (jamendo, NULL, keys, NULL, 0, 5, GRL_RESOLVE_IDLE_RELAY , browse_cb, NULL);
+ if (0) grl_media_source_browse (jamendo, media_from_id("1"), keys, NULL, 0, 5, GRL_RESOLVE_IDLE_RELAY , browse_cb, NULL);
+ if (0) grl_media_source_browse (jamendo, media_from_id("1/9"), keys, NULL, 0, 5, GRL_RESOLVE_IDLE_RELAY , browse_cb, NULL);
+ if (0) grl_media_source_browse (jamendo, media_from_id("2"), keys, NULL, -1, 2, GRL_RESOLVE_IDLE_RELAY , browse_cb, NULL);
+ if (0) grl_media_source_browse (jamendo, media_from_id("2/25"), keys, NULL, -1, 2, GRL_RESOLVE_IDLE_RELAY , browse_cb, NULL);
+ if (0) grl_media_source_browse (jamendo, media_from_id("2/1225"), keys, NULL, -1, 2, GRL_RESOLVE_IDLE_RELAY , browse_cb, NULL);
+ if (0) grl_media_source_browse (jamendo, media_from_id("3/174"), keys, NULL, -1, 2, GRL_RESOLVE_IDLE_RELAY , browse_cb, NULL);
if (0) grl_media_source_metadata (jamendo, NULL, keys, 0, metadata_cb, NULL);
if (0) grl_media_source_metadata (jamendo, media_from_id("1"), keys, 0, metadata_cb, NULL);
if (0) grl_media_source_metadata (jamendo, media_from_id("1/9"), keys, 0, metadata_cb, NULL);
if (0) grl_media_source_metadata (jamendo, media_from_id("2/1225"), keys, 0, metadata_cb, NULL);
if (0) grl_media_source_metadata (jamendo, media_from_id("3/174"), keys, 0, metadata_cb, NULL);
- if (0) grl_media_source_query (jamendo, "artist=shake da", keys, 0, 5, GRL_RESOLVE_FAST_ONLY, browse_cb, NULL);
- if (0) grl_media_source_query (jamendo, "album=Nick", keys, 0, 5, GRL_RESOLVE_FAST_ONLY, browse_cb, NULL);
- if (0) grl_media_source_query (jamendo, "track=asylum mind", keys, 0, 5, GRL_RESOLVE_FAST_ONLY, browse_cb, NULL);
- if (0) grl_media_source_search (jamendo, "next", keys, 0, 5, GRL_RESOLVE_FAST_ONLY, browse_cb, NULL);
- if (0) grl_media_source_browse (shoutcast, NULL, keys, 0, 5, GRL_RESOLVE_IDLE_RELAY , browse_cb, NULL);
- if (0) grl_media_source_browse (shoutcast, media_from_id("American"), keys, 2, 5, GRL_RESOLVE_IDLE_RELAY , browse_cb, NULL);
- if (0) grl_media_source_search (shoutcast, "Roxette", keys, 0, 5, GRL_RESOLVE_FAST_ONLY, browse_cb, NULL);
+ if (0) grl_media_source_query (jamendo, "artist=shake da", keys, NULL, 0, 5, GRL_RESOLVE_FAST_ONLY, browse_cb, NULL);
+ if (0) grl_media_source_query (jamendo, "album=Nick", keys, NULL, 0, 5, GRL_RESOLVE_FAST_ONLY, browse_cb, NULL);
+ if (0) grl_media_source_query (jamendo, "track=asylum mind", keys, NULL, 0, 5, GRL_RESOLVE_FAST_ONLY, browse_cb, NULL);
+ if (0) grl_media_source_search (jamendo, "next", keys, NULL, 0, 5, GRL_RESOLVE_FAST_ONLY, browse_cb, NULL);
+ if (0) grl_media_source_browse (shoutcast, NULL, keys, NULL, 0, 5, GRL_RESOLVE_IDLE_RELAY , browse_cb, NULL);
+ if (0) grl_media_source_browse (shoutcast, media_from_id("American"), keys, NULL, 2, 5, GRL_RESOLVE_IDLE_RELAY , browse_cb, NULL);
+ if (0) grl_media_source_search (shoutcast, "Roxette", keys, NULL, 0, 5, GRL_RESOLVE_FAST_ONLY, browse_cb, NULL);
if (0) grl_media_source_metadata (shoutcast, box_from_id("24hs"), keys, 0, metadata_cb, NULL);
if (0) grl_media_source_metadata (shoutcast, box_from_id("2424hs"), keys, 0, metadata_cb, NULL);
if (0) grl_media_source_metadata (shoutcast, media_from_id("American/556687"), keys, 0, metadata_cb, NULL);
if (0) grl_media_source_metadata (shoutcast, media_from_id("American/556682"), keys, 0, metadata_cb, NULL);
- if (0) grl_media_source_browse (apple_trailers, NULL, keys, 0, 5, GRL_RESOLVE_IDLE_RELAY , browse_cb, NULL);
+ if (0) grl_media_source_browse (apple_trailers, NULL, keys, NULL, 0, 5, GRL_RESOLVE_IDLE_RELAY , browse_cb, NULL);
if (0) {
GrlMedia *media = media_from_id ("test");
grl_data_set_string (GRL_DATA (media),
--
1.7.0.4
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]