summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2014-05-13 00:09:46 +0200
committerBastien Nocera <hadess@hadess.net>2015-02-17 13:30:43 +0100
commit878a0bf600eab88fde31453b8933d705b65e2ad0 (patch)
tree70052c0becb2cb3a23b6c68020900094c529440f
parent4703f3f440447f17a117b58bb92d75908a825216 (diff)
all: Port from ..._flags() to ..._resolution_flags()
https://bugzilla.gnome.org/show_bug.cgi?id=724308
-rw-r--r--src/filesystem/grl-filesystem.c2
-rw-r--r--src/lua-factory/grl-lua-library.c2
-rw-r--r--src/tmdb/grl-tmdb.c2
-rw-r--r--src/youtube/grl-youtube.c2
-rw-r--r--tests/local-metadata/test_local_metadata.c4
-rw-r--r--tests/tmdb/test_tmdb_fast_resolution.c2
-rw-r--r--tests/tmdb/test_tmdb_fast_resolution_by_id.c2
-rw-r--r--tests/vimeo/test_vimeo.c8
8 files changed, 12 insertions, 12 deletions
diff --git a/src/filesystem/grl-filesystem.c b/src/filesystem/grl-filesystem.c
index 915a795..7e40fc2 100644
--- a/src/filesystem/grl-filesystem.c
+++ b/src/filesystem/grl-filesystem.c
@@ -909,7 +909,7 @@ notify_parent_change (GrlSource *source, GFile *child, GrlSourceChangeType chang
fs_source = GRL_FILESYSTEM_SOURCE (source);
options = grl_operation_options_new (NULL);
- grl_operation_options_set_flags (options, GRL_RESOLVE_FAST_ONLY);
+ grl_operation_options_set_resolution_flags (options, GRL_RESOLVE_FAST_ONLY);
parent = g_file_get_parent (child);
diff --git a/src/lua-factory/grl-lua-library.c b/src/lua-factory/grl-lua-library.c
index 73c1b7f..f328b1c 100644
--- a/src/lua-factory/grl-lua-library.c
+++ b/src/lua-factory/grl-lua-library.c
@@ -651,7 +651,7 @@ grl_l_operation_get_options (lua_State *L)
}
if (g_strcmp0 (option, "flags") == 0) {
- GrlResolutionFlags flags = grl_operation_options_get_flags (os->options);
+ GrlResolutionFlags flags = grl_operation_options_get_resolution_flags (os->options);
lua_pushnumber (L, (gint) flags);
return 1;
diff --git a/src/tmdb/grl-tmdb.c b/src/tmdb/grl-tmdb.c
index 28829c4..74892bb 100644
--- a/src/tmdb/grl-tmdb.c
+++ b/src/tmdb/grl-tmdb.c
@@ -1357,7 +1357,7 @@ grl_tmdb_source_resolve (GrlSource *source,
/* Disable slow resolution if slow keys where requested, but the operation
* options explicitly ask for fast resolving only. */
- if (grl_operation_options_get_flags (rs->options) & GRL_RESOLVE_FAST_ONLY)
+ if (grl_operation_options_get_resolution_flags (rs->options) & GRL_RESOLVE_FAST_ONLY)
closure->slow = FALSE;
/* We did not receive the config yet, queue request. Config callback will
diff --git a/src/youtube/grl-youtube.c b/src/youtube/grl-youtube.c
index 141c544..e14aa65 100644
--- a/src/youtube/grl-youtube.c
+++ b/src/youtube/grl-youtube.c
@@ -1427,7 +1427,7 @@ grl_youtube_source_browse (GrlSource *source,
os->operation_id = bs->operation_id;
os->container_id = container_id;
os->keys = bs->keys;
- os->flags = grl_operation_options_get_flags (bs->options);
+ os->flags = grl_operation_options_get_resolution_flags (bs->options);
os->skip = grl_operation_options_get_skip (bs->options);
os->count = grl_operation_options_get_count (bs->options);
os->callback = bs->callback;
diff --git a/tests/local-metadata/test_local_metadata.c b/tests/local-metadata/test_local_metadata.c
index ffdb951..7dbf42c 100644
--- a/tests/local-metadata/test_local_metadata.c
+++ b/tests/local-metadata/test_local_metadata.c
@@ -60,7 +60,7 @@ get_show_for_title (GrlSource *source,
GRL_METADATA_KEY_EPISODE_TITLE,
NULL);
options = grl_operation_options_new (NULL);
- grl_operation_options_set_flags (options, GRL_RESOLVE_FULL);
+ grl_operation_options_set_resolution_flags (options, GRL_RESOLVE_FULL);
grl_source_resolve_sync (source,
media,
@@ -166,7 +166,7 @@ test_title_override (void)
keys = grl_metadata_key_list_new (GRL_METADATA_KEY_TITLE, GRL_METADATA_KEY_SHOW, NULL);
options = grl_operation_options_new (NULL);
- grl_operation_options_set_flags (options, GRL_RESOLVE_FULL);
+ grl_operation_options_set_resolution_flags (options, GRL_RESOLVE_FULL);
grl_source_resolve_sync (source,
media,
diff --git a/tests/tmdb/test_tmdb_fast_resolution.c b/tests/tmdb/test_tmdb_fast_resolution.c
index f8e9105..51c9609 100644
--- a/tests/tmdb/test_tmdb_fast_resolution.c
+++ b/tests/tmdb/test_tmdb_fast_resolution.c
@@ -55,7 +55,7 @@ test_fast_resolution (void)
options = grl_operation_options_new (NULL);
g_assert (options != NULL);
- grl_operation_options_set_flags (options, GRL_RESOLVE_FAST_ONLY);
+ grl_operation_options_set_resolution_flags (options, GRL_RESOLVE_FAST_ONLY);
media = grl_media_video_new ();
g_assert (media != NULL);
diff --git a/tests/tmdb/test_tmdb_fast_resolution_by_id.c b/tests/tmdb/test_tmdb_fast_resolution_by_id.c
index 22ab50b..50d3858 100644
--- a/tests/tmdb/test_tmdb_fast_resolution_by_id.c
+++ b/tests/tmdb/test_tmdb_fast_resolution_by_id.c
@@ -57,7 +57,7 @@ test_fast_resolution_by_id (void)
options = grl_operation_options_new (NULL);
g_assert (options != NULL);
- grl_operation_options_set_flags (options, GRL_RESOLVE_FAST_ONLY);
+ grl_operation_options_set_resolution_flags (options, GRL_RESOLVE_FAST_ONLY);
media = grl_media_video_new ();
g_assert (media != NULL);
diff --git a/tests/vimeo/test_vimeo.c b/tests/vimeo/test_vimeo.c
index b75ab9a..cb420d0 100644
--- a/tests/vimeo/test_vimeo.c
+++ b/tests/vimeo/test_vimeo.c
@@ -62,7 +62,7 @@ test_search_normal (void)
g_assert (source);
options = grl_operation_options_new (NULL);
grl_operation_options_set_count (options, 2);
- grl_operation_options_set_flags (options, GRL_RESOLVE_FAST_ONLY);
+ grl_operation_options_set_resolution_flags (options, GRL_RESOLVE_FAST_ONLY);
g_assert (options);
medias = grl_source_search_sync (source,
@@ -124,7 +124,7 @@ test_search_null (void)
g_assert (source);
options = grl_operation_options_new (NULL);
grl_operation_options_set_count (options, 2);
- grl_operation_options_set_flags (options, GRL_RESOLVE_FAST_ONLY);
+ grl_operation_options_set_resolution_flags (options, GRL_RESOLVE_FAST_ONLY);
g_assert (options);
medias = grl_source_search_sync (source,
@@ -156,7 +156,7 @@ test_search_empty (void)
g_assert (source);
options = grl_operation_options_new (NULL);
grl_operation_options_set_count (options, 2);
- grl_operation_options_set_flags (options, GRL_RESOLVE_FAST_ONLY);
+ grl_operation_options_set_resolution_flags (options, GRL_RESOLVE_FAST_ONLY);
g_assert (options);
medias = grl_source_search_sync (source,
@@ -210,7 +210,7 @@ test_cancel (void)
g_assert (source);
options = grl_operation_options_new (NULL);
grl_operation_options_set_count (options, 2);
- grl_operation_options_set_flags (options, GRL_RESOLVE_FAST_ONLY);
+ grl_operation_options_set_resolution_flags (options, GRL_RESOLVE_FAST_ONLY);
g_assert (options);
grl_source_search (source,