[cogl/lionel/introspection-next: 13/44] framebuffer: add introspection support
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/lionel/introspection-next: 13/44] framebuffer: add introspection support
- Date: Sun, 9 Feb 2014 21:16:58 +0000 (UTC)
commit 107dc16119d3d2d4b3c34eef1801f75d382a4cfe
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 cb55dbe..681a8f2 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"
extern CoglObjectClass _cogl_onscreen_class;
@@ -62,6 +63,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 f2a96c9..f6f6aa4 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
@@ -1798,4 +1800,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]