[PATCH 0/6] XML to represent plugin's information



This set of patches move the plugin's information out of the code
and into an XML file.
This functionality change was suggested in the following message
to the list:

http://mail.gnome.org/archives/grilo-list/2010-June/msg00020.html

So, the XML should receive the same name as its plugin but with the
.xml extension. Its root element should be pluginInfo and inside this
one each element represents the plugin's info as key (element's tag
name) and value (element's contents) pairs.

Another change that should be mentioned is that now the plugin's name is
set from the XML which means it's optional. (Before, it was mandatory.)

I'll send an example XML and a tweak to the test UI for you to be able to
test these changes.


Cheers,

Joaquim Rocha

Joaquim Rocha (6):
  Add libxml-2.0 dependency
  [grl-plugin-registry] Use a hashtable for plugins' info
  [grl-plugin-registry] Get plugins' info from XML file
  [grl-media-plugin] Add grl_media_plugin_get_info and plugin's keys
    defines
  [grl-media-plugin] Use grl_media_plugin_get_info to retrieve default
    info
  [grl-media-plugin] Add finalize function to GrlMediaPlugin

 configure.ac              |    3 +-
 src/grl-media-plugin.c    |   52 ++++++++++++++++++++++++++++++----
 src/grl-media-plugin.h    |   12 ++++++++
 src/grl-plugin-registry.c |   69 +++++++++++++++++++++++++++++++++++++++++++-
 src/grl-plugin-registry.h |   28 +++---------------
 5 files changed, 132 insertions(+), 32 deletions(-)



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