[cogl/lionel/introspection-next: 14/42] context: add introspection support
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/lionel/introspection-next: 14/42] context: add introspection support
- Date: Tue, 10 Dec 2013 21:51:27 +0000 (UTC)
commit 1e9e2f62a2a85fa426865f2e8717f92afa37a357
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 a240954..8d41bdb 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 8c99bce..a00a56f 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: (constructor)
* @display: (allow-none): A #CoglDisplay pointer
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]