[cogl/lionel/introspection-next: 5/44] texture-2d: add introspection support



commit ce311afb4aced44aa8c2f77b33d6794135bd0dc8
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 2c8e780..1025aff 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 ae30b15..5ea27a7 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]