From 2fe9e524e9fd4437efee373376b462f953273ecc Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Wed, 11 Sep 2013 00:20:54 +0200 Subject: [PATCH] Added some padding members to both GsweMoment and GsweTimestamp I'd like to keep the ABI as stable as possible. With all the possible additions in my mind, it is still possible I won't be able to keep it, even with this much reserved slots. --- src/gswe-moment.h | 22 ++++++++++++++++++++++ src/gswe-timestamp.h | 22 ++++++++++++++++++++++ 2 files changed, 44 insertions(+) diff --git a/src/gswe-moment.h b/src/gswe-moment.h index 094f74e..ca40a1e 100644 --- a/src/gswe-moment.h +++ b/src/gswe-moment.h @@ -143,6 +143,28 @@ struct _GsweMomentClass { /*< private >*/ void (*changed)(GsweMoment *moment); + + /* Padding for future expansion */ + void (*_swe_glib_reserved1)(void); + void (*_swe_glib_reserved2)(void); + void (*_swe_glib_reserved3)(void); + void (*_swe_glib_reserved4)(void); + void (*_swe_glib_reserved5)(void); + void (*_swe_glib_reserved6)(void); + void (*_swe_glib_reserved7)(void); + void (*_swe_glib_reserved8)(void); + void (*_swe_glib_reserved9)(void); + void (*_swe_glib_reserved10)(void); + void (*_swe_glib_reserved11)(void); + void (*_swe_glib_reserved12)(void); + void (*_swe_glib_reserved13)(void); + void (*_swe_glib_reserved14)(void); + void (*_swe_glib_reserved15)(void); + void (*_swe_glib_reserved16)(void); + void (*_swe_glib_reserved17)(void); + void (*_swe_glib_reserved18)(void); + void (*_swe_glib_reserved19)(void); + void (*_swe_glib_reserved20)(void); }; /* used by GSWE_TYPE_MOMENT */ diff --git a/src/gswe-timestamp.h b/src/gswe-timestamp.h index 1675fcd..77ad45b 100644 --- a/src/gswe-timestamp.h +++ b/src/gswe-timestamp.h @@ -50,6 +50,28 @@ struct _GsweTimestampClass { /* Class members */ /*< private >*/ void (*changed)(GsweTimestamp *self); + + /* Padding for future expansion */ + void (*_swe_glib_reserved1)(void); + void (*_swe_glib_reserved2)(void); + void (*_swe_glib_reserved3)(void); + void (*_swe_glib_reserved4)(void); + void (*_swe_glib_reserved5)(void); + void (*_swe_glib_reserved6)(void); + void (*_swe_glib_reserved7)(void); + void (*_swe_glib_reserved8)(void); + void (*_swe_glib_reserved9)(void); + void (*_swe_glib_reserved10)(void); + void (*_swe_glib_reserved11)(void); + void (*_swe_glib_reserved12)(void); + void (*_swe_glib_reserved13)(void); + void (*_swe_glib_reserved14)(void); + void (*_swe_glib_reserved15)(void); + void (*_swe_glib_reserved16)(void); + void (*_swe_glib_reserved17)(void); + void (*_swe_glib_reserved18)(void); + void (*_swe_glib_reserved19)(void); + void (*_swe_glib_reserved20)(void); }; GType gswe_timestamp_get_type(void);