mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
Deprecate g_type_class_add_private()
It's been 4 years and 8 development cycles since we introduced G_ADD_PRIVATE and offset-based private data access. It is now time to finally deprecate the old mechanism. Closes: #699
This commit is contained in:
@@ -76,7 +76,7 @@
|
||||
*
|
||||
* Type instance and class structs are limited to a total of 64 KiB,
|
||||
* including all parent types. Similarly, type instances' private data
|
||||
* (as created by g_type_class_add_private()) are limited to a total of
|
||||
* (as created by G_ADD_PRIVATE()) are limited to a total of
|
||||
* 64 KiB. If a type instance needs a large static buffer, allocate it
|
||||
* separately (typically by using #GArray or #GPtrArray) and put a pointer
|
||||
* to the buffer in the structure.
|
||||
@@ -4562,6 +4562,8 @@ gobject_init_ctor (void)
|
||||
* ]|
|
||||
*
|
||||
* Since: 2.4
|
||||
* Deprecated: 2.58: Use the G_ADD_PRIVATE() macro with the `G_DEFINE_*`
|
||||
* family of macros to add instance private data to a type
|
||||
*/
|
||||
void
|
||||
g_type_class_add_private (gpointer g_class,
|
||||
|
Reference in New Issue
Block a user