summaryrefslogtreecommitdiff
path: root/girepository/girmodule.c
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2008-08-09 12:55:32 +0000
committerJohan Dahlin <johan@src.gnome.org>2008-08-09 12:55:32 +0000
commitcc78fea77ee35f8417caff0cc5162f37d0a24595 (patch)
treea35b270865f1e2cd935ad08cc2f373b994f4d778 /girepository/girmodule.c
parent8fba41763cdfbb93fbd50f4fd9e2ced9247b94d0 (diff)
downloadgobject-introspection-cc78fea77ee35f8417caff0cc5162f37d0a24595.tar.gz
Rename metadata to typelib in variable names, comments and apis.
2008-08-09 Johan Dahlin <johan@gnome.org> * *.[ch]: Rename metadata to typelib in variable names, comments and apis. svn path=/trunk/; revision=339
Diffstat (limited to 'girepository/girmodule.c')
-rw-r--r--girepository/girmodule.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/girepository/girmodule.c b/girepository/girmodule.c
index 8f09fb4a..46e70f68 100644
--- a/girepository/girmodule.c
+++ b/girepository/girmodule.c
@@ -1,4 +1,4 @@
-/* GObject introspection: Metadata creation
+/* GObject introspection: Typelib creation
*
* Copyright (C) 2005 Matthias Clasen
*
@@ -61,10 +61,10 @@ g_ir_module_free (GIrModule *module)
}
GTypelib *
-g_ir_module_build_metadata (GIrModule *module,
+g_ir_module_build_typelib (GIrModule *module,
GList *modules)
{
- guchar *metadata;
+ guchar *typelib;
gsize length;
gint i;
GList *e;
@@ -190,7 +190,7 @@ g_ir_module_build_metadata (GIrModule *module,
entry->offset = offset;
entry->name = write_string (node->name, strings, data, &offset2);
- g_ir_node_build_metadata (node, module, modules,
+ g_ir_node_build_typelib (node, module, modules,
strings, types, data, &offset, &offset2);
if (offset2 > old_offset + g_ir_node_get_full_size (node))
@@ -208,8 +208,8 @@ g_ir_module_build_metadata (GIrModule *module,
g_message ("reallocating to %d bytes", offset2);
- metadata = g_realloc (data, offset2);
+ typelib = g_realloc (data, offset2);
length = header->size = offset2;
- return g_typelib_new_from_memory (metadata, length);
+ return g_typelib_new_from_memory (typelib, length);
}