gobject-introspection r178 - in trunk: giscanner tools
- From: johan svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r178 - in trunk: giscanner tools
- Date: Fri, 18 Apr 2008 22:01:02 +0100 (BST)
Author: johan
Date: Fri Apr 18 21:01:02 2008
New Revision: 178
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=178&view=rev
Log:
add a namespace option
Modified:
trunk/giscanner/gidlwriter.py
trunk/tools/g-ir-scanner
Modified: trunk/giscanner/gidlwriter.py
==============================================================================
--- trunk/giscanner/gidlwriter.py (original)
+++ trunk/giscanner/gidlwriter.py Fri Apr 18 21:01:02 2008
@@ -13,7 +13,7 @@
self.pop_tag()
def _write_namespace(self, namespace, nodes):
- self.push_tag('namespace')
+ self.push_tag('namespace', [('name', namespace)])
for node in nodes:
self._write_node(node)
self.pop_tag()
Modified: trunk/tools/g-ir-scanner
==============================================================================
--- trunk/tools/g-ir-scanner (original)
+++ trunk/tools/g-ir-scanner Fri Apr 18 21:01:02 2008
@@ -13,6 +13,9 @@
parser.add_option("-v", "--verbose",
action="store_true", dest="verbose",
help="be verbose")
+ parser.add_option("-n", "--namespace",
+ action="store", dest="namespace",
+ help="namespace of this unit")
group = optparse.OptionGroup(parser, "Preprocessor options")
group.add_option("-I", help="Pre-processor include file",
@@ -45,7 +48,7 @@
ss.parse_macros()
builder = TreeBuilder(ss)
- writer = GIDLWriter('Foo', builder.get_nodes())
+ writer = GIDLWriter(options.namespace, builder.get_nodes())
print writer.get_xml()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]