[PATCH 0/5] Content changed notifications



Hello.

This set of patches brings support to notifying about changes in contents from
plugins. It implements the proposal sent some days ago.

Basically, it provides a new signal in media sources, "content-changed".
Clients listen for this signal, which can be turned on or off.

On the other side, plugins optionally implements this signal.

Before a plugin can start to send notifications, clients must activate them
with grl_media_source_notify_change_start(). This function must be
reimplemented by plugins supporting change notifications. It tells them that
they must start to send the notifications.

As a helper, there is a grl_media_source_notify_change() that plugins invoke to
raise the signal. This helper function can receive a NULL media, which will be
transformed in the root media that will be sent in the signal.

For more rationale, see the previous discussions about proposal.

Any comment, suggestion, change, so forth, are welcomed, as usual.

	J.A.
 

*** BLURB HERE ***

Juan A. Suarez Romero (5):
  core: Add "content-changed" signal
  core: Add API to handle "content-changed" signal
  core: rename notify_changed by notify_change
  core: Add default notify_change_stop() behaviour
  core: Add a default root media in notify_change()

 configure.ac                     |    5 ++
 src/Makefile.am                  |   23 +++++++-
 src/grl-error.h                  |    4 +-
 src/grl-marshal.list             |    1 +
 src/grl-media-source.c           |  127 ++++++++++++++++++++++++++++++++++++++
 src/grl-media-source.h           |   37 +++++++++++
 src/grl-metadata-source.h        |    2 +
 src/grl-type-builtins.c.template |   35 ++++++++++
 src/grl-type-builtins.h.template |   24 +++++++
 9 files changed, 256 insertions(+), 2 deletions(-)
 create mode 100644 src/grl-marshal.list
 create mode 100644 src/grl-type-builtins.c.template
 create mode 100644 src/grl-type-builtins.h.template

-- 
1.7.3.5



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