[PATCH 0/3] RFC: JavaScript alternative branch and GObject Introspection
- From: Simón Pena <spenap gmail com>
- To: grilo-list gnome org
- Subject: [PATCH 0/3] RFC: JavaScript alternative branch and GObject Introspection
- Date: Mon, 4 Oct 2010 20:33:57 +0200
Hi all,
Right now, Grilo's GObject Introspection support is mostly complete:
most of the API has been revised and annotated, and is accessible
(and has been tested) from PyGObject.
However, as we're using GParamSpecs to store our metadata keys,
and that data type isn't supported in JavaScript (see bug #626047),
JS developers can't benefit from Grilo's GI.
While (I've been told[1] that) the fix for this issue would imply having a
Boxed type for the ParamSpec, as a (hack) workaround we can annotate
the metadata keys as uints.
These patch do that:
* replace ParamSpec annotations with uints
* update the existing JS example to showcase the search method and
* provide a JS clone of grl-inspect
What I suggest with this patches is to create a branch in the repository:
either in gitorious or in the GNOME infrastructure. Besides, I think we
should close bug #616961 (about Grilo's lack of introspection data), and
open a specific one about JavaScript's lack of support for GrlKeyIDs,
marking it as blocked by JavaScript's one. What do you think?
Cheers,
Simon
[1] http://rotty.yi.org/irclogs/gnome/%23introspection/2010-09-30/#e215
Simón Pena (3):
annotations: replaced GObject.ParamSpec with uint
js: updated example
js: cloned grl-inspect in JavaScript
src/data/grl-data.c | 26 ++++----
src/grl-media-source.c | 16 +++---
src/grl-metadata-key.c | 4 +-
src/grl-metadata-source.c | 32 +++++-----
src/grl-metadata-source.h | 2 +-
src/grl-multiple.c | 4 +-
src/grl-plugin-registry.c | 6 +-
tools/js/grl-inspect.js | 153 +++++++++++++++++++++++++++++++++++++++++++++
tools/js/testGrilo.js | 16 +++--
9 files changed, 209 insertions(+), 50 deletions(-)
create mode 100644 tools/js/grl-inspect.js
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]