gobject-introspection r918 - trunk/tests/everything



Author: johan
Date: Thu Nov 13 20:25:08 2008
New Revision: 918
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=918&view=rev

Log:
Add test_int_in function. Fix test_gtype_in prototype

Modified:
   trunk/tests/everything/gitesttypes.c
   trunk/tests/everything/gitesttypes.h

Modified: trunk/tests/everything/gitesttypes.c
==============================================================================
--- trunk/tests/everything/gitesttypes.c	(original)
+++ trunk/tests/everything/gitesttypes.c	Thu Nov 13 20:25:08 2008
@@ -158,6 +158,17 @@
 static const char *test_sequence[] = {"1", "2", "3"};
 
 /* array */
+/**
+ * test_int_in:
+ * @n_types: 
+ * @types: (array length=n_types): List of ints
+ */
+int
+test_int_in (int n_types, int *types)
+{
+  return n_types;
+}
+
 gboolean
 test_strv_in (char **arr)
 {
@@ -178,7 +189,7 @@
  * @types: (array length=n_types): List of types
  */
 int
-test_gtype_in (int n_types, GType **types)
+test_gtype_in (int n_types, GType *types)
 {
   return n_types;
 }

Modified: trunk/tests/everything/gitesttypes.h
==============================================================================
--- trunk/tests/everything/gitesttypes.h	(original)
+++ trunk/tests/everything/gitesttypes.h	Thu Nov 13 20:25:08 2008
@@ -36,7 +36,8 @@
 /* non-basic-types */
 /* array */
 gboolean test_strv_in (char **arr);
-int test_gtype_in (int n_types, GType **types);
+int test_int_in (int n_types, int *types);
+int test_gtype_in (int n_types, GType *types);
 char **test_strv_out (void);
 /* interface */
 /* GList */



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