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:
David Zeuthen
2010-06-22 12:12:16 -04:00
parent d19380c809
commit 2be38f6926
11 changed files with 18 additions and 121 deletions

View File

@@ -70,14 +70,7 @@ struct _GDBusMethodInvocationClass
/*< 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);
gpointer padding[32];
};
GType g_dbus_method_invocation_get_type (void) G_GNUC_CONST;