diff options
author | Robert Bragg <robert@linux.intel.com> | 2012-02-17 21:46:39 +0000 |
---|---|---|
committer | Robert Bragg <robert@linux.intel.com> | 2012-02-20 23:12:44 +0000 |
commit | ee940a3d0d0a67d67ad7ebb4b2356a1ae614ca44 (patch) | |
tree | abea4d8aefa470460c8da5748f18bfd9ee0af8f6 /cogl/cogl-attribute.h | |
parent | 1022c285c6f7313972d8ec96a12b71f3e07880d4 (diff) | |
download | cogl-ee940a3d0d0a67d67ad7ebb4b2356a1ae614ca44.tar.gz |
Move all types/prototypes from cogl.h -> cogl[1]-context.h
So we can get to the point where cogl.h is merely an aggregation of
header includes for the 1.x api this moves all the function prototypes
and type definitions into a cogl-context.h and a new cogl1-context.h.
Ideally no code internally should ever need to include cogl.h as it just
represents the public facing header for accessing the 1.x api which
should only be used by Clutter.
Reviewed-by: Neil Roberts <neil@linux.intel.com>
Diffstat (limited to 'cogl/cogl-attribute.h')
-rw-r--r-- | cogl/cogl-attribute.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cogl/cogl-attribute.h b/cogl/cogl-attribute.h index a9ec03ef..b59402cb 100644 --- a/cogl/cogl-attribute.h +++ b/cogl/cogl-attribute.h @@ -31,6 +31,11 @@ #ifndef __COGL_ATTRIBUTE_H__ #define __COGL_ATTRIBUTE_H__ +/* We forward declare the CoglAttribute type here to avoid some circular + * dependency issues with the following headers. + */ +typedef struct _CoglAttribute CoglAttribute; + #include <cogl/cogl-attribute-buffer.h> #include <cogl/cogl-indices.h> @@ -44,8 +49,6 @@ G_BEGIN_DECLS * FIXME */ -typedef struct _CoglAttribute CoglAttribute; - /** * cogl_attribute_new: * @attribute_buffer: The #CoglAttributeBuffer containing the actual |