summaryrefslogtreecommitdiff
path: root/giscanner/scannermain.py
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2013-02-24 03:55:18 -0500
committerColin Walters <walters@verbum.org>2013-02-24 10:32:49 -0500
commit0b013d3cdd26d4a5f048e4df2cc17ffe177bdb21 (patch)
tree1bc26eb9660ff1ef6ae8362d23755828b8193a89 /giscanner/scannermain.py
parent4e39be9319dd48caca02da8aff5979a0855a2992 (diff)
downloadgobject-introspection-0b013d3cdd26d4a5f048e4df2cc17ffe177bdb21.tar.gz
scanner: internals cleanup: Key more things off Namespace
The .gir format has a weird legacy where stuff like the includes are outside of the <namespace>. But conceptually they're tied together, so let's start reflecting this in the code. This way we can just pass around and look at a Namespace object instead of a 4-tuple of (namespace, includes, c_includes, pkg_config). https://bugzilla.gnome.org/show_bug.cgi?id=694593
Diffstat (limited to 'giscanner/scannermain.py')
-rwxr-xr-xgiscanner/scannermain.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/giscanner/scannermain.py b/giscanner/scannermain.py
index 56d73f8c..9ca45a2f 100755
--- a/giscanner/scannermain.py
+++ b/giscanner/scannermain.py
@@ -195,7 +195,6 @@ def passthrough_gir(path, f):
writer = GIRWriter(parser.get_namespace(),
parser.get_shared_libraries(),
- parser.get_includes(),
parser.get_pkgconfig_packages(),
parser.get_c_includes())
f.write(writer.get_xml())
@@ -473,7 +472,7 @@ def scanner_main(args):
else:
exported_packages = options.packages
- writer = Writer(transformer.namespace, shlibs, transformer.get_includes(),
+ writer = Writer(transformer.namespace, shlibs,
exported_packages, options.c_includes)
data = writer.get_xml()