summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2011-01-11 14:26:29 +0100
committerBenjamin Otte <otte@redhat.com>2011-01-11 15:11:05 +0100
commit5d999862113fbc655429a0dd9bd7583ba3848434 (patch)
treecc958c58a20d79efb829e7f60ea6143a805db0c5
parent3f8629d719a43332d9ac31d706920d0bec8746f4 (diff)
downloadgobject-introspection-5d999862113fbc655429a0dd9bd7583ba3848434.tar.gz
scanner: Rename g_irepository_dump when included from the dumper
This avoids a naming conflict when compiling GiRepository.gir, where g_irepository_dump() was defined in an included header.
-rw-r--r--girepository/gdump.c6
-rw-r--r--giscanner/dumper.py2
2 files changed, 5 insertions, 3 deletions
diff --git a/girepository/gdump.c b/girepository/gdump.c
index cdede612..1b9ffd4f 100644
--- a/girepository/gdump.c
+++ b/girepository/gdump.c
@@ -381,10 +381,12 @@ dump_type (GType type, const char *symbol, GOutputStream *out)
* Returns: %TRUE on success, %FALSE on error
*/
#ifndef G_IREPOSITORY_COMPILATION
-static
-#endif
+static gboolean
+dump_irepository (const char *arg, GError **error)
+#else
gboolean
g_irepository_dump (const char *arg, GError **error)
+#endif
{
GHashTable *output_types;
char **args;
diff --git a/giscanner/dumper.py b/giscanner/dumper.py
index 36a88076..fcc00026 100644
--- a/giscanner/dumper.py
+++ b/giscanner/dumper.py
@@ -58,7 +58,7 @@ main(int argc, char **argv)
exit (1);
}
- if (!g_irepository_dump (argv[1] + strlen(introspect_dump_prefix), &error))
+ if (!dump_irepository (argv[1] + strlen(introspect_dump_prefix), &error))
{
g_printerr ("%%s\\n", error->message);
exit (1);