[cogl/lionel/introspection: 23/76] framebuffer: add introspection support



commit 8b135979493d8215fb54a8a85a29bffcfabe3fd3
Author: Lionel Landwerlin <llandwerlin gmail com>
Date:   Tue Sep 3 13:44:45 2013 +0100

    framebuffer: add introspection support

 cogl/cogl-framebuffer.c |    2 ++
 cogl/cogl-framebuffer.h |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/cogl/cogl-framebuffer.c b/cogl/cogl-framebuffer.c
index 6b916cc..3d3f7c9 100644
--- a/cogl/cogl-framebuffer.c
+++ b/cogl/cogl-framebuffer.c
@@ -49,6 +49,7 @@
 #include "cogl-primitives-private.h"
 #include "cogl-error-private.h"
 #include "cogl-texture-gl-private.h"
+#include "cogl-gtype-private.h"
 
 typedef struct _CoglFramebufferStackEntry
 {
@@ -68,6 +69,7 @@ COGL_OBJECT_DEFINE_WITH_CODE (Offscreen, offscreen,
                               _cogl_offscreen_class.virt_unref =
                               _cogl_framebuffer_unref);
 COGL_OBJECT_DEFINE_DEPRECATED_REF_COUNTING (offscreen);
+COGL_GTYPE_DEFINE_INTERFACE (Framebuffer, framebuffer);
 
 /* XXX:
  * The CoglObject macros don't support any form of inheritance, so for
diff --git a/cogl/cogl-framebuffer.h b/cogl/cogl-framebuffer.h
index b9f3beb..e10b292 100644
--- a/cogl/cogl-framebuffer.h
+++ b/cogl/cogl-framebuffer.h
@@ -90,6 +90,8 @@ COGL_BEGIN_DECLS
 
 #define COGL_FRAMEBUFFER(X) ((CoglFramebuffer *)(X))
 
+COGL_GTYPE_DECLARE_TYPE (framebuffer);
+
 /**
  * cogl_framebuffer_allocate:
  * @framebuffer: A #CoglFramebuffer


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