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.
This commit is contained in:
Emmanuele Bassi 2009-07-01 12:34:54 +01:00
parent a6880643a0
commit fcc3d56209

View File

@ -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().</note>
*/
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: