diff options
author | Colin Walters <walters@verbum.org> | 2009-02-12 18:42:47 -0500 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2009-03-17 16:29:08 -0400 |
commit | 888566c41b4f0d73ec80307d0418ab1d44c7210c (patch) | |
tree | d144a6bcf51b7e92868de16797e164b85a5ccca1 /girepository/girmodule.h | |
parent | 5dfa997724551ed163fefc11782b7163db3be378 (diff) | |
download | gobject-introspection-888566c41b4f0d73ec80307d0418ab1d44c7210c.tar.gz |
Bug 564016 - Include c:prefix in typelib, use it to optimize find_by_gtype
Parse the c:prefix from the .gir, include it in the header. Armed with this
information, we can now optimize lookups of GTypes because we
have the requirement that GTypes must start with the c:prefix. We do
fall back though if a lookup fails.
Diffstat (limited to 'girepository/girmodule.h')
-rw-r--r-- | girepository/girmodule.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/girepository/girmodule.h b/girepository/girmodule.h index c658e179..5a558c35 100644 --- a/girepository/girmodule.h +++ b/girepository/girmodule.h @@ -34,6 +34,7 @@ struct _GIrModule gchar *name; gchar *version; gchar *shared_library; + gchar *c_prefix; GList *dependencies; GList *entries; @@ -50,7 +51,8 @@ struct _GIrModule GIrModule *g_ir_module_new (const gchar *name, const gchar *nsversion, - const gchar *module_filename); + const gchar *module_filename, + const gchar *c_prefix); void g_ir_module_free (GIrModule *module); void g_ir_module_add_include_module (GIrModule *module, |