Add test_int_in function. Fix test_gtype_in prototype
authorJohan Dahlin <johan@src.gnome.org>
Thu, 13 Nov 2008 20:25:08 +0000 (20:25 +0000)
committerJohan Dahlin <johan@src.gnome.org>
Thu, 13 Nov 2008 20:25:08 +0000 (20:25 +0000)
svn path=/trunk/; revision=918

tests/everything/gitesttypes.c
tests/everything/gitesttypes.h

index a1f3f3c..9afbcea 100644 (file)
@@ -158,6 +158,17 @@ GSList *test_filename_return (void)
 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 @@ test_strv_in (char **arr)
  * @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;
 }
index 18bdceb..fd99924 100644 (file)
@@ -36,7 +36,8 @@ GSList *test_filename_return (void);
 /* 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 */