diff options
author | Bastien Nocera <hadess@hadess.net> | 2014-05-13 08:39:52 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2015-02-17 13:35:17 +0100 |
commit | c65c68bd8aa302869782e12a6be93494c5909fc1 (patch) | |
tree | 32d7221a2121dc17bd59231735e92823edd3f820 /examples | |
parent | 6329e1be0d3e585ccbdf5d6fbf416c15ce6f93f4 (diff) | |
download | grilo-c65c68bd8aa302869782e12a6be93494c5909fc1.tar.gz |
core: Rename GrlOperationOptions "flags" to "resolution-flags"
And add the associated functions as well. Deprecate the old
functions.
https://bugzilla.gnome.org/show_bug.cgi?id=724308
Diffstat (limited to 'examples')
-rw-r--r-- | examples/browsing-pls.c | 2 | ||||
-rw-r--r-- | examples/browsing.c | 2 | ||||
-rw-r--r-- | examples/efficient-metadata-resolution.c | 4 | ||||
-rw-r--r-- | examples/multivalues.c | 2 | ||||
-rw-r--r-- | examples/searching.c | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/examples/browsing-pls.c b/examples/browsing-pls.c index 9f6ad33..4d07080 100644 --- a/examples/browsing-pls.c +++ b/examples/browsing-pls.c @@ -97,7 +97,7 @@ source_browser (gpointer data, caps = grl_source_get_caps (source, GRL_OP_BROWSE); options = grl_operation_options_new (caps); grl_operation_options_set_count (options, BROWSE_CHUNK_SIZE); - grl_operation_options_set_flags (options, GRL_RESOLVE_IDLE_RELAY); + grl_operation_options_set_resolution_flags (options, GRL_RESOLVE_IDLE_RELAY); media_elements = grl_pls_browse_sync (GRL_SOURCE (source), media, keys, options, diff --git a/examples/browsing.c b/examples/browsing.c index c58f020..3b1606d 100644 --- a/examples/browsing.c +++ b/examples/browsing.c @@ -94,7 +94,7 @@ source_added_cb (GrlRegistry *registry, GrlSource *source, gpointer user_data) caps = grl_source_get_caps (source, GRL_OP_BROWSE); options = grl_operation_options_new (caps); grl_operation_options_set_count (options, 5); - grl_operation_options_set_flags (options, GRL_RESOLVE_IDLE_RELAY); + grl_operation_options_set_resolution_flags (options, GRL_RESOLVE_IDLE_RELAY); grl_source_browse (source, NULL, diff --git a/examples/efficient-metadata-resolution.c b/examples/efficient-metadata-resolution.c index 49412e0..7ba204b 100644 --- a/examples/efficient-metadata-resolution.c +++ b/examples/efficient-metadata-resolution.c @@ -61,7 +61,7 @@ search_cb (GrlSource *source, caps = grl_source_get_caps (source, GRL_OP_RESOLVE); options = grl_operation_options_new (caps); - grl_operation_options_set_flags (options, GRL_RESOLVE_IDLE_RELAY); + grl_operation_options_set_resolution_flags (options, GRL_RESOLVE_IDLE_RELAY); grl_source_resolve (source, media, keys, @@ -96,7 +96,7 @@ source_added_cb (GrlRegistry *registry, GrlSource *source, gpointer user_data) caps = grl_source_get_caps (source, GRL_OP_SEARCH); options = grl_operation_options_new (caps); grl_operation_options_set_count (options, 5); - grl_operation_options_set_flags (options, + grl_operation_options_set_resolution_flags (options, GRL_RESOLVE_IDLE_RELAY | GRL_RESOLVE_FAST_ONLY); diff --git a/examples/multivalues.c b/examples/multivalues.c index 389410d..c5056fd 100644 --- a/examples/multivalues.c +++ b/examples/multivalues.c @@ -74,7 +74,7 @@ source_added_cb (GrlRegistry *registry, GrlSource *source, gpointer user_data) options = grl_operation_options_new (caps); grl_operation_options_set_skip (options, 0); grl_operation_options_set_count (options, 5); - grl_operation_options_set_flags (options, GRL_RESOLVE_IDLE_RELAY); + grl_operation_options_set_resolution_flags (options, GRL_RESOLVE_IDLE_RELAY); g_debug ("Searching \"rock\" in Youtube"); grl_source_search (source, diff --git a/examples/searching.c b/examples/searching.c index bd5c4ae..dab0033 100644 --- a/examples/searching.c +++ b/examples/searching.c @@ -70,7 +70,7 @@ source_added_cb (GrlRegistry *registry, GrlSource *source, gpointer user_data) caps = grl_source_get_caps (source, GRL_OP_SEARCH); options = grl_operation_options_new (caps); grl_operation_options_set_count (options, 5); - grl_operation_options_set_flags (options, GRL_RESOLVE_IDLE_RELAY); + grl_operation_options_set_resolution_flags (options, GRL_RESOLVE_IDLE_RELAY); g_debug ("Searching \"rock\" in Jamendo"); grl_source_search (source, |