From fcc3d56209f5783f21388599ebe2b9c262a07291 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Wed, 1 Jul 2009 12:34:54 +0100 Subject: [PATCH] Split the typdef to avoid confusing scanners Scanners like gtk-doc and g-ir-scanner get confused by: typedef struct _Foo { ... } Foo; And expect instead: typedef struct _Foo Foo; struct _Foo { ... }; CoglMatrix definition should be changed to avoid the former type. --- cogl-matrix.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cogl-matrix.h b/cogl-matrix.h index bf3691a5c..e2c07f5c8 100644 --- a/cogl-matrix.h +++ b/cogl-matrix.h @@ -41,6 +41,7 @@ G_BEGIN_DECLS * be used for direct manipulation of these matrices. */ +typedef struct _CoglMatrix CoglMatrix; /** * CoglMatrix: @@ -70,7 +71,8 @@ G_BEGIN_DECLS * undefined results. If you need to initialize a matrix with a constant other * than the identity matrix you can use cogl_matrix_init_from_array(). */ -typedef struct _CoglMatrix { +struct _CoglMatrix +{ /*< private >*/ /* column 0 */ @@ -103,7 +105,7 @@ typedef struct _CoglMatrix { gulong _padding1; gulong _padding2; gulong _padding3; -} CoglMatrix; +}; /** * cogl_matrix_init_identity: