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

@@ -99,6 +99,7 @@ g_type_remove_interface_check
GTypeInterfaceCheckFunc
g_type_value_table_peek
g_type_ensure
g_type_get_type_registration_serial
G_DEFINE_TYPE
G_DEFINE_TYPE_WITH_CODE