[PATCH 3/4] core: rename notify_changed by notify_change



Signed-off-by: Juan A. Suarez Romero <jasuarez igalia com>
---
 src/grl-media-source.c    |   40 ++++++++++++++++++++--------------------
 src/grl-media-source.h    |   26 +++++++++++++-------------
 src/grl-metadata-source.h |    4 ++--
 3 files changed, 35 insertions(+), 35 deletions(-)

diff --git a/src/grl-media-source.c b/src/grl-media-source.c
index ea9ef0a..07e3c90 100644
--- a/src/grl-media-source.c
+++ b/src/grl-media-source.c
@@ -2043,9 +2043,9 @@ grl_media_source_supported_operations (GrlMetadataSource *metadata_source)
   if (media_source_class->test_media_from_uri &&
       media_source_class->media_from_uri)
     caps |= GRL_OP_MEDIA_FROM_URI;
-  if (media_source_class->notify_changed_start &&
-      media_source_class->notify_changed_stop)
-    caps |= GRL_OP_NOTIFY_CHANGED;
+  if (media_source_class->notify_change_start &&
+      media_source_class->notify_change_stop)
+    caps |= GRL_OP_NOTIFY_CHANGE;
 
   return caps;
 }
@@ -2537,7 +2537,7 @@ grl_media_source_get_media_from_uri_sync (GrlMediaSource *source,
 }
 
 /**
- * grl_media_source_notify_changed_start:
+ * grl_media_source_notify_change_start:
  * @source: a media source
  * @error: a #GError, or @NULL
  *
@@ -2548,19 +2548,19 @@ grl_media_source_get_media_from_uri_sync (GrlMediaSource *source,
  * Returns: @TRUE if initialization has succeed.
  */
 gboolean
-grl_media_source_notify_changed_start (GrlMediaSource *source,
-                                       GError **error)
+grl_media_source_notify_change_start (GrlMediaSource *source,
+                                      GError **error)
 {
   g_return_val_if_fail (GRL_IS_MEDIA_SOURCE (source), FALSE);
   g_return_val_if_fail (grl_media_source_supported_operations (GRL_METADATA_SOURCE (source)) &
-                        GRL_OP_NOTIFY_CHANGED, FALSE);
+                        GRL_OP_NOTIFY_CHANGE, FALSE);
 
-  return GRL_MEDIA_SOURCE_GET_CLASS (source)->notify_changed_start (source,
-                                                                    error);
+  return GRL_MEDIA_SOURCE_GET_CLASS (source)->notify_change_start (source,
+                                                                   error);
 }
 
 /**
- * grl_media_source_notify_changed_stop:
+ * grl_media_source_notify_change_stop:
  * @source: a media source
  * @error: a #GError, or @NULL
  *
@@ -2571,19 +2571,19 @@ grl_media_source_notify_changed_start (GrlMediaSource *source,
  * Returns: @TRUE if stop has succeed.
  */
 gboolean
-grl_media_source_notify_changed_stop (GrlMediaSource *source,
-                                      GError **error)
+grl_media_source_notify_change_stop (GrlMediaSource *source,
+                                     GError **error)
 {
   g_return_val_if_fail (GRL_IS_MEDIA_SOURCE (source), FALSE);
   g_return_val_if_fail (grl_media_source_supported_operations (GRL_METADATA_SOURCE (source)) &
-                        GRL_OP_NOTIFY_CHANGED, FALSE);
+                        GRL_OP_NOTIFY_CHANGE, FALSE);
 
-  return GRL_MEDIA_SOURCE_GET_CLASS (source)->notify_changed_stop (source,
-                                                                   error);
+  return GRL_MEDIA_SOURCE_GET_CLASS (source)->notify_change_stop (source,
+                                                                  error);
 }
 
 /**
- * grl_media_source_notify_changed:
+ * grl_media_source_notify_change:
  * @source: a media source
  * @media: (allow-none): the media which has changed
  * @change_type: the type of change
@@ -2600,10 +2600,10 @@ grl_media_source_notify_changed_stop (GrlMediaSource *source,
  *  </para>
  * </note>
  */
-void grl_media_source_notify_changed (GrlMediaSource *source,
-                                      GrlMedia *media,
-                                      GrlMediaSourceChangeType change_type,
-                                      gboolean location_unknown)
+void grl_media_source_notify_change (GrlMediaSource *source,
+                                     GrlMedia *media,
+                                     GrlMediaSourceChangeType change_type,
+                                     gboolean location_unknown)
 {
   g_return_if_fail (GRL_IS_MEDIA_SOURCE (source));
   g_return_if_fail (!media || GRL_IS_MEDIA (media));
diff --git a/src/grl-media-source.h b/src/grl-media-source.h
index 055d713..e6214f2 100644
--- a/src/grl-media-source.h
+++ b/src/grl-media-source.h
@@ -365,8 +365,8 @@ typedef struct _GrlMediaSourceClass GrlMediaSourceClass;
  * instances from a given URI.
  * @media_from_uri: Creates a #GrlMedia instance representing the media
  * exposed by a certain URI.
- * @notify_changed_start: start emitting signals about changes in content
- * @notify_changed_stop: stop emitting signals about changes in content
+ * @notify_change_start: start emitting signals about changes in content
+ * @notify_change_stop: stop emitting signals about changes in content
  *
  * Grilo MediaSource class. Override the vmethods to implement the
  * source functionality.
@@ -397,11 +397,11 @@ struct _GrlMediaSourceClass {
   void (*media_from_uri) (GrlMediaSource *source,
 			  GrlMediaSourceMediaFromUriSpec *mfss);
 
-  gboolean (*notify_changed_start) (GrlMediaSource *source,
+  gboolean (*notify_change_start) (GrlMediaSource *source,
                                     GError **error);
 
-  gboolean (*notify_changed_stop) (GrlMediaSource *source,
-                                   GError **error);
+  gboolean (*notify_change_stop) (GrlMediaSource *source,
+                                  GError **error);
 
   /*< private >*/
   gpointer _grl_reserved[GRL_PADDING - 3];
@@ -532,16 +532,16 @@ GrlMedia *grl_media_source_get_media_from_uri_sync (GrlMediaSource *source,
                                                     GrlMetadataResolutionFlags flags,
                                                     GError **error);
 
-gboolean grl_media_source_notify_changed_start (GrlMediaSource *source,
-                                                GError **error);
-
-gboolean grl_media_source_notify_changed_stop (GrlMediaSource *source,
+gboolean grl_media_source_notify_change_start (GrlMediaSource *source,
                                                GError **error);
 
-void grl_media_source_notify_changed (GrlMediaSource *source,
-                                      GrlMedia *media,
-                                      GrlMediaSourceChangeType change_type,
-                                      gboolean location_unknown);
+gboolean grl_media_source_notify_change_stop (GrlMediaSource *source,
+                                              GError **error);
+
+void grl_media_source_notify_change (GrlMediaSource *source,
+                                     GrlMedia *media,
+                                     GrlMediaSourceChangeType change_type,
+                                     gboolean location_unknown);
 
 G_END_DECLS
 
diff --git a/src/grl-metadata-source.h b/src/grl-metadata-source.h
index 3da29e9..51e0b4e 100644
--- a/src/grl-metadata-source.h
+++ b/src/grl-metadata-source.h
@@ -205,7 +205,7 @@ typedef struct {
  * @GRL_OP_SET_METADATA: Update metadata of a #GrlMedia in a service.
  * @GRL_OP_MEDIA_FROM_URI: Create a #GrlMedia instance from an URI
  * representing a media resource.
- * @GRL_OP_NOTIFY_CHANGED: Notify about changes in the #GrlMediaSource.
+ * @GRL_OP_NOTIFY_CHANGE: Notify about changes in the #GrlMediaSource.
  *
  * Bitwise flags which reflect the kind of operations that a
  * #GrlMediaPlugin supports.
@@ -222,7 +222,7 @@ typedef enum {
   GRL_OP_REMOVE          = 1 << 7,
   GRL_OP_SET_METADATA    = 1 << 8,
   GRL_OP_MEDIA_FROM_URI  = 1 << 9,
-  GRL_OP_NOTIFY_CHANGED  = 1 << 10,
+  GRL_OP_NOTIFY_CHANGE   = 1 << 10,
 } GrlSupportedOps;
 
 /* GrlMetadataSource class */
-- 
1.7.3.5



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