[grilo-plugins] all: Port from ..._flags() to ..._resolution_flags()



commit 878a0bf600eab88fde31453b8933d705b65e2ad0
Author: Bastien Nocera <hadess hadess net>
Date:   Tue May 13 00:09:46 2014 +0200

    all: Port from ..._flags() to ..._resolution_flags()
    
    https://bugzilla.gnome.org/show_bug.cgi?id=724308

 src/filesystem/grl-filesystem.c              |    2 +-
 src/lua-factory/grl-lua-library.c            |    2 +-
 src/tmdb/grl-tmdb.c                          |    2 +-
 src/youtube/grl-youtube.c                    |    2 +-
 tests/local-metadata/test_local_metadata.c   |    4 ++--
 tests/tmdb/test_tmdb_fast_resolution.c       |    2 +-
 tests/tmdb/test_tmdb_fast_resolution_by_id.c |    2 +-
 tests/vimeo/test_vimeo.c                     |    8 ++++----
 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,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]