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.
This commit is contained in:
Colin Walters
2009-02-12 18:42:47 -05:00
parent 7299c89fc9
commit 2898d23962
7 changed files with 98 additions and 12 deletions

View File

@@ -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_);