[PATCH 3/5] core: rename notify_changed by notify_change
- From: "Juan A. Suarez Romero" <jasuarez igalia com>
- To: grilo-list gnome org
- Subject: [PATCH 3/5] core: rename notify_changed by notify_change
- Date: Tue, 1 Feb 2011 09:07:44 +0100
Signed-off-by: Juan A. Suarez Romero <jasuarez igalia com>
---
src/grl-media-source.c | 36 ++++++++++++++++++------------------
src/grl-media-source.h | 22 +++++++++++-----------
src/grl-metadata-source.h | 4 ++--
3 files changed, 31 insertions(+), 31 deletions(-)
diff --git a/src/grl-media-source.c b/src/grl-media-source.c
index 215b282..1db85d6 100644
--- a/src/grl-media-source.c
+++ b/src/grl-media-source.c
@@ -2045,8 +2045,8 @@ 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)
- caps |= GRL_OP_NOTIFY_CHANGED;
+ if (media_source_class->notify_change_start)
+ caps |= GRL_OP_NOTIFY_CHANGE;
return caps;
}
@@ -2538,7 +2538,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
*
@@ -2547,49 +2547,49 @@ 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
*
* Stops emitting "content-changed" signal.
*/
-void grl_media_source_notify_changed_stop (GrlMediaSource *source)
+void grl_media_source_notify_change_stop (GrlMediaSource *source)
{
g_return_if_fail (GRL_IS_MEDIA_SOURCE (source));
GrlMediaSourceClass *source_class = GRL_MEDIA_SOURCE_GET_CLASS (source);
- if (source_class->notify_changed_stop) {
- source_class->notify_changed_stop (source);
+ if (source_class->notify_change_stop) {
+ source_class->notify_change_stop (source);
}
}
/**
- * 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
* @location_unknown: if change has happpened in @media or any descendant
*
- * Emits "content-changed" signal to notify a changed happend in @source.
+ * Emits "content-changed" signal to notify a change happened in @source.
*
* See GrlMediaSource::content-changed signal
*/
-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 4ccd95a..ef68715 100644
--- a/src/grl-media-source.h
+++ b/src/grl-media-source.h
@@ -363,8 +363,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 to send events about changes in content
- * @notify_changed_stop: stop sending events about changes in content
+ * @notify_change_start: start to send events about changes in content
+ * @notify_change_stop: stop sending events about changes in content
*
* Grilo MediaSource class. Override the vmethods to implement the
* source functionality.
@@ -395,10 +395,10 @@ struct _GrlMediaSourceClass {
void (*media_from_uri) (GrlMediaSource *source,
GrlMediaSourceMediaFromUriSpec *mfss);
- gboolean (*notify_changed_start) (GrlMediaSource *source,
+ gboolean (*notify_change_start) (GrlMediaSource *source,
GError **error);
- void (*notify_changed_stop) (GrlMediaSource *source);
+ void (*notify_change_stop) (GrlMediaSource *source);
/*< private >*/
gpointer _grl_reserved[GRL_PADDING];
@@ -529,15 +529,15 @@ 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_change_start (GrlMediaSource *source,
+ GError **error);
-void grl_media_source_notify_changed_stop (GrlMediaSource *source);
+void grl_media_source_notify_change_stop (GrlMediaSource *source);
-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_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]