mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-06 07:58:44 +02:00
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:
@@ -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_);
|
||||
|
||||
|
Reference in New Issue
Block a user