[cogl/lionel/introspection-next: 25/45] euler: add introspection support



commit 1713bb37a83a78a6af44e16227a1d59600cf4b62
Author: Lionel Landwerlin <llandwerlin gmail com>
Date:   Tue Sep 3 16:13:45 2013 +0100

    euler: add introspection support

 cogl/cogl-euler.c |    5 +++++
 cogl/cogl-euler.h |    2 ++
 2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/cogl/cogl-euler.c b/cogl/cogl-euler.c
index 5931f89..65a26db 100644
--- a/cogl/cogl-euler.c
+++ b/cogl/cogl-euler.c
@@ -31,10 +31,15 @@
 #include <cogl-util.h>
 #include <cogl-euler.h>
 #include <cogl-matrix.h>
+#include "cogl-gtype-private.h"
 
 #include <math.h>
 #include <string.h>
 
+COGL_GTYPE_DEFINE_BOXED ("Euler", euler,
+                         cogl_euler_copy,
+                         cogl_euler_free);
+
 void
 cogl_euler_init (CoglEuler *euler,
                  float heading,
diff --git a/cogl/cogl-euler.h b/cogl/cogl-euler.h
index bf526d7..94866ef 100644
--- a/cogl/cogl-euler.h
+++ b/cogl/cogl-euler.h
@@ -157,6 +157,8 @@ struct _CoglEuler
 };
 COGL_STRUCT_SIZE_ASSERT (CoglEuler, 32);
 
+COGL_GTYPE_DECLARE_TYPE (euler);
+
 /**
  * cogl_euler_init:
  * @euler: The #CoglEuler angle to initialize


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