From f3a4d211875894cf7081a3f93049fccdaaea7dcf Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Wed, 3 Aug 2011 15:50:14 +0100 Subject: [PATCH] buffer: make the COGL_BUFFER casting macro public The CoglBuffer api is available as experimental 2.0 api but we forgot to exposed the COGL_BUFFER casting macro. Reviewed-by: Neil Roberts --- cogl/cogl-buffer-private.h | 2 -- cogl/cogl-buffer.h | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cogl/cogl-buffer-private.h b/cogl/cogl-buffer-private.h index c601f797a..ed324f946 100644 --- a/cogl/cogl-buffer-private.h +++ b/cogl/cogl-buffer-private.h @@ -36,8 +36,6 @@ G_BEGIN_DECLS -#define COGL_BUFFER(buffer) ((CoglBuffer *)(buffer)) - typedef struct _CoglBufferVtable CoglBufferVtable; struct _CoglBufferVtable diff --git a/cogl/cogl-buffer.h b/cogl/cogl-buffer.h index f3b3dbce6..800702e89 100644 --- a/cogl/cogl-buffer.h +++ b/cogl/cogl-buffer.h @@ -74,6 +74,8 @@ G_BEGIN_DECLS #define cogl_buffer_unmap cogl_buffer_unmap_EXP #define cogl_buffer_set_data cogl_buffer_set_data_EXP +#define COGL_BUFFER(buffer) ((CoglBuffer *)(buffer)) + typedef struct _CoglBuffer CoglBuffer; /**