[gobject-introspection/wip/transformer] gimarshallingtests: Drop more crazy tests, fix up others



commit 27af04af44282d7a418f9f48e328a4de0ad3e64f
Author: Colin Walters <walters verbum org>
Date:   Mon Aug 23 16:45:27 2010 -0400

    gimarshallingtests: Drop more crazy tests, fix up others

 tests/gimarshallingtests.c |  241 ++++++++++----------------------------------
 tests/gimarshallingtests.h |   69 ++++++-------
 2 files changed, 81 insertions(+), 229 deletions(-)
---
diff --git a/tests/gimarshallingtests.c b/tests/gimarshallingtests.c
index 172204e..559c955 100644
--- a/tests/gimarshallingtests.c
+++ b/tests/gimarshallingtests.c
@@ -1040,13 +1040,6 @@ gi_marshalling_tests_utf8_none_in (const gchar *utf8)
     g_assert(strcmp(GI_MARSHALLING_TESTS_CONSTANT_UTF8, utf8) == 0);
 }
 
-void
-gi_marshalling_tests_utf8_full_in (gchar *utf8)
-{
-    g_assert(strcmp(GI_MARSHALLING_TESTS_CONSTANT_UTF8, utf8) == 0);
-    g_free(utf8);
-}
-
 /**
  * gi_marshalling_tests_utf8_none_out:
  * @utf8: (out) (transfer none):
@@ -1422,23 +1415,6 @@ gi_marshalling_tests_garray_utf8_none_in (GArray *array_)
 }
 
 /**
- * gi_marshalling_tests_garray_utf8_full_in:
- * @array_: (element-type utf8) (transfer full):
- */
-void
-gi_marshalling_tests_garray_utf8_full_in (GArray *array_)
-{
-    g_assert (array_->len == 3);
-    g_assert (strcmp (g_array_index (array_, gchar*, 0), "0") == 0);
-    g_assert (strcmp (g_array_index (array_, gchar*, 1), "1") == 0);
-    g_assert (strcmp (g_array_index (array_, gchar*, 2), "2") == 0);
-    g_free (g_array_index (array_, gchar*, 0));
-    g_free (g_array_index (array_, gchar*, 1));
-    g_free (g_array_index (array_, gchar*, 2));
-    g_array_free (array_, TRUE);
-}
-
-/**
  * gi_marshalling_tests_garray_utf8_none_out:
  * @array_: (out) (element-type utf8) (transfer none):
  */
@@ -1765,37 +1741,6 @@ gi_marshalling_tests_glist_utf8_none_in (GList *list)
 }
 
 /**
- * gi_marshalling_tests_glist_utf8_container_in:
- * @list: (element-type utf8) (transfer container):
- */
-void
-gi_marshalling_tests_glist_utf8_container_in (GList *list)
-{
-    g_assert(g_list_length(list) == 3);
-    g_assert(strcmp(g_list_nth_data(list, 0), "0") == 0);
-    g_assert(strcmp(g_list_nth_data(list, 1), "1") == 0);
-    g_assert(strcmp(g_list_nth_data(list, 2), "2") == 0);
-    g_list_free(list);
-}
-
-/**
- * gi_marshalling_tests_glist_utf8_full_in:
- * @list: (element-type utf8) (transfer full):
- */
-void
-gi_marshalling_tests_glist_utf8_full_in (GList *list)
-{
-    g_assert(g_list_length(list) == 3);
-    g_assert(strcmp(g_list_nth_data(list, 0), "0") == 0);
-    g_assert(strcmp(g_list_nth_data(list, 1), "1") == 0);
-    g_assert(strcmp(g_list_nth_data(list, 2), "2") == 0);
-    g_free(g_list_nth_data(list, 0));
-    g_free(g_list_nth_data(list, 1));
-    g_free(g_list_nth_data(list, 2));
-    g_list_free(list);
-}
-
-/**
  * gi_marshalling_tests_glist_utf8_none_out:
  * @list: (out) (element-type utf8) (transfer none):
  */
@@ -1879,10 +1824,10 @@ gi_marshalling_tests_glist_utf8_container_inout (GList **list)
     g_assert(strcmp(g_list_nth_data(*list, 1), "1") == 0);
     g_assert(strcmp(g_list_nth_data(*list, 2), "2") == 0);
 
+    result = g_list_prepend(result, "1");
+    result = g_list_prepend(result, "0");
     result = g_list_prepend(result, "-1");
     result = g_list_prepend(result, "-2");
-    result = g_list_prepend(result, "0");
-    result = g_list_prepend(result, "1");
 
     *list = result;
 }
@@ -1901,10 +1846,10 @@ gi_marshalling_tests_glist_utf8_full_inout (GList **list)
     g_assert(strcmp(g_list_nth_data(*list, 1), "1") == 0);
     g_assert(strcmp(g_list_nth_data(*list, 2), "2") == 0);
 
+    result = g_list_prepend(result, g_strdup("1"));
+    result = g_list_prepend(result, g_strdup("0"));
     result = g_list_prepend(result, g_strdup("-1"));
     result = g_list_prepend(result, g_strdup("-2"));
-    result = g_list_prepend(result, g_strdup("0"));
-    result = g_list_prepend(result, g_strdup("1"));
 
     *list = result;
 }
@@ -2011,37 +1956,6 @@ gi_marshalling_tests_gslist_utf8_none_in (GSList *list)
 }
 
 /**
- * gi_marshalling_tests_gslist_utf8_container_in:
- * @list: (element-type utf8) (transfer container):
- */
-void
-gi_marshalling_tests_gslist_utf8_container_in (GSList *list)
-{
-    g_assert(g_slist_length(list) == 3);
-    g_assert(strcmp(g_slist_nth_data(list, 0), "0") == 0);
-    g_assert(strcmp(g_slist_nth_data(list, 1), "1") == 0);
-    g_assert(strcmp(g_slist_nth_data(list, 2), "2") == 0);
-    g_slist_free(list);
-}
-
-/**
- * gi_marshalling_tests_gslist_utf8_full_in:
- * @list: (element-type utf8) (transfer full):
- */
-void
-gi_marshalling_tests_gslist_utf8_full_in (GSList *list)
-{
-    g_assert(g_slist_length(list) == 3);
-    g_assert(strcmp(g_slist_nth_data(list, 0), "0") == 0);
-    g_assert(strcmp(g_slist_nth_data(list, 1), "1") == 0);
-    g_assert(strcmp(g_slist_nth_data(list, 2), "2") == 0);
-    g_free(g_slist_nth_data(list, 0));
-    g_free(g_slist_nth_data(list, 1));
-    g_free(g_slist_nth_data(list, 2));
-    g_slist_free(list);
-}
-
-/**
  * gi_marshalling_tests_gslist_utf8_none_out:
  * @list: (out) (element-type utf8) (transfer none):
  */
@@ -2129,10 +2043,10 @@ gi_marshalling_tests_gslist_utf8_container_inout (GSList **list)
     g_assert(strcmp(g_slist_nth_data(*list, 1), "1") == 0);
     g_assert(strcmp(g_slist_nth_data(*list, 2), "2") == 0);
 
+    result = g_slist_prepend(*list, "1");
+    result = g_slist_prepend(*list, "0");
     result = g_slist_prepend(*list, "-1");
     result = g_slist_prepend(*list, "-2");
-    result = g_slist_prepend(*list, "0");
-    result = g_slist_prepend(*list, "1");
 
     *list = result;
 }
@@ -2263,46 +2177,6 @@ gi_marshalling_tests_ghashtable_utf8_none_in (GHashTable *hash_table)
 }
 
 /**
- * gi_marshalling_tests_ghashtable_utf8_container_in:
- * @hash_table: (element-type utf8 utf8) (transfer container):
- */
-void
-gi_marshalling_tests_ghashtable_utf8_container_in (GHashTable *hash_table)
-{
-    g_assert(strcmp(g_hash_table_lookup(hash_table, "-1"), "1") == 0);
-    g_assert(strcmp(g_hash_table_lookup(hash_table, "0"), "0") == 0);
-    g_assert(strcmp(g_hash_table_lookup(hash_table, "1"), "-1") == 0);
-    g_assert(strcmp(g_hash_table_lookup(hash_table, "2"), "-2") == 0);
-    g_hash_table_steal_all(hash_table);
-    g_hash_table_unref(hash_table);
-}
-
-/**
- * gi_marshalling_tests_ghashtable_utf8_full_in:
- * @hash_table: (element-type utf8 utf8) (transfer full):
- */
-void
-gi_marshalling_tests_ghashtable_utf8_full_in (GHashTable *hash_table)
-{
-    GHashTableIter hash_table_iter;
-    gpointer key, value;
-
-    g_assert(strcmp(g_hash_table_lookup(hash_table, "-1"), "1") == 0);
-    g_assert(strcmp(g_hash_table_lookup(hash_table, "0"), "0") == 0);
-    g_assert(strcmp(g_hash_table_lookup(hash_table, "1"), "-1") == 0);
-    g_assert(strcmp(g_hash_table_lookup(hash_table, "2"), "-2") == 0);
-
-    g_hash_table_iter_init(&hash_table_iter, hash_table);
-    while (g_hash_table_iter_next(&hash_table_iter, &key, &value)) {
-        g_free(key);
-        g_free(value);
-        g_hash_table_iter_steal(&hash_table_iter);
-    }
-
-    g_hash_table_unref(hash_table);
-}
-
-/**
  * gi_marshalling_tests_ghashtable_utf8_none_out:
  * @hash_table: (out) (element-type utf8 utf8) (transfer none):
  */
@@ -2390,7 +2264,7 @@ gi_marshalling_tests_ghashtable_utf8_container_inout (GHashTable **hash_table)
 
     g_hash_table_insert(result, "-1", "1");
     g_hash_table_insert(result, "0", "0");
-    g_hash_table_insert(result, "1", "-1");
+    g_hash_table_insert(result, "1", "1");
 
     *hash_table = result;
 }
@@ -2538,7 +2412,7 @@ gi_marshalling_tests_genum_get_type (void)
 }
 
 GIMarshallingTestsEnum
-gi_marshalling_tests_genum_return (void)
+gi_marshalling_tests_genum_returnv (void)
 {
     return GI_MARSHALLING_TESTS_GENUM_VALUE3;
 }
@@ -2572,7 +2446,7 @@ gi_marshalling_tests_genum_inout (GIMarshallingTestsGEnum *enum_)
 
 
 GIMarshallingTestsEnum
-gi_marshalling_tests_enum_return (void)
+gi_marshalling_tests_enum_returnv (void)
 {
     return GI_MARSHALLING_TESTS_ENUM_VALUE3;
 }
@@ -2623,7 +2497,7 @@ gi_marshalling_tests_flags_get_type (void)
 }
 
 GIMarshallingTestsFlags
-gi_marshalling_tests_flags_return (void)
+gi_marshalling_tests_flags_returnv (void)
 {
     return GI_MARSHALLING_TESTS_FLAGS_VALUE2;
 }
@@ -2663,11 +2537,11 @@ gi_marshalling_tests_flags_inout (GIMarshallingTestsFlags *flags_)
 
 
 /**
- * gi_marshalling_tests__simple_struct_return:
+ * gi_marshalling_tests_simple_struct_returnv:
  * Returns: (transfer none):
  */
 GIMarshallingTestsSimpleStruct *
-gi_marshalling_tests__simple_struct_return (void)
+gi_marshalling_tests_simple_struct_returnv (void)
 {
     static GIMarshallingTestsSimpleStruct *struct_ = NULL;
 
@@ -2682,11 +2556,11 @@ gi_marshalling_tests__simple_struct_return (void)
 }
 
 /**
- * gi_marshalling_tests__simple_struct_in:
+ * gi_marshalling_tests_simple_struct_inv:
  * @struct_: (transfer none):
  */
 void
-gi_marshalling_tests__simple_struct_in (GIMarshallingTestsSimpleStruct *struct_)
+gi_marshalling_tests_simple_struct_inv (GIMarshallingTestsSimpleStruct *struct_)
 {
     g_assert(struct_->long_ == 6);
     g_assert(struct_->int8 == 7);
@@ -2713,11 +2587,11 @@ gi_marshalling_tests_pointer_struct_get_type (void)
 }
 
 /**
- * gi_marshalling_tests__pointer_struct_return:
+ * gi_marshalling_tests_pointer_struct_returnv:
  * Returns: (transfer none):
  */
 GIMarshallingTestsPointerStruct *
-gi_marshalling_tests__pointer_struct_return (void)
+gi_marshalling_tests_pointer_struct_returnv (void)
 {
     static GIMarshallingTestsPointerStruct *struct_ = NULL;
 
@@ -2731,11 +2605,11 @@ gi_marshalling_tests__pointer_struct_return (void)
 }
 
 /**
- * gi_marshalling_tests__pointer_struct_in:
+ * gi_marshalling_tests_pointer_struct_inv:
  * @struct_: (transfer none):
  */
 void
-gi_marshalling_tests__pointer_struct_in (GIMarshallingTestsPointerStruct *struct_)
+gi_marshalling_tests_pointer_struct_inv (GIMarshallingTestsPointerStruct *struct_)
 {
     g_assert(struct_->long_ == 42);
 }
@@ -2779,11 +2653,11 @@ gi_marshalling_tests_boxed_struct_new (void)
 }
 
 /**
- * gi_marshalling_tests__boxed_struct_return:
+ * gi_marshalling_tests_boxed_struct_returnv:
  * Returns: (transfer none):
  */
 GIMarshallingTestsBoxedStruct *
-gi_marshalling_tests__boxed_struct_return (void)
+gi_marshalling_tests_boxed_struct_returnv (void)
 {
     static GIMarshallingTestsBoxedStruct *struct_ = NULL;
 
@@ -2802,21 +2676,21 @@ gi_marshalling_tests__boxed_struct_return (void)
 }
 
 /**
- * gi_marshalling_tests__boxed_struct_in:
+ * gi_marshalling_tests_boxed_struct_inv:
  * @struct_: (transfer none):
  */
 void
-gi_marshalling_tests__boxed_struct_in (GIMarshallingTestsBoxedStruct *struct_)
+gi_marshalling_tests_boxed_struct_inv (GIMarshallingTestsBoxedStruct *struct_)
 {
     g_assert(struct_->long_ == 42);
 }
 
 /**
- * gi_marshalling_tests__boxed_struct_out:
+ * gi_marshalling_tests_boxed_struct_out:
  * @struct_: (out) (transfer none):
  */
 void
-gi_marshalling_tests__boxed_struct_out (GIMarshallingTestsBoxedStruct **struct_)
+gi_marshalling_tests_boxed_struct_out (GIMarshallingTestsBoxedStruct **struct_)
 {
     static GIMarshallingTestsBoxedStruct *new_struct = NULL;
 
@@ -2830,11 +2704,11 @@ gi_marshalling_tests__boxed_struct_out (GIMarshallingTestsBoxedStruct **struct_)
 }
 
 /**
- * gi_marshalling_tests__boxed_struct_inout:
+ * gi_marshalling_tests_boxed_struct_inout:
  * @struct_: (inout) (transfer full):
  */
 void
-gi_marshalling_tests__boxed_struct_inout (GIMarshallingTestsBoxedStruct **struct_)
+gi_marshalling_tests_boxed_struct_inout (GIMarshallingTestsBoxedStruct **struct_)
 {
     g_assert((*struct_)->long_ == 42);
 
@@ -2875,11 +2749,11 @@ gi_marshalling_tests_union_get_type (void)
 }
 
 /**
- * gi_marshalling_tests__union_return:
+ * gi_marshalling_tests_union_returnv:
  * Returns: (transfer none):
  */
 GIMarshallingTestsUnion *
-gi_marshalling_tests__union_return (void)
+gi_marshalling_tests_union_returnv (void)
 {
     static GIMarshallingTestsUnion *union_ = NULL;
 
@@ -2893,11 +2767,11 @@ gi_marshalling_tests__union_return (void)
 }
 
 /**
- * gi_marshalling_tests__union_in:
+ * gi_marshalling_tests_union_inv:
  * @union_: (transfer none):
  */
 void
-gi_marshalling_tests__union_in (GIMarshallingTestsUnion *union_)
+gi_marshalling_tests_union_inv (GIMarshallingTestsUnion *union_)
 {
     g_assert(union_->long_ == 42);
 }
@@ -3108,11 +2982,11 @@ gi_marshalling_tests_object_real_method_with_default_implementation (GIMarshalli
 
 
 /**
- * gi_marshalling_tests__object_none_return:
+ * gi_marshalling_tests_object_none_return:
  * Returns: (transfer none):
  */
 GIMarshallingTestsObject *
-gi_marshalling_tests__object_none_return (void)
+gi_marshalling_tests_object_none_return (void)
 {
     static GIMarshallingTestsObject *object = NULL;
 
@@ -3124,42 +2998,31 @@ gi_marshalling_tests__object_none_return (void)
 }
 
 /**
- * gi_marshalling_tests__object_full_return:
+ * gi_marshalling_tests_object_full_return:
  * Returns: (transfer full):
  */
 GIMarshallingTestsObject *
-gi_marshalling_tests__object_full_return (void)
+gi_marshalling_tests_object_full_return (void)
 {
     return g_object_new(GI_MARSHALLING_TESTS_TYPE_OBJECT, NULL);
 }
 
 /**
- * gi_marshalling_tests__object_none_in:
+ * gi_marshalling_tests_object_none_in:
  * @object: (transfer none):
  */
 void
-gi_marshalling_tests__object_none_in (GIMarshallingTestsObject *object)
-{
-    g_assert(object->int_ == 42);
-}
-
-/**
- * gi_marshalling_tests__object_full_in:
- * @object: (transfer full):
- */
-void
-gi_marshalling_tests__object_full_in (GIMarshallingTestsObject *object)
+gi_marshalling_tests_object_none_in (GIMarshallingTestsObject *object)
 {
     g_assert(object->int_ == 42);
-    g_object_unref(object);
 }
 
 /**
- * gi_marshalling_tests__object_none_out:
+ * gi_marshalling_tests_object_none_out:
  * @object: (out) (transfer none):
  */
 void
-gi_marshalling_tests__object_none_out (GIMarshallingTestsObject **object)
+gi_marshalling_tests_object_none_out (GIMarshallingTestsObject **object)
 {
     static GIMarshallingTestsObject *new_object = NULL;
 
@@ -3171,21 +3034,21 @@ gi_marshalling_tests__object_none_out (GIMarshallingTestsObject **object)
 }
 
 /**
- * gi_marshalling_tests__object_full_out:
+ * gi_marshalling_tests_object_full_out:
  * @object: (out) (transfer full):
  */
 void
-gi_marshalling_tests__object_full_out (GIMarshallingTestsObject **object)
+gi_marshalling_tests_object_full_out (GIMarshallingTestsObject **object)
 {
     *object = g_object_new(GI_MARSHALLING_TESTS_TYPE_OBJECT, NULL);
 }
 
 /**
- * gi_marshalling_tests__object_none_inout:
+ * gi_marshalling_tests_object_none_inout:
  * @object: (inout) (transfer none):
  */
 void
-gi_marshalling_tests__object_none_inout (GIMarshallingTestsObject **object)
+gi_marshalling_tests_object_none_inout (GIMarshallingTestsObject **object)
 {
     static GIMarshallingTestsObject *new_object = NULL;
 
@@ -3200,11 +3063,11 @@ gi_marshalling_tests__object_none_inout (GIMarshallingTestsObject **object)
 }
 
 /**
- * gi_marshalling_tests__object_full_inout:
+ * gi_marshalling_tests_object_full_inout:
  * @object: (inout) (transfer full):
  */
 void
-gi_marshalling_tests__object_full_inout (GIMarshallingTestsObject **object)
+gi_marshalling_tests_object_full_inout (GIMarshallingTestsObject **object)
 {
     g_assert((*object)->int_ == 42);
     g_object_unref(*object);
@@ -3213,21 +3076,21 @@ gi_marshalling_tests__object_full_inout (GIMarshallingTestsObject **object)
 }
 
 /**
- * gi_marshalling_tests__object_test_int8_in:
+ * gi_marshalling_tests_object_test_int8_in:
  * @in: (in):
  */
 void
-gi_marshalling_tests__object_int8_in (GIMarshallingTestsObject *object, gint8 in)
+gi_marshalling_tests_object_int8_in (GIMarshallingTestsObject *object, gint8 in)
 {
   gi_marshalling_tests_object_method_int8_in (object, in);
 }
 
 /**
- * gi_marshalling_tests__object_test_int8_out:
+ * gi_marshalling_tests_object_test_int8_out:
  * @out: (out):
  */
 void
-gi_marshalling_tests__object_int8_out (GIMarshallingTestsObject *object, gint8 *out)
+gi_marshalling_tests_object_int8_out (GIMarshallingTestsObject *object, gint8 *out)
 {
   gi_marshalling_tests_object_method_int8_out (object, out);
 }
@@ -3377,12 +3240,12 @@ gi_marshalling_tests_overrides_struct_method (GIMarshallingTestsOverridesStruct
 
 
 /**
- * gi_marshalling_tests__overrides_struct_return:
+ * gi_marshalling_tests_overrides_struct_returnv:
  *
  * Returns: (transfer full):
  */
 GIMarshallingTestsOverridesStruct *
-gi_marshalling_tests__overrides_struct_return (void)
+gi_marshalling_tests_overrides_struct_returnv (void)
 {
     return gi_marshalling_tests_overrides_struct_new();
 }
@@ -3426,12 +3289,12 @@ gi_marshalling_tests_overrides_object_method (GIMarshallingTestsOverridesObject
 
 
 /**
- * gi_marshalling_tests__overrides_object_return:
+ * gi_marshalling_tests_overrides_object_returnv:
  *
  * Returns: (transfer full):
  */
 GIMarshallingTestsOverridesObject *
-gi_marshalling_tests__overrides_object_return (void)
+gi_marshalling_tests_overrides_object_returnv (void)
 {
     return g_object_new (GI_MARSHALLING_TESTS_TYPE_OVERRIDES_OBJECT, NULL);
 }
diff --git a/tests/gimarshallingtests.h b/tests/gimarshallingtests.h
index 4a8f3f0..4d9923a 100644
--- a/tests/gimarshallingtests.h
+++ b/tests/gimarshallingtests.h
@@ -305,8 +305,6 @@ GArray *gi_marshalling_tests_garray_utf8_full_return (void);
 
 void gi_marshalling_tests_garray_int_none_in (GArray *array_);
 void gi_marshalling_tests_garray_utf8_none_in (GArray *array_);
-void gi_marshalling_tests_garray_utf8_container_in (GArray *array_);
-void gi_marshalling_tests_garray_utf8_full_in (GArray *array_);
 
 void gi_marshalling_tests_garray_utf8_none_out (GArray **array_);
 void gi_marshalling_tests_garray_utf8_container_out (GArray **array_);
@@ -423,7 +421,7 @@ typedef enum
   GI_MARSHALLING_TESTS_ENUM_VALUE3 = 42
 } GIMarshallingTestsEnum;
 
-GIMarshallingTestsEnum gi_marshalling_tests_enum_return (void);
+GIMarshallingTestsEnum gi_marshalling_tests_enum_returnv (void);
 
 void gi_marshalling_tests_enum_in (GIMarshallingTestsEnum enum_);
 
@@ -444,7 +442,7 @@ typedef enum
 GType gi_marshalling_tests_genum_get_type (void) G_GNUC_CONST;
 #define GI_MARSHALLING_TESTS_TYPE_GENUM (gi_marshalling_tests_genum_get_type ())
 
-GIMarshallingTestsEnum gi_marshalling_tests_genum_return (void);
+GIMarshallingTestsEnum gi_marshalling_tests_genum_returnv (void);
 
 void gi_marshalling_tests_genum_in (GIMarshallingTestsGEnum enum_);
 
@@ -465,7 +463,7 @@ typedef enum
 GType gi_marshalling_tests_flags_get_type (void) G_GNUC_CONST;
 #define GI_MARSHALLING_TESTS_TYPE_FLAGS (gi_marshalling_tests_flags_get_type ())
 
-GIMarshallingTestsFlags gi_marshalling_tests_flags_return (void);
+GIMarshallingTestsFlags gi_marshalling_tests_flags_returnv (void);
 
 void gi_marshalling_tests_flags_in (GIMarshallingTestsFlags flags_);
 void gi_marshalling_tests_flags_in_zero (GIMarshallingTestsFlags flags);
@@ -491,13 +489,9 @@ typedef struct {
 } GIMarshallingTestsNotSimpleStruct;
 
 
-GIMarshallingTestsSimpleStruct *gi_marshalling_tests__simple_struct_return (void);
+GIMarshallingTestsSimpleStruct *gi_marshalling_tests_simple_struct_returnv (void);
 
-void gi_marshalling_tests__simple_struct_in (GIMarshallingTestsSimpleStruct *struct_);
-
-void gi_marshalling_tests__simple_struct_out (GIMarshallingTestsSimpleStruct **struct_);
-
-void gi_marshalling_tests__simple_struct_inout (GIMarshallingTestsSimpleStruct **struct_);
+void gi_marshalling_tests_simple_struct_inv (GIMarshallingTestsSimpleStruct *struct_);
 
 void gi_marshalling_tests_simple_struct_method (GIMarshallingTestsSimpleStruct *struct_);
 
@@ -508,14 +502,9 @@ typedef struct {
 
 GType gi_marshalling_tests_pointer_struct_get_type (void) G_GNUC_CONST;
 
-GIMarshallingTestsPointerStruct *gi_marshalling_tests__pointer_struct_return (void);
-
-void gi_marshalling_tests__pointer_struct_in (GIMarshallingTestsPointerStruct *struct_);
-
-void gi_marshalling_tests__pointer_struct_out (GIMarshallingTestsPointerStruct **struct_);
-
-void gi_marshalling_tests__pointer_struct_inout (GIMarshallingTestsPointerStruct **struct_);
+GIMarshallingTestsPointerStruct *gi_marshalling_tests_pointer_struct_returnv (void);
 
+void gi_marshalling_tests_pointer_struct_inv (GIMarshallingTestsPointerStruct *struct_);
 
 typedef struct {
     glong long_;
@@ -526,13 +515,13 @@ GType gi_marshalling_tests_boxed_struct_get_type (void) G_GNUC_CONST;
 
 GIMarshallingTestsBoxedStruct *gi_marshalling_tests_boxed_struct_new (void);
 
-GIMarshallingTestsBoxedStruct *gi_marshalling_tests__boxed_struct_return (void);
+GIMarshallingTestsBoxedStruct *gi_marshalling_tests_boxed_struct_returnv (void);
 
-void gi_marshalling_tests__boxed_struct_in (GIMarshallingTestsBoxedStruct *struct_);
+void gi_marshalling_tests_boxed_struct_inv (GIMarshallingTestsBoxedStruct *struct_);
 
-void gi_marshalling_tests__boxed_struct_out (GIMarshallingTestsBoxedStruct **struct_);
+void gi_marshalling_tests_boxed_struct_out (GIMarshallingTestsBoxedStruct **struct_);
 
-void gi_marshalling_tests__boxed_struct_inout (GIMarshallingTestsBoxedStruct **struct_);
+void gi_marshalling_tests_boxed_struct_inout (GIMarshallingTestsBoxedStruct **struct_);
 
 typedef union {
     glong long_;
@@ -540,13 +529,13 @@ typedef union {
 
 GType gi_marshalling_tests_union_get_type (void) G_GNUC_CONST;
 
-GIMarshallingTestsUnion *gi_marshalling_tests__union_return (void);
+GIMarshallingTestsUnion *gi_marshalling_tests_union_returnv (void);
 
-void gi_marshalling_tests__union_in (GIMarshallingTestsUnion *union_);
+void gi_marshalling_tests_union_inv (GIMarshallingTestsUnion *union_);
 
-void gi_marshalling_tests__union_out (GIMarshallingTestsUnion **union_);
+void gi_marshalling_tests_union_out (GIMarshallingTestsUnion **union_);
 
-void gi_marshalling_tests__union_inout (GIMarshallingTestsUnion **union_);
+void gi_marshalling_tests_union_inout (GIMarshallingTestsUnion **union_);
 
 void gi_marshalling_tests_union_method (GIMarshallingTestsUnion *union_);
 
@@ -608,21 +597,21 @@ void gi_marshalling_tests_object_method_int8_out (GIMarshallingTestsObject *obje
 void gi_marshalling_tests_object_method_with_default_implementation (GIMarshallingTestsObject *object, gint8 in);
 
 
-GIMarshallingTestsObject *gi_marshalling_tests__object_none_return (void);
-GIMarshallingTestsObject *gi_marshalling_tests__object_full_return (void);
+GIMarshallingTestsObject *gi_marshalling_tests_object_none_return (void);
+GIMarshallingTestsObject *gi_marshalling_tests_object_full_return (void);
 
-void gi_marshalling_tests__object_none_in (GIMarshallingTestsObject *object);
-void gi_marshalling_tests__object_full_in (GIMarshallingTestsObject *object);
+void gi_marshalling_tests_object_none_in (GIMarshallingTestsObject *object);
+void gi_marshalling_tests_object_full_in (GIMarshallingTestsObject *object);
 
-void gi_marshalling_tests__object_none_out (GIMarshallingTestsObject **object);
-void gi_marshalling_tests__object_full_out (GIMarshallingTestsObject **object);
+void gi_marshalling_tests_object_none_out (GIMarshallingTestsObject **object);
+void gi_marshalling_tests_object_full_out (GIMarshallingTestsObject **object);
 
-void gi_marshalling_tests__object_none_inout (GIMarshallingTestsObject **object);
-void gi_marshalling_tests__object_full_inout (GIMarshallingTestsObject **object);
-void gi_marshalling_tests__object_inout_same (GIMarshallingTestsObject **object);
+void gi_marshalling_tests_object_none_inout (GIMarshallingTestsObject **object);
+void gi_marshalling_tests_object_full_inout (GIMarshallingTestsObject **object);
+void gi_marshalling_tests_object_inout_same (GIMarshallingTestsObject **object);
 
-void gi_marshalling_tests__object_int8_in (GIMarshallingTestsObject *object, gint8 in);
-void gi_marshalling_tests__object_int8_out (GIMarshallingTestsObject *object, gint8 *out);
+void gi_marshalling_tests_object_int8_in (GIMarshallingTestsObject *object, gint8 in);
+void gi_marshalling_tests_object_int8_out (GIMarshallingTestsObject *object, gint8 *out);
 
 #define GI_MARSHALLING_TESTS_TYPE_SUB_OBJECT             (gi_marshalling_tests_sub_object_get_type ())
 #define GI_MARSHALLING_TESTS_SUB_OBJECT(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), GI_MARSHALLING_TESTS_TYPE_SUB_OBJECT, GIMarshallingTestsSubObject))
@@ -699,7 +688,7 @@ GIMarshallingTestsOverridesStruct *gi_marshalling_tests_overrides_struct_new (vo
 
 glong gi_marshalling_tests_overrides_struct_method (GIMarshallingTestsOverridesStruct *struct_);
 
-GIMarshallingTestsOverridesStruct *gi_marshalling_tests__overrides_struct_return (void);
+GIMarshallingTestsOverridesStruct *gi_marshalling_tests_overrides_struct_returnv (void);
 
 
 #define GI_MARSHALLING_TESTS_TYPE_OVERRIDES_OBJECT             (gi_marshalling_tests_overrides_object_get_type ())
@@ -731,6 +720,6 @@ GIMarshallingTestsOverridesObject *gi_marshalling_tests_overrides_object_new (vo
 glong gi_marshalling_tests_overrides_object_method (GIMarshallingTestsOverridesObject *object);
 
 
-GIMarshallingTestsOverridesObject *gi_marshalling_tests__overrides_object_return (void);
+GIMarshallingTestsOverridesObject *gi_marshalling_tests_overrides_object_returnv (void);
 
-#endif /* __GI_MARSHALLING_TESTS_H__ */
+#endif /* _GI_MARSHALLING_TESTS_H_ */



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