[pygobject/gi-boxed-remove-del: 1/3] boxed: hide the PyGIBoxed struct



commit 68b4dae33d487a1d545581c13e26f7244c358138
Author: Christoph Reiter <reiter christoph gmail com>
Date:   Tue Jan 15 13:50:21 2019 +0100

    boxed: hide the PyGIBoxed struct

 gi/pygi-boxed.c | 6 ++++++
 gi/pygi-boxed.h | 6 +-----
 2 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/gi/pygi-boxed.c b/gi/pygi-boxed.c
index 6a48159f..edbe7d04 100644
--- a/gi/pygi-boxed.c
+++ b/gi/pygi-boxed.c
@@ -28,6 +28,12 @@
 
 #include <girepository.h>
 
+struct _PyGIBoxed {
+    PyGBoxed base;
+    gboolean slice_allocated;
+    gsize size;
+};
+
 static void
 boxed_dealloc (PyGIBoxed *self)
 {
diff --git a/gi/pygi-boxed.h b/gi/pygi-boxed.h
index 4e5efb9d..18c44483 100644
--- a/gi/pygi-boxed.h
+++ b/gi/pygi-boxed.h
@@ -26,11 +26,7 @@
 
 G_BEGIN_DECLS
 
-typedef struct {
-    PyGBoxed base;
-    gboolean slice_allocated;
-    gsize size;
-} PyGIBoxed;
+typedef struct _PyGIBoxed PyGIBoxed;
 
 extern PyTypeObject PyGIBoxed_Type;
 


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