[cogl/lionel/introspection-next: 30/44] pixel-buffer: add introspection support
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/lionel/introspection-next: 30/44] pixel-buffer: add introspection support
- Date: Sun, 9 Feb 2014 21:18:24 +0000 (UTC)
commit 26487b2ff93a3d463820d3cc43feb1d3dbb9a63c
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]