pipeline: mark all cogl-pipeline.h symbols experimental

All of the cogl_pipeline API is currently experimental so this makes
sure the API is surrounded by #ifdef COGL_ENABLE_EXPERIMENTAL_API
guards and all the symbols have a #define to give them an _EXP suffix as
we do for other experimental API.

Reviewed-by: Neil Roberts <neil@linux.intel.com>
This commit is contained in:
Robert Bragg 2011-09-08 01:21:24 +01:00
parent db6c452aaa
commit 3c82fd056c

View File

@ -32,6 +32,8 @@ G_BEGIN_DECLS
#include <cogl/cogl-types.h>
#ifdef COGL_ENABLE_EXPERIMENTAL_API
/**
* SECTION:cogl-pipeline
* @short_description: Functions for creating and manipulating the GPU
@ -50,6 +52,7 @@ typedef struct _CoglPipeline CoglPipeline;
#define COGL_PIPELINE(OBJECT) ((CoglPipeline *)OBJECT)
#define cogl_pipeline_new cogl_pipeline_new_EXP
/**
* cogl_pipeline_new:
*
@ -57,10 +60,14 @@ typedef struct _CoglPipeline CoglPipeline;
* a primitive white.
*
* Return value: a pointer to a new #CoglPipeline
*
* Since: 2.0
* Stability: Unstable
*/
CoglPipeline *
cogl_pipeline_new (void);
#define cogl_pipeline_copy cogl_pipeline_copy_EXP
/**
* cogl_pipeline_copy:
* @source: a #CoglPipeline object to copy
@ -77,10 +84,12 @@ cogl_pipeline_new (void);
* Returns: a pointer to the newly allocated #CoglPipeline
*
* Since: 2.0
* Stability: Unstable
*/
CoglPipeline *
cogl_pipeline_copy (CoglPipeline *source);
#define cogl_is_pipeline cogl_is_pipeline_EXP
/**
* cogl_is_pipeline:
* @handle: A CoglHandle
@ -89,12 +98,13 @@ cogl_pipeline_copy (CoglPipeline *source);
*
* Return value: %TRUE if the handle references a #CoglPipeline,
* %FALSE otherwise
*
* Since: 2.0
* Stability: Unstable
*/
gboolean
cogl_is_pipeline (CoglHandle handle);
#ifdef COGL_ENABLE_EXPERIMENTAL_API
/**
* CoglPipelineLayerCallback:
* @pipeline: The #CoglPipeline whos layers are being iterated
@ -111,6 +121,7 @@ typedef gboolean (*CoglPipelineLayerCallback) (CoglPipeline *pipeline,
int layer_index,
void *user_data);
#define cogl_pipeline_foreach_layer cogl_pipeline_foreach_layer_EXP
/**
* cogl_pipeline_foreach_layer:
* @pipeline: A #CoglPipeline object