[cogl/lionel/introspection-next: 23/45] matrix-stack: add introspection support



commit 95073047f6dfd648ea8b2380417b243d4bb12d96
Author: Lionel Landwerlin <llandwerlin gmail com>
Date:   Tue Sep 3 15:32:57 2013 +0100

    matrix-stack: add introspection support

 cogl/cogl-matrix-stack.c |    3 +++
 cogl/cogl-matrix-stack.h |    3 +++
 2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/cogl/cogl-matrix-stack.c b/cogl/cogl-matrix-stack.c
index 877086e..315f50d 100644
--- a/cogl/cogl-matrix-stack.c
+++ b/cogl/cogl-matrix-stack.c
@@ -37,10 +37,13 @@
 #include "cogl-offscreen.h"
 #include "cogl-matrix-private.h"
 #include "cogl-magazine-private.h"
+#include "cogl-gtype-private.h"
 
 static void _cogl_matrix_stack_free (CoglMatrixStack *stack);
 
 COGL_OBJECT_DEFINE (MatrixStack, matrix_stack);
+COGL_GTYPE_DEFINE_CLASS (MatrixStack, matrix_stack);
+COGL_GTYPE_DEFINE_BOXED ("MatrixEntry", matrix_entry, cogl_matrix_entry_ref, cogl_matrix_entry_unref);
 
 static CoglMagazine *cogl_matrix_stack_magazine;
 static CoglMagazine *cogl_matrix_stack_matrices_magazine;
diff --git a/cogl/cogl-matrix-stack.h b/cogl/cogl-matrix-stack.h
index 4498ec2..1afe8af 100644
--- a/cogl/cogl-matrix-stack.h
+++ b/cogl/cogl-matrix-stack.h
@@ -164,6 +164,9 @@ typedef struct _CoglMatrixStack CoglMatrixStack;
  */
 typedef struct _CoglMatrixEntry CoglMatrixEntry;
 
+COGL_GTYPE_DECLARE_TYPE (matrix_stack);
+COGL_GTYPE_DECLARE_TYPE (matrix_entry);
+
 /**
  * cogl_matrix_stack_new:
  * @ctx: A #CoglContext


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