[cogl/lionel/introspection-next: 12/42] framebuffer: add introspection support
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/lionel/introspection-next: 12/42] framebuffer: add introspection support
- Date: Tue, 10 Dec 2013 21:51:17 +0000 (UTC)
commit f860d45482d7a7dd61890b7a1c9344a6ff3c94dd
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 | 3 ++-
2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/cogl/cogl-framebuffer.c b/cogl/cogl-framebuffer.c
index 1e29bff..825e4b6 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 e802ba5..659527f 100644
--- a/cogl/cogl-framebuffer.h
+++ b/cogl/cogl-framebuffer.h
@@ -96,6 +96,8 @@ COGL_BEGIN_DECLS
#ifdef COGL_ENABLE_EXPERIMENTAL_API
+COGL_GTYPE_DECLARE_TYPE (framebuffer);
+
/**
* cogl_framebuffer_allocate:
* @framebuffer: A #CoglFramebuffer
@@ -1813,4 +1815,3 @@ cogl_is_framebuffer (void *object);
COGL_END_DECLS
#endif /* __COGL_FRAMEBUFFER_H */
-
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]