Add g_type_get_type_registration_serial()

This lets you cache type lookup information and then know when
the cache information is out of date. In particular, we want this
in order to be able to cache g_type_from_name() lookups in the Gtk+
theme machinery.

https://bugzilla.gnome.org/show_bug.cgi?id=689847
This commit is contained in:
Alexander Larsson
2012-12-07 17:34:52 +01:00
parent d77948eadf
commit e218b96a6b
4 changed files with 28 additions and 0 deletions

View File

@@ -1263,6 +1263,9 @@ gpointer g_type_class_get_private (GTypeClass *klass,
GLIB_AVAILABLE_IN_2_34
void g_type_ensure (GType type);
GLIB_AVAILABLE_IN_2_36
guint g_type_get_type_registration_serial (void);
/* --- GType boilerplate --- */
/**