[cogl/lionel/introspection-next: 20/45] index-buffer: add introspection support



commit 301b89d93e123abe7daf4ea53615e3e683260de3
Author: Lionel Landwerlin <llandwerlin gmail com>
Date:   Tue Sep 3 15:30:48 2013 +0100

    index-buffer: add introspection support

 cogl/cogl-index-buffer.c |    2 ++
 cogl/cogl-index-buffer.h |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/cogl/cogl-index-buffer.c b/cogl/cogl-index-buffer.c
index a36c2d2..f34d2df 100644
--- a/cogl/cogl-index-buffer.c
+++ b/cogl/cogl-index-buffer.c
@@ -33,10 +33,12 @@
 #include "cogl-indices.h"
 #include "cogl-indices-private.h"
 #include "cogl-context-private.h"
+#include "cogl-gtype-private.h"
 
 static void _cogl_index_buffer_free (CoglIndexBuffer *indices);
 
 COGL_BUFFER_DEFINE (IndexBuffer, index_buffer);
+COGL_GTYPE_DEFINE_CLASS (IndexBuffer, index_buffer);
 
 /* XXX: Unlike the wiki design this just takes a size. A single
  * indices buffer should be able to contain multiple ranges of indices
diff --git a/cogl/cogl-index-buffer.h b/cogl/cogl-index-buffer.h
index e9fdda9..cb0ac97 100644
--- a/cogl/cogl-index-buffer.h
+++ b/cogl/cogl-index-buffer.h
@@ -47,6 +47,8 @@ COGL_BEGIN_DECLS
 
 typedef struct _CoglIndexBuffer              CoglIndexBuffer;
 
+COGL_GTYPE_DECLARE_TYPE (index_buffer);
+
 /**
  * cogl_index_buffer_new:
  * @context: A #CoglContext


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