summaryrefslogtreecommitdiff
path: root/cogl/cogl-buffer.c
diff options
context:
space:
mode:
authorRobert Bragg <robert@linux.intel.com>2010-06-30 18:06:04 +0100
committerRobert Bragg <robert@linux.intel.com>2010-06-30 18:51:31 +0100
commit1000c80444a3d99d0965632a571b9ae19cb8d048 (patch)
tree7af57d09a8111f29507a16a50a42705f7826b02d /cogl/cogl-buffer.c
parenta0a06f0342d3acee95cd4927534fdd5affe46b5c (diff)
downloadcogl-1000c80444a3d99d0965632a571b9ae19cb8d048.tar.gz
cogl: declare experimental symbols consistently
We had several different ways of exposing experimental API, in one case the symbols had no special suffix, in two other ways the symbols were given an _EXP suffix but in different ways. This makes all experimental API have an _EXP suffix which is handled using #defines in the header so the prototypes in the .c and .h files don't have the suffix. The documented reason for the suffix is so that anyone watching Cogl for ABI changes who sees symbols disappear will hopefully understand what's going on.
Diffstat (limited to 'cogl/cogl-buffer.c')
-rw-r--r--cogl/cogl-buffer.c32
1 files changed, 15 insertions, 17 deletions
diff --git a/cogl/cogl-buffer.c b/cogl/cogl-buffer.c
index a3ede8f4..89c5132a 100644
--- a/cogl/cogl-buffer.c
+++ b/cogl/cogl-buffer.c
@@ -68,10 +68,8 @@
#endif
-void cogl_buffer_unmap_EXP (CoglBuffer *buffer);
-
gboolean
-cogl_is_buffer_EXP (const void *object)
+cogl_is_buffer (const void *object)
{
CoglObject *obj = (CoglObject *)object;
@@ -177,7 +175,7 @@ _cogl_buffer_bind (CoglBuffer *buffer,
}
unsigned int
-cogl_buffer_get_size_EXP (CoglBuffer *buffer)
+cogl_buffer_get_size (CoglBuffer *buffer)
{
if (!cogl_is_buffer (buffer))
return 0;
@@ -186,8 +184,8 @@ cogl_buffer_get_size_EXP (CoglBuffer *buffer)
}
void
-cogl_buffer_set_usage_hint_EXP (CoglBuffer *buffer,
- CoglBufferUsageHint hint)
+cogl_buffer_set_usage_hint (CoglBuffer *buffer,
+ CoglBufferUsageHint hint)
{
if (!cogl_is_buffer (buffer))
return;
@@ -199,7 +197,7 @@ cogl_buffer_set_usage_hint_EXP (CoglBuffer *buffer,
}
CoglBufferUsageHint
-cogl_buffer_get_usage_hint_EXP (CoglBuffer *buffer)
+cogl_buffer_get_usage_hint (CoglBuffer *buffer)
{
if (!cogl_is_buffer (buffer))
return FALSE;
@@ -208,8 +206,8 @@ cogl_buffer_get_usage_hint_EXP (CoglBuffer *buffer)
}
void
-cogl_buffer_set_update_hint_EXP (CoglBuffer *buffer,
- CoglBufferUpdateHint hint)
+cogl_buffer_set_update_hint (CoglBuffer *buffer,
+ CoglBufferUpdateHint hint)
{
if (!cogl_is_buffer (buffer))
return;
@@ -221,7 +219,7 @@ cogl_buffer_set_update_hint_EXP (CoglBuffer *buffer,
}
CoglBufferUpdateHint
-cogl_buffer_get_update_hint_EXP (CoglBuffer *buffer)
+cogl_buffer_get_update_hint (CoglBuffer *buffer)
{
if (!cogl_is_buffer (buffer))
return FALSE;
@@ -230,8 +228,8 @@ cogl_buffer_get_update_hint_EXP (CoglBuffer *buffer)
}
guint8 *
-cogl_buffer_map_EXP (CoglBuffer *buffer,
- CoglBufferAccess access)
+cogl_buffer_map (CoglBuffer *buffer,
+ CoglBufferAccess access)
{
if (!cogl_is_buffer (buffer))
return NULL;
@@ -244,7 +242,7 @@ cogl_buffer_map_EXP (CoglBuffer *buffer,
}
void
-cogl_buffer_unmap_EXP (CoglBuffer *buffer)
+cogl_buffer_unmap (CoglBuffer *buffer)
{
if (!cogl_is_buffer (buffer))
return;
@@ -256,10 +254,10 @@ cogl_buffer_unmap_EXP (CoglBuffer *buffer)
}
gboolean
-cogl_buffer_set_data_EXP (CoglBuffer *buffer,
- gsize offset,
- const guint8 *data,
- gsize size)
+cogl_buffer_set_data (CoglBuffer *buffer,
+ gsize offset,
+ const guint8 *data,
+ gsize size)
{
if (!cogl_is_buffer (buffer))
return FALSE;