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/girepository.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/girepository.h')
-rw-r--r-- | girepository/girepository.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/girepository/girepository.h b/girepository/girepository.h index 1058570f..efc6aca0 100644 --- a/girepository/girepository.h +++ b/girepository/girepository.h @@ -108,6 +108,8 @@ const gchar * g_irepository_get_typelib_path (GIRepository *repository, const gchar *namespace_); const gchar * g_irepository_get_shared_library (GIRepository *repository, const gchar *namespace_); +const gchar * g_irepository_get_c_prefix (GIRepository *repository, + const gchar *namespace_); const gchar * g_irepository_get_version (GIRepository *repository, const gchar *namespace_); |