4 #include <glib/gprintf.h>
11 void test2 (gint in, gint *out);
12 void test3 (gint *inout);
13 void test4 (const gchar *blurb);
14 void test5 (gchar **blurb, gint *len);
15 gint test6 (GList *list);
16 char *test7 (GList *list);
17 TestStruct * test8 (int foo);
18 void test9 (TestStruct *test_struct, int *out);
25 void test2 (gint in, gint *out)
30 void test3 (gint *inout)
35 void test4 (const gchar *blurb)
40 void test5 (gchar **blurb, gint *len)
42 *blurb = g_strdup ("hey there");
43 *len = strlen (*blurb);
46 gint test6 (GList *list)
48 return g_list_length(list);
51 char *test7 (GList *list)
54 GString *string = g_string_new("");
56 for (lp=list; lp ; lp=lp->next)
58 g_string_append(string, (const char *)lp->data);
60 return g_string_free (string, FALSE);
64 TestStruct * test8 (int foo)
68 ret = g_new(TestStruct, 1);
73 void test9 (TestStruct *test_struct, int *out)
75 *out = test_struct->foo;