mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-23 10:27:51 +02:00
GType: add accessor for instance private offset
Since instance private data is now always at a constant offset to the instance pointer, we can add an accessor for it that doesn't also require an instance. The idea is that classes can call this from their class_init and store it in a file-scoped static variable and use that to find their private data on instances very quickly, without a priv pointer. https://bugzilla.gnome.org/show_bug.cgi?id=698056
This commit is contained in:
@@ -125,6 +125,7 @@ g_type_check_is_value_type
|
||||
g_type_check_value
|
||||
g_type_check_value_holds
|
||||
g_type_instance_get_private
|
||||
g_type_class_get_instance_private_offset
|
||||
g_type_class_get_private
|
||||
g_type_test_flags
|
||||
g_type_name_from_instance
|
||||
|
Reference in New Issue
Block a user