[cogl/lionel/introspection: 29/76] context: add introspection support



commit a0ad004fa99482df2fd0ae7710597e61588202a0
Author: Lionel Landwerlin <llandwerlin gmail com>
Date:   Tue Sep 3 13:58:14 2013 +0100

    context: add introspection support

 cogl/cogl-context.c |    2 ++
 cogl/cogl-context.h |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/cogl/cogl-context.c b/cogl/cogl-context.c
index fb3e256..7a22839 100644
--- a/cogl/cogl-context.c
+++ b/cogl/cogl-context.c
@@ -49,6 +49,7 @@
 #include "cogl-gpu-info-private.h"
 #include "cogl-config-private.h"
 #include "cogl-error-private.h"
+#include "cogl-gtype-private.h"
 
 #include <string.h>
 #include <stdlib.h>
@@ -69,6 +70,7 @@
 static void _cogl_context_free (CoglContext *context);
 
 COGL_OBJECT_DEFINE (Context, context);
+COGL_GTYPE_DEFINE_CLASS (Context, context);
 
 extern void
 _cogl_create_context_driver (CoglContext *context);
diff --git a/cogl/cogl-context.h b/cogl/cogl-context.h
index e574bc2..150e850 100644
--- a/cogl/cogl-context.h
+++ b/cogl/cogl-context.h
@@ -91,6 +91,8 @@ COGL_BEGIN_DECLS
 
 #define COGL_CONTEXT(OBJECT) ((CoglContext *)OBJECT)
 
+COGL_GTYPE_DECLARE_TYPE (context);
+
 /**
  * cogl_context_new:
  * @display: A #CoglDisplay pointer


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