mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-24 02:47:52 +02:00
GDBus: update padding
Add lots of padding for public class structures. Notably, we seemed to lack any padding whatsoever in the GDBusMessageClass struct (spotted by Dan Winship). Also switch to using gpointer padding[N]; instead of void (*_g_reserved1) (void); ... void (*_g_reservedN) (void); Signed-off-by: David Zeuthen <davidz@redhat.com>
This commit is contained in:
@@ -101,25 +101,9 @@ struct _GDBusAuthMechanismClass
|
||||
gsize *out_data_len);
|
||||
void (*client_shutdown) (GDBusAuthMechanism *mechanism);
|
||||
|
||||
|
||||
/*< private >*/
|
||||
/* Padding for future expansion */
|
||||
void (*_g_reserved1) (void);
|
||||
void (*_g_reserved2) (void);
|
||||
void (*_g_reserved3) (void);
|
||||
void (*_g_reserved4) (void);
|
||||
void (*_g_reserved5) (void);
|
||||
void (*_g_reserved6) (void);
|
||||
void (*_g_reserved7) (void);
|
||||
void (*_g_reserved8) (void);
|
||||
void (*_g_reserved9) (void);
|
||||
void (*_g_reserved10) (void);
|
||||
void (*_g_reserved11) (void);
|
||||
void (*_g_reserved12) (void);
|
||||
void (*_g_reserved13) (void);
|
||||
void (*_g_reserved14) (void);
|
||||
void (*_g_reserved15) (void);
|
||||
void (*_g_reserved16) (void);
|
||||
gpointer padding[16];
|
||||
};
|
||||
|
||||
struct _GDBusAuthMechanism
|
||||
|
Reference in New Issue
Block a user