[cogl] texture-2d: move #defines before gtk-doc



commit 21e87a9bf095044873ac187d5ece154411defc78
Author: Robert Bragg <robert linux intel com>
Date:   Wed Aug 24 11:39:30 2011 +0100

    texture-2d: move #defines before gtk-doc
    
    All our experimental Cogl symbols have a corresponding #define to add
    "_EXP" to the end of the symbol name, but those defines are often
    positioned right after the corresponding gtk-doc comment and before
    the symbol definition which means the generated documentation ends up
    refering to the define and not the real definition. This tidies up
    cogl-texture-2d.h and moves all the defines to be be before the gtk-doc
    comments.
    
    Reviewed-by: Neil Roberts <neil linux intel com>

 cogl/cogl-texture-2d.h |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/cogl/cogl-texture-2d.h b/cogl/cogl-texture-2d.h
index 29462bf..2a51664 100644
--- a/cogl/cogl-texture-2d.h
+++ b/cogl/cogl-texture-2d.h
@@ -56,6 +56,7 @@ G_BEGIN_DECLS
 typedef struct _CoglTexture2D CoglTexture2D;
 #define COGL_TEXTURE_2D(X) ((CoglTexture2D *)X)
 
+#define cogl_is_texture_2d cogl_is_texture_2d_EXP
 /**
  * cogl_is_texture_2d:
  * @object: A #CoglObject
@@ -66,10 +67,10 @@ typedef struct _CoglTexture2D CoglTexture2D;
  * Return value: %TRUE if the object references a #CoglTexture2D,
  *   %FALSE otherwise
  */
-#define cogl_is_texture_2d cogl_is_texture_2d_EXP
 gboolean
 cogl_is_texture_2d (void *object);
 
+#define cogl_texture_2d_new_with_size cogl_texture_2d_new_with_size_EXP
 /**
  * cogl_texture_2d_new_with_size:
  * @ctx: A #CoglContext
@@ -96,7 +97,6 @@ cogl_is_texture_2d (void *object);
  *
  * Since: 2.0
  */
-#define cogl_texture_2d_new_with_size cogl_texture_2d_new_with_size_EXP
 CoglTexture2D *
 cogl_texture_2d_new_with_size (CoglContext *ctx,
                                int width,
@@ -104,6 +104,7 @@ cogl_texture_2d_new_with_size (CoglContext *ctx,
                                CoglPixelFormat internal_format,
                                GError **error);
 
+#define cogl_texture_2d_new_from_data cogl_texture_2d_new_from_data_EXP
 /**
  * cogl_texture_2d_new_from_data:
  * @ctx: A #CoglContext
@@ -141,7 +142,6 @@ cogl_texture_2d_new_with_size (CoglContext *ctx,
  *
  * Since: 2.0
  */
-#define cogl_texture_2d_new_from_data cogl_texture_2d_new_from_data_EXP
 CoglTexture2D *
 cogl_texture_2d_new_from_data (CoglContext *ctx,
                                int width,
@@ -152,6 +152,7 @@ cogl_texture_2d_new_from_data (CoglContext *ctx,
                                const guint8 *data,
                                GError **error);
 
+#define cogl_texture_2d_new_from_foreign cogl_texture_2d_new_from_foreign_EXP
 /**
  * cogl_texture_2d_new_from_foreign:
  * @ctx: A #CoglContext
@@ -176,7 +177,6 @@ cogl_texture_2d_new_from_data (CoglContext *ctx,
  *
  * Since: 2.0
  */
-#define cogl_texture_2d_new_from_foreign cogl_texture_2d_new_from_foreign_EXP
 CoglTexture2D *
 cogl_texture_2d_new_from_foreign (CoglContext *ctx,
                                   unsigned int gl_handle,
@@ -186,6 +186,8 @@ cogl_texture_2d_new_from_foreign (CoglContext *ctx,
                                   GError **error);
 
 #ifdef COGL_HAS_WAYLAND_EGL_SERVER_SUPPORT
+#define cogl_wayland_texture_2d_new_from_buffer \
+  cogl_wayland_texture_2d_new_from_buffer_EXP
 /**
  * cogl_wayland_texture_2d_new_from_buffer:
  * @ctx: A #CoglContext
@@ -208,8 +210,6 @@ cogl_texture_2d_new_from_foreign (CoglContext *ctx,
  *          @error.
  * Since: 2.0
  */
-#define cogl_wayland_texture_2d_new_from_buffer \
-  cogl_wayland_texture_2d_new_from_buffer_EXP
 CoglTexture2D *
 cogl_wayland_texture_2d_new_from_buffer (CoglContext *ctx,
                                          struct wl_buffer *buffer,



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