[cogl/lionel/introspection-next: 29/42] pixel-buffer: add introspection support



commit 61c70e0bb589e2608314e3a90e6742afd1b881c5
Author: Lionel Landwerlin <llandwerlin gmail com>
Date:   Tue Sep 3 16:16:03 2013 +0100

    pixel-buffer: add introspection support

 cogl/cogl-pixel-buffer.c |    2 ++
 cogl/cogl-pixel-buffer.h |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/cogl/cogl-pixel-buffer.c b/cogl/cogl-pixel-buffer.c
index b664ddc..0f97683 100644
--- a/cogl/cogl-pixel-buffer.c
+++ b/cogl/cogl-pixel-buffer.c
@@ -44,6 +44,7 @@
 #include "cogl-object.h"
 #include "cogl-pixel-buffer-private.h"
 #include "cogl-pixel-buffer.h"
+#include "cogl-gtype-private.h"
 
 /*
  * GL/GLES compatibility defines for the buffer API:
@@ -65,6 +66,7 @@ static void
 _cogl_pixel_buffer_free (CoglPixelBuffer *buffer);
 
 COGL_BUFFER_DEFINE (PixelBuffer, pixel_buffer)
+COGL_GTYPE_DEFINE_CLASS (PixelBuffer, pixel_buffer)
 
 static CoglPixelBuffer *
 _cogl_pixel_buffer_new (CoglContext *context,
diff --git a/cogl/cogl-pixel-buffer.h b/cogl/cogl-pixel-buffer.h
index b618efd..fcf3733 100644
--- a/cogl/cogl-pixel-buffer.h
+++ b/cogl/cogl-pixel-buffer.h
@@ -43,6 +43,8 @@ COGL_BEGIN_DECLS
 
 #define COGL_PIXEL_BUFFER(buffer) ((CoglPixelBuffer *)(buffer))
 
+COGL_GTYPE_DECLARE_TYPE (pixel_buffer);
+
 /**
  * cogl_pixel_buffer_new:
  * @context: A #CoglContext


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