This looks good to land to me:<div><br></div><div>Reviewed-by: Robert Bragg <<a href="mailto:robert@linux.intel.com">robert@linux.intel.com</a>></div><div><br></div><div>thanks,</div><div>- Robert</div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Thu, Nov 22, 2012 at 6:01 PM, Neil Roberts <span dir="ltr"><<a href="mailto:neil@linux.intel.com" target="_blank">neil@linux.intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This fixes some problems which were stopping --disable-glib from<br>
working properly:<br>
<br>
• A lot of the public headers were including glib.h. This shouldn't be<br>
necessary because the API doesn't expose any glib types. Otherwise<br>
any apps would require glib in order to get the header.<br>
<br>
• The public headers were using G_BEGIN_DECLS. There is now a<br>
replacement macro called COGL_BEGIN_DECLS which is defined in<br>
cogl-types.h.<br>
<br>
• A similar fix has been done for G_GNUC_NULL_TERMINATED and<br>
G_GNUC_DEPRECATED.<br>
<br>
• The CFLAGS were not including $(builddir)/deps/glib which was<br>
preventing it finding the generated glibconfig.h when building out<br>
of tree.<br>
---<br>
cogl-pango/cogl-pango-display-list.h | 4 ++--<br>
cogl-pango/cogl-pango-glyph-cache.h | 4 ++--<br>
cogl-pango/cogl-pango-pipeline-cache.h | 4 ++--<br>
cogl-pango/cogl-pango-private.h | 4 ++--<br>
cogl-pango/cogl-pango.h | 4 ++--<br>
cogl/cogl-attribute-buffer.h | 4 ++--<br>
cogl/cogl-attribute.h | 4 ++--<br>
cogl/cogl-bitmap.h | 4 ++--<br>
cogl/cogl-bitmask.h | 4 ++--<br>
cogl/cogl-buffer-private.h | 4 ++--<br>
cogl/cogl-buffer.h | 5 ++---<br>
cogl/cogl-clip-state.h | 4 ++--<br>
cogl/cogl-clutter-xlib.h | 4 ++--<br>
cogl/cogl-clutter.h | 4 ++--<br>
cogl/cogl-color.h | 4 ++--<br>
cogl/cogl-context.h | 4 ++--<br>
cogl/cogl-debug.h | 4 ++--<br>
cogl/<a href="http://cogl-defines.h.in" target="_blank">cogl-defines.h.in</a> | 6 ------<br>
cogl/cogl-depth-state.h | 4 ++--<br>
cogl/cogl-display.h | 4 ++--<br>
cogl/cogl-egl.h | 4 ++--<br>
cogl/cogl-euler.h | 6 ++----<br>
cogl/cogl-flags.h | 4 ++--<br>
cogl/cogl-framebuffer.h | 10 ++++------<br>
cogl/cogl-gles2.h | 4 ++--<br>
cogl/cogl-index-buffer.h | 4 ++--<br>
cogl/cogl-indices.h | 4 ++--<br>
cogl/cogl-kms-display.h | 4 ++--<br>
cogl/cogl-kms-renderer.h | 4 ++--<br>
cogl/cogl-magazine-private.h | 8 --------<br>
cogl/cogl-matrix-private.h | 4 ++--<br>
cogl/cogl-matrix.h | 9 ++++++---<br>
cogl/cogl-memory-stack-private.h | 10 +---------<br>
cogl/cogl-meta-texture.h | 5 ++---<br>
cogl/cogl-offscreen.h | 4 ++--<br>
cogl/cogl-onscreen-template.h | 4 ++--<br>
cogl/cogl-onscreen.h | 5 ++---<br>
cogl/cogl-path.h | 4 ++--<br>
cogl/cogl-pipeline-layer-state.h | 5 ++---<br>
cogl/cogl-pipeline-snippet-private.h | 2 ++<br>
cogl/cogl-pipeline-state.h | 5 ++---<br>
cogl/cogl-pipeline.h | 4 ++--<br>
cogl/cogl-pixel-buffer-private.h | 4 ++--<br>
cogl/cogl-pixel-buffer.h | 5 ++---<br>
cogl/cogl-point-in-poly-private.h | 4 ++--<br>
cogl/cogl-poll.h | 5 ++---<br>
cogl/cogl-primitive-texture.h | 4 ++--<br>
cogl/cogl-primitive.h | 4 ++--<br>
cogl/cogl-primitives-private.h | 4 ++--<br>
cogl/cogl-private.h | 4 ++--<br>
cogl/cogl-quaternion.h | 4 ++--<br>
cogl/cogl-rectangle-map.h | 1 +<br>
cogl/cogl-renderer.h | 6 ++----<br>
cogl/cogl-sdl.h | 4 ++--<br>
cogl/cogl-snippet.h | 6 ++----<br>
cogl/cogl-sub-texture.h | 6 ++----<br>
cogl/cogl-swap-chain.h | 4 ++--<br>
cogl/cogl-texture-2d-gl.h | 6 ++----<br>
cogl/cogl-texture-2d-sliced.h | 2 --<br>
cogl/cogl-texture-2d.h | 6 ++----<br>
cogl/cogl-texture-3d.h | 6 ++----<br>
cogl/cogl-texture-rectangle.h | 4 ++--<br>
cogl/cogl-texture.h | 4 ++--<br>
cogl/cogl-types.h | 28 +++++++++++++++++++++++++---<br>
cogl/cogl-vector.h | 6 ++----<br>
cogl/cogl-wayland-client.h | 2 --<br>
cogl/cogl-wayland-renderer.h | 4 ++--<br>
cogl/cogl-wayland-server.h | 6 ++----<br>
cogl/cogl-win32-renderer.h | 4 ++--<br>
cogl/cogl-xlib-renderer.h | 5 ++---<br>
cogl/cogl-xlib.h | 6 +++---<br>
cogl/cogl.h | 2 --<br>
cogl/cogl1-context.h | 10 ++++------<br>
cogl/winsys/cogl-texture-pixmap-x11.h | 6 ++----<br>
<a href="http://configure.ac" target="_blank">configure.ac</a> | 3 +++<br>
tests/conform/test-utils.h | 2 ++<br>
76 files changed, 173 insertions(+), 200 deletions(-)<br>
<br>
diff --git a/cogl-pango/cogl-pango-display-list.h b/cogl-pango/cogl-pango-display-list.h<br>
index 762fdef..28ac4fd 100644<br>
--- a/cogl-pango/cogl-pango-display-list.h<br>
+++ b/cogl-pango/cogl-pango-display-list.h<br>
@@ -28,7 +28,7 @@<br>
#include <cogl/cogl.h><br>
#include "cogl-pango-pipeline-cache.h"<br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
typedef struct _CoglPangoDisplayList CoglPangoDisplayList;<br>
<br>
@@ -75,6 +75,6 @@ _cogl_pango_display_list_clear (CoglPangoDisplayList *dl);<br>
void<br>
_cogl_pango_display_list_free (CoglPangoDisplayList *dl);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_PANGO_DISPLAY_LIST_H__ */<br>
diff --git a/cogl-pango/cogl-pango-glyph-cache.h b/cogl-pango/cogl-pango-glyph-cache.h<br>
index ba0f0de..5ab0572 100644<br>
--- a/cogl-pango/cogl-pango-glyph-cache.h<br>
+++ b/cogl-pango/cogl-pango-glyph-cache.h<br>
@@ -28,7 +28,7 @@<br>
#include <cogl/cogl.h><br>
#include <pango/pango-font.h><br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
typedef struct _CoglPangoGlyphCache CoglPangoGlyphCache;<br>
typedef struct _CoglPangoGlyphCacheValue CoglPangoGlyphCacheValue;<br>
@@ -88,6 +88,6 @@ void<br>
_cogl_pango_glyph_cache_set_dirty_glyphs (CoglPangoGlyphCache *cache,<br>
CoglPangoGlyphCacheDirtyFunc func);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_PANGO_GLYPH_CACHE_H__ */<br>
diff --git a/cogl-pango/cogl-pango-pipeline-cache.h b/cogl-pango/cogl-pango-pipeline-cache.h<br>
index da30c75..615eaf9 100644<br>
--- a/cogl-pango/cogl-pango-pipeline-cache.h<br>
+++ b/cogl-pango/cogl-pango-pipeline-cache.h<br>
@@ -31,7 +31,7 @@<br>
#include <glib.h><br>
#include <cogl/cogl.h><br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
typedef struct _CoglPangoPipelineCache CoglPangoPipelineCache;<br>
<br>
@@ -49,6 +49,6 @@ _cogl_pango_pipeline_cache_get (CoglPangoPipelineCache *cache,<br>
void<br>
_cogl_pango_pipeline_cache_free (CoglPangoPipelineCache *cache);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_PANGO_PIPELINE_CACHE_H__ */<br>
diff --git a/cogl-pango/cogl-pango-private.h b/cogl-pango/cogl-pango-private.h<br>
index 1095221..91285ec 100644<br>
--- a/cogl-pango/cogl-pango-private.h<br>
+++ b/cogl-pango/cogl-pango-private.h<br>
@@ -32,7 +32,7 @@<br>
<br>
#include "cogl-pango.h"<br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
#define COGL_PANGO_TYPE_RENDERER (_cogl_pango_renderer_get_type ())<br>
#define COGL_PANGO_RENDERER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), COGL_PANGO_TYPE_RENDERER, CoglPangoRenderer))<br>
@@ -68,6 +68,6 @@ _cogl_pango_font_map_get_cogl_context (CoglPangoFontMap *fm);<br>
PangoRenderer *<br>
_cogl_pango_font_map_get_renderer (CoglPangoFontMap *fm);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_PANGO_PRIVATE_H__ */<br>
diff --git a/cogl-pango/cogl-pango.h b/cogl-pango/cogl-pango.h<br>
index 6d82dc5..9feff0c 100644<br>
--- a/cogl-pango/cogl-pango.h<br>
+++ b/cogl-pango/cogl-pango.h<br>
@@ -34,7 +34,7 @@<br>
#include <pango/pangocairo.h><br>
#include <cogl/cogl.h><br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
/* It's too difficult to actually subclass the pango cairo font<br>
* map. Instead we just make a fake set of macros that actually just<br>
@@ -172,6 +172,6 @@ cogl_pango_show_layout_line (CoglFramebuffer *framebuffer,<br>
float y,<br>
const CoglColor *color);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_PANGO_H__ */<br>
diff --git a/cogl/cogl-attribute-buffer.h b/cogl/cogl-attribute-buffer.h<br>
index bb69063..7b593e5 100644<br>
--- a/cogl/cogl-attribute-buffer.h<br>
+++ b/cogl/cogl-attribute-buffer.h<br>
@@ -38,7 +38,7 @@ typedef struct _CoglAttributeBuffer CoglAttributeBuffer;<br>
<br>
#include <cogl/cogl-context.h><br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
/**<br>
* SECTION:cogl-attribute-buffer<br>
@@ -86,7 +86,7 @@ cogl_attribute_buffer_new (CoglContext *context,<br>
CoglBool<br>
cogl_is_attribute_buffer (void *object);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_ATTRIBUTE_BUFFER_H__ */<br>
<br>
diff --git a/cogl/cogl-attribute.h b/cogl/cogl-attribute.h<br>
index 1fd3649..580446e 100644<br>
--- a/cogl/cogl-attribute.h<br>
+++ b/cogl/cogl-attribute.h<br>
@@ -39,7 +39,7 @@ typedef struct _CoglAttribute CoglAttribute;<br>
#include <cogl/cogl-attribute-buffer.h><br>
#include <cogl/cogl-indices.h><br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
/**<br>
* SECTION:cogl-attribute<br>
@@ -526,7 +526,7 @@ cogl_attribute_set_buffer (CoglAttribute *attribute,<br>
CoglBool<br>
cogl_is_attribute (void *object);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_ATTRIBUTE_H__ */<br>
<br>
diff --git a/cogl/cogl-bitmap.h b/cogl/cogl-bitmap.h<br>
index 9aeaeb4..e26aa0d 100644<br>
--- a/cogl/cogl-bitmap.h<br>
+++ b/cogl/cogl-bitmap.h<br>
@@ -37,7 +37,7 @@<br>
#include <android/asset_manager.h><br>
#endif<br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
typedef struct _CoglBitmap CoglBitmap;<br>
<br>
@@ -307,6 +307,6 @@ typedef enum {<br>
<br>
uint32_t cogl_bitmap_error_domain (void);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_BITMAP_H__ */<br>
diff --git a/cogl/cogl-bitmask.h b/cogl/cogl-bitmask.h<br>
index dd238e7..78f6fa6 100644<br>
--- a/cogl/cogl-bitmask.h<br>
+++ b/cogl/cogl-bitmask.h<br>
@@ -30,7 +30,7 @@<br>
#include <glib.h><br>
#include "cogl-util.h"<br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
/*<br>
* CoglBitmask implements a growable array of bits. A CoglBitmask can<br>
@@ -302,6 +302,6 @@ _cogl_bitmask_popcount_upto (const CoglBitmask *bitmask,<br>
((1UL << upto) - 1));<br>
}<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_BITMASK_H */<br>
diff --git a/cogl/cogl-buffer-private.h b/cogl/cogl-buffer-private.h<br>
index 4b21fa3..07a1490 100644<br>
--- a/cogl/cogl-buffer-private.h<br>
+++ b/cogl/cogl-buffer-private.h<br>
@@ -35,7 +35,7 @@<br>
#include "cogl-context.h"<br>
#include "cogl-gl-header.h"<br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
typedef struct _CoglBufferVtable CoglBufferVtable;<br>
<br>
@@ -153,6 +153,6 @@ _cogl_buffer_map_for_fill_or_fallback (CoglBuffer *buffer);<br>
void<br>
_cogl_buffer_unmap_for_fill_or_fallback (CoglBuffer *buffer);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_BUFFER_PRIVATE_H__ */<br>
diff --git a/cogl/cogl-buffer.h b/cogl/cogl-buffer.h<br>
index 217de11..54c15af 100644<br>
--- a/cogl/cogl-buffer.h<br>
+++ b/cogl/cogl-buffer.h<br>
@@ -32,10 +32,9 @@<br>
#ifndef __COGL_BUFFER_H__<br>
#define __COGL_BUFFER_H__<br>
<br>
-#include <glib.h><br>
#include <cogl/cogl-types.h><br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
/**<br>
* SECTION:cogl-buffer<br>
@@ -283,6 +282,6 @@ cogl_buffer_set_data (CoglBuffer *buffer,<br>
const void *data,<br>
size_t size);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_BUFFER_H__ */<br>
diff --git a/cogl/cogl-clip-state.h b/cogl/cogl-clip-state.h<br>
index 256c8c0..2d71fbf 100644<br>
--- a/cogl/cogl-clip-state.h<br>
+++ b/cogl/cogl-clip-state.h<br>
@@ -30,8 +30,8 @@<br>
<br>
#include <cogl/cogl-types.h><br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_CLIP_STATE_H */<br>
diff --git a/cogl/cogl-clutter-xlib.h b/cogl/cogl-clutter-xlib.h<br>
index 6c08f58..67c27b6 100644<br>
--- a/cogl/cogl-clutter-xlib.h<br>
+++ b/cogl/cogl-clutter-xlib.h<br>
@@ -30,12 +30,12 @@<br>
<br>
#include <X11/Xutil.h><br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
#define cogl_clutter_winsys_xlib_get_visual_info cogl_clutter_winsys_xlib_get_visual_info_CLUTTER<br>
XVisualInfo *<br>
cogl_clutter_winsys_xlib_get_visual_info (void);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_CLUTTER_XLIB_H__ */<br>
diff --git a/cogl/cogl-clutter.h b/cogl/cogl-clutter.h<br>
index 2673888..c3dfbe6 100644<br>
--- a/cogl/cogl-clutter.h<br>
+++ b/cogl/cogl-clutter.h<br>
@@ -28,7 +28,7 @@<br>
#ifndef __COGL_CLUTTER_H__<br>
#define __COGL_CLUTTER_H__<br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
#define cogl_clutter_check_extension cogl_clutter_check_extension_CLUTTER<br>
CoglBool<br>
@@ -42,6 +42,6 @@ cogl_clutter_winsys_has_feature (CoglWinsysFeature feature);<br>
void<br>
cogl_onscreen_clutter_backend_set_size (int width, int height);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_CLUTTER_H__ */<br>
diff --git a/cogl/cogl-color.h b/cogl/cogl-color.h<br>
index 3c2dd66..0a41cca 100644<br>
--- a/cogl/cogl-color.h<br>
+++ b/cogl/cogl-color.h<br>
@@ -40,7 +40,7 @@<br>
<br>
#include <cogl/cogl-types.h><br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
/**<br>
* cogl_color_init_from_4ub:<br>
@@ -485,6 +485,6 @@ cogl_color_copy (const CoglColor *color);<br>
void<br>
cogl_color_free (CoglColor *color);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_COLOR_H__ */<br>
diff --git a/cogl/cogl-context.h b/cogl/cogl-context.h<br>
index 71904c4..587dff7 100644<br>
--- a/cogl/cogl-context.h<br>
+++ b/cogl/cogl-context.h<br>
@@ -43,7 +43,7 @@ typedef struct _CoglContext CoglContext;<br>
#include <android/native_window.h><br>
#endif<br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
/**<br>
* SECTION:cogl-context<br>
@@ -310,7 +310,7 @@ cogl_foreach_feature (CoglContext *context,<br>
CoglFeatureCallback callback,<br>
void *user_data);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_CONTEXT_H__ */<br>
<br>
diff --git a/cogl/cogl-debug.h b/cogl/cogl-debug.h<br>
index a7ac616..7c39ba3 100644<br>
--- a/cogl/cogl-debug.h<br>
+++ b/cogl/cogl-debug.h<br>
@@ -30,7 +30,7 @@<br>
<br>
#include <glib.h><br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
typedef enum {<br>
COGL_DEBUG_SLICING,<br>
@@ -113,7 +113,7 @@ _cogl_parse_debug_string (const char *value,<br>
CoglBool enable,<br>
CoglBool ignore_help);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_DEBUG_H__ */<br>
<br>
diff --git a/cogl/<a href="http://cogl-defines.h.in" target="_blank">cogl-defines.h.in</a> b/cogl/<a href="http://cogl-defines.h.in" target="_blank">cogl-defines.h.in</a><br>
index a8765d8..6e40212 100644<br>
--- a/cogl/<a href="http://cogl-defines.h.in" target="_blank">cogl-defines.h.in</a><br>
+++ b/cogl/<a href="http://cogl-defines.h.in" target="_blank">cogl-defines.h.in</a><br>
@@ -28,10 +28,6 @@<br>
#ifndef __COGL_DEFINES_H__<br>
#define __COGL_DEFINES_H__<br>
<br>
-#include <glib.h><br>
-<br>
-G_BEGIN_DECLS<br>
-<br>
@COGL_DEFINES@<br>
<br>
#define COGL_VERSION_MAJOR_INTERNAL @COGL_MAJOR_VERSION@<br>
@@ -39,6 +35,4 @@ G_BEGIN_DECLS<br>
#define COGL_VERSION_MICRO_INTERNAL @COGL_MICRO_VERSION@<br>
#define COGL_VERSION_STRING_INTERNAL "@COGL_VERSION@"<br>
<br>
-G_END_DECLS<br>
-<br>
#endif<br>
diff --git a/cogl/cogl-depth-state.h b/cogl/cogl-depth-state.h<br>
index 072c6b0..f9ecded 100644<br>
--- a/cogl/cogl-depth-state.h<br>
+++ b/cogl/cogl-depth-state.h<br>
@@ -31,7 +31,7 @@<br>
#ifndef __COGL_DEPTH_STATE_H__<br>
#define __COGL_DEPTH_STATE_H__<br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
/**<br>
* SECTION:cogl-depth-state<br>
@@ -255,6 +255,6 @@ cogl_depth_state_get_range (CoglDepthState *state,<br>
float *near_val,<br>
float *far_val);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_DEPTH_STATE_H__ */<br>
diff --git a/cogl/cogl-display.h b/cogl/cogl-display.h<br>
index 62d5ee5..75a8678 100644<br>
--- a/cogl/cogl-display.h<br>
+++ b/cogl/cogl-display.h<br>
@@ -34,7 +34,7 @@<br>
#include <cogl/cogl-renderer.h><br>
#include <cogl/cogl-onscreen-template.h><br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
#ifdef COGL_HAS_EGL_PLATFORM_GDL_SUPPORT<br>
#include <libgdl.h><br>
@@ -185,7 +185,7 @@ cogl_gdl_display_set_plane (CoglDisplay *display,<br>
CoglBool<br>
cogl_is_display (void *object);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_DISPLAY_H__ */<br>
<br>
diff --git a/cogl/cogl-egl.h b/cogl/cogl-egl.h<br>
index c9ca786..420a99e 100644<br>
--- a/cogl/cogl-egl.h<br>
+++ b/cogl/cogl-egl.h<br>
@@ -28,7 +28,7 @@<br>
<br>
#include "cogl-egl-defines.h"<br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
#define NativeDisplayType EGLNativeDisplayType<br>
#define NativeWindowType EGLNativeWindowType<br>
@@ -53,7 +53,7 @@ G_BEGIN_DECLS<br>
EGLDisplay<br>
cogl_egl_context_get_egl_display (CoglContext *context);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* COGL_HAS_EGL_SUPPORT */<br>
<br>
diff --git a/cogl/cogl-euler.h b/cogl/cogl-euler.h<br>
index a4c988d..c936dca 100644<br>
--- a/cogl/cogl-euler.h<br>
+++ b/cogl/cogl-euler.h<br>
@@ -33,9 +33,7 @@<br>
<br>
#include <cogl/cogl-types.h><br>
<br>
-#include <glib.h><br>
-<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
/**<br>
* SECTION:cogl-euler<br>
@@ -247,7 +245,7 @@ cogl_euler_copy (const CoglEuler *src);<br>
void<br>
cogl_euler_free (CoglEuler *euler);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_EULER_H */<br>
<br>
diff --git a/cogl/cogl-flags.h b/cogl/cogl-flags.h<br>
index d62294a..f2178d7 100644<br>
--- a/cogl/cogl-flags.h<br>
+++ b/cogl/cogl-flags.h<br>
@@ -31,7 +31,7 @@<br>
<br>
#include "cogl-util.h"<br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
/* These are macros used to implement a fixed-size array of bits. This<br>
should be used instead of CoglBitmask when the maximum bit number<br>
@@ -119,7 +119,7 @@ G_BEGIN_DECLS<br>
#define COGL_FLAGS_FOREACH_END \<br>
} } } G_STMT_END<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_FLAGS_H */<br>
<br>
diff --git a/cogl/cogl-framebuffer.h b/cogl/cogl-framebuffer.h<br>
index c1295b8..0855d0f 100644<br>
--- a/cogl/cogl-framebuffer.h<br>
+++ b/cogl/cogl-framebuffer.h<br>
@@ -28,8 +28,6 @@<br>
#ifndef __COGL_FRAMEBUFFER_H<br>
#define __COGL_FRAMEBUFFER_H<br>
<br>
-#include <glib.h><br>
-<br>
#ifdef COGL_HAS_WIN32_SUPPORT<br>
#include <windows.h><br>
#endif /* COGL_HAS_WIN32_SUPPORT */<br>
@@ -42,7 +40,7 @@<br>
#include <cogl/cogl-quaternion.h><br>
#include <cogl/cogl-euler.h><br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
/**<br>
* SECTION:cogl-framebuffer<br>
@@ -1121,7 +1119,7 @@ cogl_framebuffer_vdraw_attributes (CoglFramebuffer *framebuffer,<br>
CoglVerticesMode mode,<br>
int first_vertex,<br>
int n_vertices,<br>
- ...) G_GNUC_NULL_TERMINATED;<br>
+ ...) COGL_GNUC_NULL_TERMINATED;<br>
<br>
/**<br>
* cogl_framebuffer_draw_attributes:<br>
@@ -1221,7 +1219,7 @@ cogl_framebuffer_vdraw_indexed_attributes (CoglFramebuffer *framebuffer,<br>
int first_vertex,<br>
int n_vertices,<br>
CoglIndices *indices,<br>
- ...) G_GNUC_NULL_TERMINATED;<br>
+ ...) COGL_GNUC_NULL_TERMINATED;<br>
<br>
/**<br>
* cogl_framebuffer_draw_indexed_attributes:<br>
@@ -1774,7 +1772,7 @@ typedef enum { /*< prefix=COGL_FRAMEBUFFER_ERROR >*/<br>
CoglBool<br>
cogl_is_framebuffer (void *object);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_FRAMEBUFFER_H */<br>
<br>
diff --git a/cogl/cogl-gles2.h b/cogl/cogl-gles2.h<br>
index cbcea8b..004e132 100644<br>
--- a/cogl/cogl-gles2.h<br>
+++ b/cogl/cogl-gles2.h<br>
@@ -49,7 +49,7 @@<br>
#include <cogl/cogl-gles2-types.h><br>
#endif<br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
/**<br>
* SECTION:cogl-gles2<br>
@@ -362,7 +362,7 @@ cogl_gles2_texture_get_handle (CoglTexture *texture,<br>
CoglBool<br>
cogl_is_gles2_context (void *object);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_GLES2_H__ */<br>
<br>
diff --git a/cogl/cogl-index-buffer.h b/cogl/cogl-index-buffer.h<br>
index 663e066..074452c 100644<br>
--- a/cogl/cogl-index-buffer.h<br>
+++ b/cogl/cogl-index-buffer.h<br>
@@ -33,7 +33,7 @@<br>
<br>
#include <cogl/cogl-context.h><br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
/**<br>
* SECTION:cogl-index-buffer<br>
@@ -79,7 +79,7 @@ cogl_index_buffer_new (CoglContext *context,<br>
CoglBool<br>
cogl_is_index_buffer (void *object);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_INDEX_BUFFER_H__ */<br>
<br>
diff --git a/cogl/cogl-indices.h b/cogl/cogl-indices.h<br>
index c13e425..d56348b 100644<br>
--- a/cogl/cogl-indices.h<br>
+++ b/cogl/cogl-indices.h<br>
@@ -38,7 +38,7 @@ typedef struct _CoglIndices CoglIndices;<br>
<br>
#include <cogl/cogl-index-buffer.h><br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
/**<br>
* SECTION:cogl-index-range<br>
@@ -140,7 +140,7 @@ cogl_get_rectangle_indices (CoglContext *context, int n_rectangles);<br>
CoglBool<br>
cogl_is_indices (void *object);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_INDICES_H__ */<br>
<br>
diff --git a/cogl/cogl-kms-display.h b/cogl/cogl-kms-display.h<br>
index 85ecc72..d8bfd9e 100644<br>
--- a/cogl/cogl-kms-display.h<br>
+++ b/cogl/cogl-kms-display.h<br>
@@ -32,7 +32,7 @@<br>
#include <cogl/cogl-types.h><br>
#include <cogl/cogl-display.h><br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
/**<br>
* cogl_kms_display_queue_modes_reset:<br>
@@ -54,5 +54,5 @@ G_BEGIN_DECLS<br>
void<br>
cogl_kms_display_queue_modes_reset (CoglDisplay *display);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
#endif /* __COGL_KMS_DISPLAY_H__ */<br>
diff --git a/cogl/cogl-kms-renderer.h b/cogl/cogl-kms-renderer.h<br>
index 539fa78..fdd8bdf 100644<br>
--- a/cogl/cogl-kms-renderer.h<br>
+++ b/cogl/cogl-kms-renderer.h<br>
@@ -31,7 +31,7 @@<br>
#include <cogl/cogl-types.h><br>
#include <cogl/cogl-renderer.h><br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
/**<br>
* cogl_kms_renderer_get_kms_fd:<br>
@@ -47,5 +47,5 @@ G_BEGIN_DECLS<br>
int<br>
cogl_kms_renderer_get_kms_fd (CoglRenderer *renderer);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
#endif /* __COGL_KMS_RENDERER_H__ */<br>
diff --git a/cogl/cogl-magazine-private.h b/cogl/cogl-magazine-private.h<br>
index 16e5a61..c07e0fe 100644<br>
--- a/cogl/cogl-magazine-private.h<br>
+++ b/cogl/cogl-magazine-private.h<br>
@@ -21,10 +21,6 @@<br>
*<br>
*/<br>
<br>
-#if !defined(__COGL_H_INSIDE__) && !defined(COGL_COMPILATION)<br>
-#error "Only <cogl/cogl.h> can be included directly."<br>
-#endif<br>
-<br>
#ifndef __COGL_MAGAZINE_PRIVATE_H__<br>
#define __COGL_MAGAZINE_PRIVATE_H__<br>
<br>
@@ -32,8 +28,6 @@<br>
<br>
#include "cogl-memory-stack-private.h"<br>
<br>
-G_BEGIN_DECLS<br>
-<br>
typedef struct _CoglMagazineChunk CoglMagazineChunk;<br>
<br>
struct _CoglMagazineChunk<br>
@@ -77,6 +71,4 @@ _cogl_magazine_chunk_free (CoglMagazine *magazine, void *data)<br>
void<br>
_cogl_magazine_free (CoglMagazine *magazine);<br>
<br>
-G_END_DECLS<br>
-<br>
#endif /* __COGL_MAGAZINE_PRIVATE_H__ */<br>
diff --git a/cogl/cogl-matrix-private.h b/cogl/cogl-matrix-private.h<br>
index 0d79564..764d2a6 100644<br>
--- a/cogl/cogl-matrix-private.h<br>
+++ b/cogl/cogl-matrix-private.h<br>
@@ -29,7 +29,7 @@<br>
<br>
#include <glib.h><br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
#define _COGL_MATRIX_DEBUG_PRINT(MATRIX) \<br>
if (G_UNLIKELY (COGL_DEBUG_ENABLED (COGL_DEBUG_MATRICES))) \<br>
@@ -41,7 +41,7 @@ G_BEGIN_DECLS<br>
void<br>
_cogl_matrix_prefix_print (const char *prefix, const CoglMatrix *matrix);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_MATRIX_PRIVATE_H */<br>
<br>
diff --git a/cogl/cogl-matrix.h b/cogl/cogl-matrix.h<br>
index 8d85e92..b1935a1 100644<br>
--- a/cogl/cogl-matrix.h<br>
+++ b/cogl/cogl-matrix.h<br>
@@ -27,11 +27,14 @@<br>
#ifndef __COGL_MATRIX_H<br>
#define __COGL_MATRIX_H<br>
<br>
-#include <glib.h><br>
+#ifdef COGL_HAS_GTYPE_SUPPORT<br>
+#include <glib-object.h><br>
+#endif /* COGL_HAS_GTYPE_SUPPORT */<br>
+<br>
#include "cogl-types.h"<br>
#include "cogl-quaternion.h"<br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
/**<br>
* SECTION:cogl-matrix<br>
@@ -770,7 +773,7 @@ cogl_gtype_matrix_get_type (void);<br>
<br>
#endif /* COGL_HAS_GTYPE_SUPPORT */<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_MATRIX_H */<br>
<br>
diff --git a/cogl/cogl-memory-stack-private.h b/cogl/cogl-memory-stack-private.h<br>
index d6d5a9c..4e077f2 100644<br>
--- a/cogl/cogl-memory-stack-private.h<br>
+++ b/cogl/cogl-memory-stack-private.h<br>
@@ -21,16 +21,10 @@<br>
*<br>
*/<br>
<br>
-#if !defined(__COGL_H_INSIDE__) && !defined(COGL_COMPILATION)<br>
-#error "Only <cogl/cogl.h> can be included directly."<br>
-#endif<br>
-<br>
-#include <glib.h><br>
-<br>
#ifndef __COGL_MEMORY_STACK__<br>
#define __COGL_MEMORY_STACK__<br>
<br>
-G_BEGIN_DECLS<br>
+#include <glib.h><br>
<br>
typedef struct _CoglMemoryStack CoglMemoryStack;<br>
<br>
@@ -46,6 +40,4 @@ _cogl_memory_stack_rewind (CoglMemoryStack *stack);<br>
void<br>
_cogl_memory_stack_free (CoglMemoryStack *stack);<br>
<br>
-G_END_DECLS<br>
-<br>
#endif /* __COGL_MEMORY_STACK__ */<br>
diff --git a/cogl/cogl-meta-texture.h b/cogl/cogl-meta-texture.h<br>
index 06a3088..ed951fa 100644<br>
--- a/cogl/cogl-meta-texture.h<br>
+++ b/cogl/cogl-meta-texture.h<br>
@@ -30,9 +30,8 @@<br>
#define __COGL_META_TEXTURE_H__<br>
<br>
#include <cogl/cogl-pipeline-layer-state.h><br>
-#include <glib.h><br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
/**<br>
* SECTION:cogl-meta-texture<br>
@@ -178,6 +177,6 @@ cogl_meta_texture_foreach_in_region (CoglMetaTexture *meta_texture,<br>
CoglMetaTextureCallback callback,<br>
void *user_data);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_META_TEXTURE_H__ */<br>
diff --git a/cogl/cogl-offscreen.h b/cogl/cogl-offscreen.h<br>
index 9ce428f..8e228d4 100644<br>
--- a/cogl/cogl-offscreen.h<br>
+++ b/cogl/cogl-offscreen.h<br>
@@ -31,7 +31,7 @@<br>
#include <cogl/cogl-types.h><br>
#include <cogl/cogl-texture.h><br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
/**<br>
* SECTION:cogl-offscreen<br>
@@ -82,6 +82,6 @@ cogl_offscreen_new_to_texture (CoglTexture *texture);<br>
CoglBool<br>
cogl_is_offscreen (void *object);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_OFFSCREEN_H__ */<br>
diff --git a/cogl/cogl-onscreen-template.h b/cogl/cogl-onscreen-template.h<br>
index 3df8f0f..58d88d4 100644<br>
--- a/cogl/cogl-onscreen-template.h<br>
+++ b/cogl/cogl-onscreen-template.h<br>
@@ -33,7 +33,7 @@<br>
<br>
#include <cogl/cogl-swap-chain.h><br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
typedef struct _CoglOnscreenTemplate CoglOnscreenTemplate;<br>
<br>
@@ -101,6 +101,6 @@ cogl_onscreen_template_set_swap_throttled (<br>
CoglBool<br>
cogl_is_onscreen_template (void *object);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_ONSCREEN_TEMPLATE_H__ */<br>
diff --git a/cogl/cogl-onscreen.h b/cogl/cogl-onscreen.h<br>
index 5f443f7..3a1758b 100644<br>
--- a/cogl/cogl-onscreen.h<br>
+++ b/cogl/cogl-onscreen.h<br>
@@ -34,9 +34,8 @@<br>
<br>
#include <cogl/cogl-context.h><br>
#include <cogl/cogl-framebuffer.h><br>
-#include <glib.h><br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
typedef struct _CoglOnscreen CoglOnscreen;<br>
#define COGL_ONSCREEN(X) ((CoglOnscreen *)(X))<br>
@@ -555,6 +554,6 @@ cogl_onscreen_remove_resize_handler (CoglOnscreen *onscreen,<br>
CoglBool<br>
cogl_is_onscreen (void *object);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_ONSCREEN_H */<br>
diff --git a/cogl/cogl-path.h b/cogl/cogl-path.h<br>
index 2947b63..d05ee24 100644<br>
--- a/cogl/cogl-path.h<br>
+++ b/cogl/cogl-path.h<br>
@@ -31,7 +31,7 @@<br>
#include <cogl/cogl-types.h><br>
#include <cogl/cogl-context.h><br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
/**<br>
* SECTION:cogl-paths<br>
@@ -450,7 +450,7 @@ cogl_path_set_fill_rule (CoglPath *path, CoglPathFillRule fill_rule);<br>
CoglPathFillRule<br>
cogl_path_get_fill_rule (CoglPath *path);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_PATH_H__ */<br>
<br>
diff --git a/cogl/cogl-pipeline-layer-state.h b/cogl/cogl-pipeline-layer-state.h<br>
index 9380ddf..c8e0d0e 100644<br>
--- a/cogl/cogl-pipeline-layer-state.h<br>
+++ b/cogl/cogl-pipeline-layer-state.h<br>
@@ -32,9 +32,8 @@<br>
#include <cogl/cogl-color.h><br>
#include <cogl/cogl-matrix.h><br>
#include <cogl/cogl-texture.h><br>
-#include <glib.h><br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
/**<br>
* CoglPipelineFilter:<br>
@@ -582,6 +581,6 @@ cogl_pipeline_add_layer_snippet (CoglPipeline *pipeline,<br>
int layer,<br>
CoglSnippet *snippet);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_PIPELINE_LAYER_STATE_H__ */<br>
diff --git a/cogl/cogl-pipeline-snippet-private.h b/cogl/cogl-pipeline-snippet-private.h<br>
index bfc9d5d..b10b6ca 100644<br>
--- a/cogl/cogl-pipeline-snippet-private.h<br>
+++ b/cogl/cogl-pipeline-snippet-private.h<br>
@@ -28,6 +28,8 @@<br>
#ifndef __COGL_PIPELINE_SNIPPET_PRIVATE_H<br>
#define __COGL_PIPELINE_SNIPPET_PRIVATE_H<br>
<br>
+#include <glib.h><br>
+<br>
#include "cogl-snippet.h"<br>
#include "cogl-queue.h"<br>
<br>
diff --git a/cogl/cogl-pipeline-state.h b/cogl/cogl-pipeline-state.h<br>
index c402e6d..97f87e5 100644<br>
--- a/cogl/cogl-pipeline-state.h<br>
+++ b/cogl/cogl-pipeline-state.h<br>
@@ -31,9 +31,8 @@<br>
#include <cogl/cogl-pipeline.h><br>
#include <cogl/cogl-color.h><br>
#include <cogl/cogl-depth-state.h><br>
-#include <glib.h><br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
/**<br>
* cogl_pipeline_set_color:<br>
@@ -662,6 +661,6 @@ void<br>
cogl_pipeline_add_snippet (CoglPipeline *pipeline,<br>
CoglSnippet *snippet);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_PIPELINE_STATE_H__ */<br>
diff --git a/cogl/cogl-pipeline.h b/cogl/cogl-pipeline.h<br>
index 5cd21d9..647d1dd 100644<br>
--- a/cogl/cogl-pipeline.h<br>
+++ b/cogl/cogl-pipeline.h<br>
@@ -37,7 +37,7 @@ typedef struct _CoglPipeline CoglPipeline;<br>
#include <cogl/cogl-context.h><br>
#include <cogl/cogl-snippet.h><br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
/**<br>
* SECTION:cogl-pipeline<br>
@@ -164,6 +164,6 @@ cogl_pipeline_get_uniform_location (CoglPipeline *pipeline,<br>
const char *uniform_name);<br>
<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_PIPELINE_H__ */<br>
diff --git a/cogl/cogl-pixel-buffer-private.h b/cogl/cogl-pixel-buffer-private.h<br>
index 974afa6..d6ee07b 100644<br>
--- a/cogl/cogl-pixel-buffer-private.h<br>
+++ b/cogl/cogl-pixel-buffer-private.h<br>
@@ -33,13 +33,13 @@<br>
<br>
#include <glib.h><br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
struct _CoglPixelBuffer<br>
{<br>
CoglBuffer _parent;<br>
};<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_PIXEL_BUFFER_PRIVATE_H__ */<br>
diff --git a/cogl/cogl-pixel-buffer.h b/cogl/cogl-pixel-buffer.h<br>
index 3934c3a..09ee5e9 100644<br>
--- a/cogl/cogl-pixel-buffer.h<br>
+++ b/cogl/cogl-pixel-buffer.h<br>
@@ -32,11 +32,10 @@<br>
#ifndef __COGL_PIXEL_BUFFER_H__<br>
#define __COGL_PIXEL_BUFFER_H__<br>
<br>
-#include <glib.h><br>
#include <cogl/cogl-types.h><br>
#include <cogl/cogl-context.h><br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
#define COGL_PIXEL_BUFFER(buffer) ((CoglPixelBuffer *)(buffer))<br>
<br>
@@ -110,6 +109,6 @@ cogl_pixel_buffer_set_region (CoglPixelBuffer *buffer,<br>
unsigned int dst_y);<br>
#endif<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_PIXEL_BUFFER_H__ */<br>
diff --git a/cogl/cogl-point-in-poly-private.h b/cogl/cogl-point-in-poly-private.h<br>
index 6b534b6..1f7f5f6 100644<br>
--- a/cogl/cogl-point-in-poly-private.h<br>
+++ b/cogl/cogl-point-in-poly-private.h<br>
@@ -25,7 +25,7 @@<br>
<br>
#include <glib.h><br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
int<br>
_cogl_util_point_in_screen_poly (float point_x,<br>
@@ -34,7 +34,7 @@ _cogl_util_point_in_screen_poly (float point_x,<br>
size_t stride,<br>
int n_vertices);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_POINT_INT_POLYGON_PRIVATE_H */<br>
<br>
diff --git a/cogl/cogl-poll.h b/cogl/cogl-poll.h<br>
index 2a319bd..6496c7d 100644<br>
--- a/cogl/cogl-poll.h<br>
+++ b/cogl/cogl-poll.h<br>
@@ -31,11 +31,10 @@<br>
#ifndef __COGL_POLL_H__<br>
#define __COGL_POLL_H__<br>
<br>
-#include <glib.h><br>
#include <cogl/cogl-defines.h><br>
#include <cogl/cogl-context.h><br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
/**<br>
* SECTION:cogl-poll<br>
@@ -163,6 +162,6 @@ cogl_poll_dispatch (CoglContext *context,<br>
const CoglPollFD *poll_fds,<br>
int n_poll_fds);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_POLL_H__ */<br>
diff --git a/cogl/cogl-primitive-texture.h b/cogl/cogl-primitive-texture.h<br>
index 39c3c41..5bd32c7 100644<br>
--- a/cogl/cogl-primitive-texture.h<br>
+++ b/cogl/cogl-primitive-texture.h<br>
@@ -31,7 +31,7 @@<br>
<br>
#include "cogl-types.h"<br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
/**<br>
* SECTION:cogl-primitive-texture<br>
@@ -93,6 +93,6 @@ void<br>
cogl_primitive_texture_set_auto_mipmap (CoglPrimitiveTexture *primitive_texture,<br>
CoglBool value);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_PRIMITIVE_TEXTURE_H__ */<br>
diff --git a/cogl/cogl-primitive.h b/cogl/cogl-primitive.h<br>
index e887608..1e97ce0 100644<br>
--- a/cogl/cogl-primitive.h<br>
+++ b/cogl/cogl-primitive.h<br>
@@ -39,7 +39,7 @@ typedef struct _CoglPrimitive CoglPrimitive;<br>
#include <cogl/cogl-types.h><br>
#include <cogl/cogl-attribute.h><br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
/**<br>
* SECTION:cogl-primitive<br>
@@ -868,7 +868,7 @@ cogl_primitive_foreach_attribute (CoglPrimitive *primitive,<br>
CoglPrimitiveAttributeCallback callback,<br>
void *user_data);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_PRIMITIVE_H__ */<br>
<br>
diff --git a/cogl/cogl-primitives-private.h b/cogl/cogl-primitives-private.h<br>
index f36213c..d42cda7 100644<br>
--- a/cogl/cogl-primitives-private.h<br>
+++ b/cogl/cogl-primitives-private.h<br>
@@ -26,7 +26,7 @@<br>
<br>
#include <glib.h><br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
/* Draws a rectangle without going through the journal so that it will<br>
be flushed immediately. This should only be used in situations<br>
@@ -54,6 +54,6 @@ _cogl_framebuffer_draw_multitextured_rectangles (<br>
CoglMultiTexturedRect *rects,<br>
int n_rects);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_PRIMITIVES_PRIVATE_H */<br>
diff --git a/cogl/cogl-private.h b/cogl/cogl-private.h<br>
index a78435b..056d606 100644<br>
--- a/cogl/cogl-private.h<br>
+++ b/cogl/cogl-private.h<br>
@@ -28,7 +28,7 @@<br>
<br>
#include "cogl-context.h"<br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
CoglBool<br>
_cogl_check_extension (const char *name, char * const *ext);<br>
@@ -90,6 +90,6 @@ _cogl_pixel_format_is_endian_dependant (CoglPixelFormat format);<br>
#define COGL_PIXEL_FORMAT_CAN_HAVE_PREMULT(format) \<br>
(((format) & COGL_A_BIT) && (format) != COGL_PIXEL_FORMAT_A_8)<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_PRIVATE_H__ */<br>
diff --git a/cogl/cogl-quaternion.h b/cogl/cogl-quaternion.h<br>
index 8daf95d..0651840 100644<br>
--- a/cogl/cogl-quaternion.h<br>
+++ b/cogl/cogl-quaternion.h<br>
@@ -34,7 +34,7 @@<br>
#include <cogl/cogl-types.h><br>
#include <cogl/cogl-vector.h><br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
/**<br>
* SECTION:cogl-quaternion<br>
@@ -512,7 +512,7 @@ cogl_get_static_identity_quaternion (void);<br>
const CoglQuaternion *<br>
cogl_get_static_zero_quaternion (void);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_QUATERNION_H__ */<br>
<br>
diff --git a/cogl/cogl-rectangle-map.h b/cogl/cogl-rectangle-map.h<br>
index 0b724fc..06c89af 100644<br>
--- a/cogl/cogl-rectangle-map.h<br>
+++ b/cogl/cogl-rectangle-map.h<br>
@@ -24,6 +24,7 @@<br>
#ifndef __COGL_RECTANGLE_MAP_H<br>
#define __COGL_RECTANGLE_MAP_H<br>
<br>
+#include <glib.h><br>
#include "cogl-types.h"<br>
<br>
typedef struct _CoglRectangleMap CoglRectangleMap;<br>
diff --git a/cogl/cogl-renderer.h b/cogl/cogl-renderer.h<br>
index ebb055e..4596519 100644<br>
--- a/cogl/cogl-renderer.h<br>
+++ b/cogl/cogl-renderer.h<br>
@@ -28,13 +28,11 @@<br>
#ifndef __COGL_RENDERER_H__<br>
#define __COGL_RENDERER_H__<br>
<br>
-#include <glib.h><br>
-<br>
#include <cogl/cogl-types.h><br>
#include <cogl/cogl-onscreen-template.h><br>
#include <cogl/cogl-error.h><br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
/**<br>
* SECTION:cogl-renderer<br>
@@ -385,7 +383,7 @@ cogl_renderer_set_driver (CoglRenderer *renderer,<br>
CoglDriver<br>
cogl_renderer_get_driver (CoglRenderer *renderer);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_RENDERER_H__ */<br>
<br>
diff --git a/cogl/cogl-sdl.h b/cogl/cogl-sdl.h<br>
index 05da036..b4f86aa 100644<br>
--- a/cogl/cogl-sdl.h<br>
+++ b/cogl/cogl-sdl.h<br>
@@ -40,7 +40,7 @@<br>
#pragma comment (lib, "SDLmain.lib")<br>
#endif<br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
/**<br>
* SECTION:cogl-sdl<br>
@@ -202,6 +202,6 @@ cogl_sdl_handle_event (CoglContext *context, SDL_Event *event);<br>
void<br>
cogl_sdl_idle (CoglContext *context);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_SDL_H__ */<br>
diff --git a/cogl/cogl-snippet.h b/cogl/cogl-snippet.h<br>
index 5348363..fcf9af2 100644<br>
--- a/cogl/cogl-snippet.h<br>
+++ b/cogl/cogl-snippet.h<br>
@@ -32,9 +32,7 @@<br>
#ifndef __COGL_SNIPPET_H__<br>
#define __COGL_SNIPPET_H__<br>
<br>
-#include <glib.h><br>
-<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
/**<br>
* SECTION:cogl-snippet<br>
@@ -738,6 +736,6 @@ cogl_snippet_set_post (CoglSnippet *snippet,<br>
const char *<br>
cogl_snippet_get_post (CoglSnippet *snippet);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_SNIPPET_H__ */<br>
diff --git a/cogl/cogl-sub-texture.h b/cogl/cogl-sub-texture.h<br>
index 914b4c5..ac06c01 100644<br>
--- a/cogl/cogl-sub-texture.h<br>
+++ b/cogl/cogl-sub-texture.h<br>
@@ -31,9 +31,7 @@<br>
#ifndef __COGL_SUB_TEXTURE_H<br>
#define __COGL_SUB_TEXTURE_H<br>
<br>
-#include <glib.h><br>
-<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
/**<br>
* SECTION:cogl-sub-texture<br>
@@ -119,6 +117,6 @@ cogl_sub_texture_get_parent (CoglSubTexture *sub_texture);<br>
CoglBool<br>
cogl_is_sub_texture (void *object);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_SUB_TEXTURE_H */<br>
diff --git a/cogl/cogl-swap-chain.h b/cogl/cogl-swap-chain.h<br>
index 21908e9..05596a8 100644<br>
--- a/cogl/cogl-swap-chain.h<br>
+++ b/cogl/cogl-swap-chain.h<br>
@@ -28,7 +28,7 @@<br>
#ifndef __COGL_SWAP_CHAIN_H__<br>
#define __COGL_SWAP_CHAIN_H__<br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
typedef struct _CoglSwapChain CoglSwapChain;<br>
<br>
@@ -46,6 +46,6 @@ cogl_swap_chain_set_length (CoglSwapChain *swap_chain,<br>
CoglBool<br>
cogl_is_swap_chain (void *object);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_SWAP_CHAIN_H__ */<br>
diff --git a/cogl/cogl-texture-2d-gl.h b/cogl/cogl-texture-2d-gl.h<br>
index 5136a35..6c2c3fa 100644<br>
--- a/cogl/cogl-texture-2d-gl.h<br>
+++ b/cogl/cogl-texture-2d-gl.h<br>
@@ -34,9 +34,7 @@<br>
#include "cogl-context.h"<br>
#include "cogl-texture-2d.h"<br>
<br>
-#include <glib.h><br>
-<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
/**<br>
* cogl_texture_2d_gl_new_from_foreign:<br>
@@ -70,6 +68,6 @@ cogl_texture_2d_gl_new_from_foreign (CoglContext *ctx,<br>
CoglPixelFormat format,<br>
CoglError **error);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* _COGL_TEXTURE_2D_GL_H_ */<br>
diff --git a/cogl/cogl-texture-2d-sliced.h b/cogl/cogl-texture-2d-sliced.h<br>
index 3173d14..363d6d8 100644<br>
--- a/cogl/cogl-texture-2d-sliced.h<br>
+++ b/cogl/cogl-texture-2d-sliced.h<br>
@@ -30,8 +30,6 @@<br>
#include "cogl-context.h"<br>
#include "cogl-types.h"<br>
<br>
-#include <glib.h><br>
-<br>
/**<br>
* SECTION:cogl-texture-2d-sliced<br>
* @short_description: Functions for creating and manipulating 2D meta<br>
diff --git a/cogl/cogl-texture-2d.h b/cogl/cogl-texture-2d.h<br>
index d07cdef..fcd86f7 100644<br>
--- a/cogl/cogl-texture-2d.h<br>
+++ b/cogl/cogl-texture-2d.h<br>
@@ -34,9 +34,7 @@<br>
#include "cogl-context.h"<br>
#include "cogl-bitmap.h"<br>
<br>
-#include <glib.h><br>
-<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
/**<br>
* SECTION:cogl-texture-2d<br>
@@ -187,6 +185,6 @@ cogl_texture_2d_new_from_bitmap (CoglBitmap *bitmap,<br>
CoglPixelFormat internal_format,<br>
CoglError **error);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_TEXTURE_2D_H */<br>
diff --git a/cogl/cogl-texture-3d.h b/cogl/cogl-texture-3d.h<br>
index 1956b4d..1ddde33 100644<br>
--- a/cogl/cogl-texture-3d.h<br>
+++ b/cogl/cogl-texture-3d.h<br>
@@ -31,9 +31,7 @@<br>
#ifndef __COGL_TEXTURE_3D_H<br>
#define __COGL_TEXTURE_3D_H<br>
<br>
-#include <glib.h><br>
-<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
/**<br>
* SECTION:cogl-texture-3d<br>
@@ -180,6 +178,6 @@ cogl_texture_3d_new_from_bitmap (CoglBitmap *bitmap,<br>
CoglBool<br>
cogl_is_texture_3d (void *object);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_TEXTURE_3D_H */<br>
diff --git a/cogl/cogl-texture-rectangle.h b/cogl/cogl-texture-rectangle.h<br>
index 20de97d..447866f 100644<br>
--- a/cogl/cogl-texture-rectangle.h<br>
+++ b/cogl/cogl-texture-rectangle.h<br>
@@ -29,7 +29,7 @@<br>
<br>
#include "cogl-context.h"<br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
/**<br>
* SECTION:cogl-texture-rectangle<br>
@@ -199,6 +199,6 @@ cogl_texture_rectangle_new_from_foreign (CoglContext *ctx,<br>
CoglPixelFormat format,<br>
CoglError **error);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_TEXURE_RECTANGLE_H */<br>
diff --git a/cogl/cogl-texture.h b/cogl/cogl-texture.h<br>
index 69d6da0..0a61197 100644<br>
--- a/cogl/cogl-texture.h<br>
+++ b/cogl/cogl-texture.h<br>
@@ -38,7 +38,7 @@ typedef struct _CoglTexture CoglTexture;<br>
#include <cogl/cogl-pixel-buffer.h><br>
#include <cogl/cogl-bitmap.h><br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
/**<br>
* SECTION:cogl-texture<br>
@@ -421,6 +421,6 @@ cogl_texture_set_region_from_bitmap (CoglTexture *texture,<br>
unsigned int dst_height,<br>
CoglBitmap *bitmap);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_TEXTURE_H__ */<br>
diff --git a/cogl/cogl-types.h b/cogl/cogl-types.h<br>
index 15464f1..690e19c 100644<br>
--- a/cogl/cogl-types.h<br>
+++ b/cogl/cogl-types.h<br>
@@ -29,11 +29,20 @@<br>
#define __COGL_TYPES_H__<br>
<br>
#include <stdint.h><br>
-#include <glib-object.h><br>
+#include <stddef.h><br>
<br>
#include <cogl/cogl-defines.h><br>
<br>
-G_BEGIN_DECLS<br>
+/* Guard C code in headers, while including them from C++ */<br>
+#ifdef __cplusplus<br>
+#define COGL_BEGIN_DECLS extern "C" {<br>
+#define COGL_END_DECLS }<br>
+#else<br>
+#define COGL_BEGIN_DECLS<br>
+#define COGL_END_DECLS<br>
+#endif<br>
+<br>
+COGL_BEGIN_DECLS<br>
<br>
/**<br>
* CoglBool:<br>
@@ -73,6 +82,19 @@ typedef int CoglBool;<br>
#define FALSE 0<br>
#endif<br>
<br>
+#if __GNUC__ >= 4<br>
+#define COGL_GNUC_NULL_TERMINATED __attribute__((__sentinel__))<br>
+#else<br>
+#define COGL_GNUC_NULL_TERMINATED<br>
+#endif<br>
+<br>
+#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)<br>
+#define COGL_GNUC_DEPRECATED \<br>
+ __attribute__((__deprecated__))<br>
+#else<br>
+#define COGL_GNUC_DEPRECATED<br>
+#endif /* __GNUC__ */<br>
+<br>
/* Some structures are meant to be opaque but they have public<br>
definitions because we want the size to be public so they can be<br>
allocated on the stack. This macro is used to ensure that users<br>
@@ -687,6 +709,6 @@ typedef enum { /*< prefix=COGL_READ_PIXELS >*/<br>
COGL_READ_PIXELS_COLOR_BUFFER = 1L << 0<br>
} CoglReadPixelsFlags;<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_TYPES_H__ */<br>
diff --git a/cogl/cogl-vector.h b/cogl/cogl-vector.h<br>
index 3156b15..81ff473 100644<br>
--- a/cogl/cogl-vector.h<br>
+++ b/cogl/cogl-vector.h<br>
@@ -31,9 +31,7 @@<br>
#ifndef __COGL_VECTOR_H<br>
#define __COGL_VECTOR_H<br>
<br>
-#include <glib.h><br>
-<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
/**<br>
* SECTION:cogl-vector<br>
@@ -347,7 +345,7 @@ cogl_vector3_dot_product (const float *a, const float *b);<br>
float<br>
cogl_vector3_distance (const float *a, const float *b);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_VECTOR_H */<br>
<br>
diff --git a/cogl/cogl-wayland-client.h b/cogl/cogl-wayland-client.h<br>
index 3f290dc..610f558 100644<br>
--- a/cogl/cogl-wayland-client.h<br>
+++ b/cogl/cogl-wayland-client.h<br>
@@ -24,8 +24,6 @@<br>
#ifndef __COGL_WAYLAND_CLIENT_H<br>
#define __COGL_WAYLAND_CLIENT_H<br>
<br>
-#include <glib.h><br>
-<br>
#define __COGL_H_INSIDE__<br>
#include <cogl/cogl-wayland-renderer.h><br>
<br>
diff --git a/cogl/cogl-wayland-renderer.h b/cogl/cogl-wayland-renderer.h<br>
index f5a760f..1d9d5fa 100644<br>
--- a/cogl/cogl-wayland-renderer.h<br>
+++ b/cogl/cogl-wayland-renderer.h<br>
@@ -33,7 +33,7 @@<br>
<br>
#include <wayland-client.h><br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
/**<br>
* cogl_wayland_renderer_set_foreign_display:<br>
@@ -159,6 +159,6 @@ cogl_wayland_renderer_set_foreign_shell (CoglRenderer *renderer,<br>
struct wl_shell *<br>
cogl_wayland_renderer_get_shell (CoglRenderer *renderer);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_WAYLAND_RENDERER_H__ */<br>
diff --git a/cogl/cogl-wayland-server.h b/cogl/cogl-wayland-server.h<br>
index 6e66292..567a9f9 100644<br>
--- a/cogl/cogl-wayland-server.h<br>
+++ b/cogl/cogl-wayland-server.h<br>
@@ -24,15 +24,13 @@<br>
#ifndef __COGL_WAYLAND_SERVER_H<br>
#define __COGL_WAYLAND_SERVER_H<br>
<br>
-#include <glib.h><br>
-<br>
#include <wayland-server.h><br>
<br>
#define __COGL_H_INSIDE__<br>
#include <cogl/cogl-context.h><br>
#include <cogl/cogl-texture-2d.h><br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
/**<br>
* cogl_wayland_display_set_compositor_display:<br>
@@ -79,6 +77,6 @@ cogl_wayland_texture_2d_new_from_buffer (CoglContext *ctx,<br>
struct wl_buffer *buffer,<br>
CoglError **error);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_WAYLAND_SERVER_H */<br>
diff --git a/cogl/cogl-win32-renderer.h b/cogl/cogl-win32-renderer.h<br>
index f05a620..f65bc8f 100644<br>
--- a/cogl/cogl-win32-renderer.h<br>
+++ b/cogl/cogl-win32-renderer.h<br>
@@ -31,7 +31,7 @@<br>
#include <cogl/cogl-types.h><br>
#include <cogl/cogl-renderer.h><br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
/**<br>
* cogl_win32_renderer_handle_event:<br>
@@ -87,6 +87,6 @@ cogl_win32_renderer_remove_filter (CoglRenderer *renderer,<br>
CoglWin32FilterFunc func,<br>
void *data);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_WIN32_RENDERER_H__ */<br>
diff --git a/cogl/cogl-xlib-renderer.h b/cogl/cogl-xlib-renderer.h<br>
index 58dc866..a9277c6 100644<br>
--- a/cogl/cogl-xlib-renderer.h<br>
+++ b/cogl/cogl-xlib-renderer.h<br>
@@ -29,12 +29,11 @@<br>
#define __COGL_XLIB_RENDERER_H__<br>
<br>
#include <X11/Xlib.h><br>
-#include <glib.h><br>
<br>
#define __COGL_H_INSIDE__<br>
#include <cogl/cogl-renderer.h><br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
/*<br>
* cogl_xlib_renderer_handle_event:<br>
@@ -140,6 +139,6 @@ cogl_xlib_renderer_set_event_retrieval_enabled (CoglRenderer *renderer,<br>
Display *<br>
cogl_xlib_renderer_get_display (CoglRenderer *renderer);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_XLIB_RENDERER_H__ */<br>
diff --git a/cogl/cogl-xlib.h b/cogl/cogl-xlib.h<br>
index 079a322..7a6bc7e 100644<br>
--- a/cogl/cogl-xlib.h<br>
+++ b/cogl/cogl-xlib.h<br>
@@ -24,16 +24,16 @@<br>
#ifndef __COGL_XLIB_H__<br>
#define __COGL_XLIB_H__<br>
<br>
-#include <glib.h><br>
-<br>
#include <X11/Xlib.h><br>
<br>
#define __COGL_XLIB_H_INSIDE__<br>
+#define __COGL_H_INSIDE__<br>
<br>
+#include <cogl/cogl-types.h><br>
#include <cogl/cogl-clutter-xlib.h><br>
#include <cogl/cogl-xlib-renderer.h><br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
/*<br>
* cogl_xlib_get_display:<br>
diff --git a/cogl/cogl.h b/cogl/cogl.h<br>
index 875f32a..a5001eb 100644<br>
--- a/cogl/cogl.h<br>
+++ b/cogl/cogl.h<br>
@@ -25,8 +25,6 @@<br>
#ifndef __COGL_H__<br>
#define __COGL_H__<br>
<br>
-#include <glib.h><br>
-<br>
#define __COGL_H_INSIDE__<br>
<br>
/*<br>
diff --git a/cogl/cogl1-context.h b/cogl/cogl1-context.h<br>
index cdf21c2..9ccf74e 100644<br>
--- a/cogl/cogl1-context.h<br>
+++ b/cogl/cogl1-context.h<br>
@@ -31,13 +31,11 @@<br>
#ifndef __COGL_1_CONTEXT_H__<br>
#define __COGL_1_CONTEXT_H__<br>
<br>
-#include <glib.h><br>
-<br>
#include <cogl/cogl-types.h><br>
#include <cogl/cogl-texture.h><br>
#include <cogl/cogl-framebuffer.h><br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
/**<br>
* cogl_set_framebuffer:<br>
@@ -154,7 +152,7 @@ cogl_pop_framebuffer (void);<br>
* Deprecated: 1.2: The draw buffer API was replaced with a framebuffer API<br>
*/<br>
void<br>
-cogl_push_draw_buffer (void) G_GNUC_DEPRECATED;<br>
+cogl_push_draw_buffer (void) COGL_GNUC_DEPRECATED;<br>
<br>
/**<br>
* cogl_pop_draw_buffer:<br>
@@ -164,7 +162,7 @@ cogl_push_draw_buffer (void) G_GNUC_DEPRECATED;<br>
* Deprecated: 1.2: The draw buffer API was replaced with a framebuffer API<br>
*/<br>
void<br>
-cogl_pop_draw_buffer (void) G_GNUC_DEPRECATED;<br>
+cogl_pop_draw_buffer (void) COGL_GNUC_DEPRECATED;<br>
<br>
#endif /* COGL_DISABLE_DEPRECATED */<br>
<br>
@@ -197,6 +195,6 @@ cogl_pop_draw_buffer (void) G_GNUC_DEPRECATED;<br>
void<br>
cogl_flush (void);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_1_CONTEXT_H__ */<br>
diff --git a/cogl/winsys/cogl-texture-pixmap-x11.h b/cogl/winsys/cogl-texture-pixmap-x11.h<br>
index 77ff942..eaa743d 100644<br>
--- a/cogl/winsys/cogl-texture-pixmap-x11.h<br>
+++ b/cogl/winsys/cogl-texture-pixmap-x11.h<br>
@@ -26,11 +26,9 @@<br>
<br>
#define __COGL_H_INSIDE__<br>
<br>
-#include <glib.h><br>
-<br>
#include <cogl/cogl-context.h><br>
<br>
-G_BEGIN_DECLS<br>
+COGL_BEGIN_DECLS<br>
<br>
/**<br>
* SECTION:cogl-texture-pixmap-x11<br>
@@ -183,6 +181,6 @@ cogl_texture_pixmap_x11_set_damage_object (CoglTexturePixmapX11 *texture,<br>
CoglBool<br>
cogl_is_texture_pixmap_x11 (void *object);<br>
<br>
-G_END_DECLS<br>
+COGL_END_DECLS<br>
<br>
#endif /* __COGL_TEXTURE_PIXMAP_X11_H */<br>
diff --git a/<a href="http://configure.ac" target="_blank">configure.ac</a> b/<a href="http://configure.ac" target="_blank">configure.ac</a><br>
index 17d696e..59f5ce7 100644<br>
--- a/<a href="http://configure.ac" target="_blank">configure.ac</a><br>
+++ b/<a href="http://configure.ac" target="_blank">configure.ac</a><br>
@@ -391,8 +391,11 @@ AS_IF([test "x$enable_glib" = "xyes"],<br>
[<br>
AS_GLIBCONFIG([deps/glib])<br>
COGL_EXTRA_CFLAGS="$COGL_EXTRA_CFLAGS -I\$(top_srcdir)/deps"<br>
+ COGL_EXTRA_CFLAGS="$COGL_EXTRA_CFLAGS -I\$(top_builddir)/deps"<br>
COGL_EXTRA_CFLAGS="$COGL_EXTRA_CFLAGS -I\$(top_srcdir)/deps/glib"<br>
+ COGL_EXTRA_CFLAGS="$COGL_EXTRA_CFLAGS -I\$(top_builddir)/deps/glib"<br>
COGL_EXTRA_CFLAGS="$COGL_EXTRA_CFLAGS -I\$(top_srcdir)/deps/gmodule"<br>
+ COGL_EXTRA_CFLAGS="$COGL_EXTRA_CFLAGS -I\$(top_builddir)/deps/gmodule"<br>
EXPERIMENTAL_CONFIG=yes<br>
EXPERIMENTAL_OPTIONS="$EXPERIMENTAL_OPTIONS --disable-glib,"<br>
enable_nls=no<br>
diff --git a/tests/conform/test-utils.h b/tests/conform/test-utils.h<br>
index 265dc32..02af5f4 100644<br>
--- a/tests/conform/test-utils.h<br>
+++ b/tests/conform/test-utils.h<br>
@@ -1,6 +1,8 @@<br>
#ifndef _TEST_UTILS_H_<br>
#define _TEST_UTILS_H_<br>
<br>
+#include <glib.h><br>
+<br>
/* We don't really care about functions that are defined without a<br>
header for the unit tests so we can just disable it here */<br>
#ifdef __GNUC__<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.7.11.3.g3c3efa5<br>
<br>
_______________________________________________<br>
Cogl mailing list<br>
<a href="mailto:Cogl@lists.freedesktop.org">Cogl@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/cogl" target="_blank">http://lists.freedesktop.org/mailman/listinfo/cogl</a><br>
</font></span></blockquote></div><br></div>