[cogl/lionel/introspection-next: 17/45] primitive: add introspection support



commit f8b30b0d259a8d9a2ba5c28f916b325e42fcf5dd
Author: Lionel Landwerlin <llandwerlin gmail com>
Date:   Tue Sep 3 14:23:51 2013 +0100

    primitive: add introspection support

 cogl/cogl-primitive.c |    2 ++
 cogl/cogl-primitive.h |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/cogl/cogl-primitive.c b/cogl/cogl-primitive.c
index 580f4b8..4d7f1d4 100644
--- a/cogl/cogl-primitive.c
+++ b/cogl/cogl-primitive.c
@@ -35,6 +35,7 @@
 #include "cogl-primitive-private.h"
 #include "cogl-attribute-private.h"
 #include "cogl-framebuffer-private.h"
+#include "cogl-gtype-private.h"
 
 #include <stdarg.h>
 #include <string.h>
@@ -42,6 +43,7 @@
 static void _cogl_primitive_free (CoglPrimitive *primitive);
 
 COGL_OBJECT_DEFINE (Primitive, primitive);
+COGL_GTYPE_DEFINE_CLASS (Primitive, primitive);
 
 CoglPrimitive *
 cogl_primitive_new_with_attributes (CoglVerticesMode mode,
diff --git a/cogl/cogl-primitive.h b/cogl/cogl-primitive.h
index 1266fd2..622cb63 100644
--- a/cogl/cogl-primitive.h
+++ b/cogl/cogl-primitive.h
@@ -50,6 +50,8 @@ COGL_BEGIN_DECLS
  * FIXME
  */
 
+COGL_GTYPE_DECLARE_TYPE (primitive);
+
 /**
  * CoglVertexP2:
  * @x: The x component of a position attribute


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