Re: [PATCH 1/7] core: Add "content-changed" signal
- From: Iago Toral <itoral igalia com>
- To: <grilo-list gnome org>
- Subject: Re: [PATCH 1/7] core: Add "content-changed" signal
- Date: Wed, 02 Feb 2011 07:21:05 +0000
On Tue, 1 Feb 2011 18:09:06 +0100, "Juan A. Suarez Romero"
<jasuarez igalia com> wrote:
(...)
+/**
+ * GrlMediaSourceChangeType:
+ * @GRL_CONTENT_CHANGED: content has changed. It is used when any
property of
+ * #GrlMedia has changed, or in case of #GrlMediaBox, if several
children has
^^^ have been
+ * been added and removed.
+ * @GRL_CONTENT_ADDED: new content has been added.
+ * @GRL_CONTENT_REMOVED: content has been removed
+ *
+ * Specifies which kind of change has happened in the plugin
+ */
+typedef enum {
+ GRL_CONTENT_CHANGED,
+ GRL_CONTENT_ADDED,
+ GRL_CONTENT_REMOVED,
+} GrlMediaSourceChangeType;
/* GrlMediaSource object */
@@ -382,6 +397,12 @@ struct _GrlMediaSourceClass {
/*< private >*/
gpointer _grl_reserved[GRL_PADDING];
+
+ /* signals */
+ void (*content_changed) (GrlMediaSource *source,
+ GrlMedia *media,
+ GrlMediaSourceChangeType change_type,
+ gboolean location_unknown);
};
Iago
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]