[cogl/lionel/introspection: 8/76] texture-2d: add introspection support



commit c392db6501e8f9fb43797b2c434e5d47c38ba2cd
Author: Lionel Landwerlin <llandwerlin gmail com>
Date:   Tue Sep 3 12:05:28 2013 +0100

    texture-2d: add introspection support

 cogl/cogl-texture-2d.c |    3 +++
 cogl/cogl-texture-2d.h |    2 ++
 2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/cogl/cogl-texture-2d.c b/cogl/cogl-texture-2d.c
index 4147746..e985912 100644
--- a/cogl/cogl-texture-2d.c
+++ b/cogl/cogl-texture-2d.c
@@ -43,6 +43,7 @@
 #ifdef COGL_HAS_EGL_SUPPORT
 #include "cogl-winsys-egl-private.h"
 #endif
+#include "cogl-gtype-private.h"
 
 #include <string.h>
 #include <math.h>
@@ -54,6 +55,8 @@
 static void _cogl_texture_2d_free (CoglTexture2D *tex_2d);
 
 COGL_TEXTURE_DEFINE (Texture2D, texture_2d);
+COGL_GTYPE_DEFINE_CLASS (Texture2D, texture_2d,
+                         COGL_GTYPE_IMPLEMENT_INTERFACE (texture));
 
 static const CoglTextureVtable cogl_texture_2d_vtable;
 
diff --git a/cogl/cogl-texture-2d.h b/cogl/cogl-texture-2d.h
index c1ae57f..a07b521 100644
--- a/cogl/cogl-texture-2d.h
+++ b/cogl/cogl-texture-2d.h
@@ -55,6 +55,8 @@ COGL_BEGIN_DECLS
 typedef struct _CoglTexture2D CoglTexture2D;
 #define COGL_TEXTURE_2D(X) ((CoglTexture2D *)X)
 
+COGL_GTYPE_DECLARE_TYPE (texture_2d);
+
 /**
  * cogl_is_texture_2d:
  * @object: A #CoglObject


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