[devhelp] Add padding for future expansion in public Class structs



commit 97964428098b9f0cf269cea6fe4c5340227a41be
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sun Dec 31 23:24:12 2017 +0100

    Add padding for future expansion in public Class structs
    
    The ABI is anyway already broken for this development cycle.

 src/dh-assistant-view.h |    3 +++
 src/dh-book-manager.h   |    3 +++
 src/dh-book-tree.h      |    3 +++
 src/dh-book.h           |    3 +++
 src/dh-keyword-model.h  |    3 +++
 src/dh-sidebar.h        |    3 +++
 6 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/src/dh-assistant-view.h b/src/dh-assistant-view.h
index 752f731..8404b34 100644
--- a/src/dh-assistant-view.h
+++ b/src/dh-assistant-view.h
@@ -43,6 +43,9 @@ struct _DhAssistantView {
 
 struct _DhAssistantViewClass {
         WebKitWebViewClass parent_class;
+
+        /* Padding for future expansion */
+        gpointer padding[12];
 };
 
 GType           dh_assistant_view_get_type              (void) G_GNUC_CONST;
diff --git a/src/dh-book-manager.h b/src/dh-book-manager.h
index 7bf32b0..97e0d0d 100644
--- a/src/dh-book-manager.h
+++ b/src/dh-book-manager.h
@@ -40,6 +40,9 @@ struct _DhBookManager {
 
 struct _DhBookManagerClass {
         GObjectClass parent_class;
+
+        /* Padding for future expansion */
+        gpointer padding[12];
 };
 
 GType           dh_book_manager_get_type                (void) G_GNUC_CONST;
diff --git a/src/dh-book-tree.h b/src/dh-book-tree.h
index 582a296..2399547 100644
--- a/src/dh-book-tree.h
+++ b/src/dh-book-tree.h
@@ -39,6 +39,9 @@ struct _DhBookTree {
 
 struct _DhBookTreeClass {
         GtkTreeViewClass parent_class;
+
+        /* Padding for future expansion */
+        gpointer padding[12];
 };
 
 GType           dh_book_tree_get_type           (void) G_GNUC_CONST;
diff --git a/src/dh-book.h b/src/dh-book.h
index 300cbca..0a38707 100644
--- a/src/dh-book.h
+++ b/src/dh-book.h
@@ -43,6 +43,9 @@ struct _DhBook {
 
 struct _DhBookClass {
         GObjectClass parent_class;
+
+        /* Padding for future expansion */
+        gpointer padding[12];
 };
 
 GType        dh_book_get_type        (void) G_GNUC_CONST;
diff --git a/src/dh-keyword-model.h b/src/dh-keyword-model.h
index a8cf271..7586533 100644
--- a/src/dh-keyword-model.h
+++ b/src/dh-keyword-model.h
@@ -42,6 +42,9 @@ struct _DhKeywordModel {
 
 struct _DhKeywordModelClass {
         GObjectClass parent_class;
+
+        /* Padding for future expansion */
+        gpointer padding[12];
 };
 
 enum {
diff --git a/src/dh-sidebar.h b/src/dh-sidebar.h
index d0972ea..8621e92 100644
--- a/src/dh-sidebar.h
+++ b/src/dh-sidebar.h
@@ -47,6 +47,9 @@ struct _DhSidebarClass {
         /* Signals */
         void (*link_selected) (DhSidebar *sidebar,
                                DhLink    *link);
+
+        /* Padding for future expansion */
+        gpointer padding[12];
 };
 
 GType           dh_sidebar_get_type             (void);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]