gobject-introspection r897 - in trunk: . tests/everything
- From: johan svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r897 - in trunk: . tests/everything
- Date: Wed, 12 Nov 2008 14:17:07 +0000 (UTC)
Author: johan
Date: Wed Nov 12 14:17:07 2008
New Revision: 897
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=897&view=rev
Log:
2008-11-12 Johan Dahlin <jdahlin async com br>
* tests/everything/gitesttypes.c (test_filename_return):
* tests/everything/gitesttypes.h:
Add a filename return test.
Modified:
trunk/ChangeLog
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 Wed Nov 12 14:17:07 2008
@@ -110,7 +110,7 @@
return utf8_const;
}
-/** test_utf8_nonconst_return:
+/** test_utf8_nonconst_return:8
* Return value: <char*> UTF-8 string
*/
char *test_utf8_nonconst_return (void)
@@ -140,7 +140,18 @@
}
#endif
-/* filename? */
+/**
+ * test_filename_return:
+ *
+ * Return value: (element-type filename) (transfer none): list of strings
+ */
+GSList *test_filename_return (void)
+{
+ GSList *filenames = NULL;
+ filenames = g_slist_prepend (filenames, "/etc/fstab");
+ return filenames;
+}
+
/* non-basic-types */
static const char *test_sequence[] = {"1", "2", "3"};
Modified: trunk/tests/everything/gitesttypes.h
==============================================================================
--- trunk/tests/everything/gitesttypes.h (original)
+++ trunk/tests/everything/gitesttypes.h Wed Nov 12 14:17:07 2008
@@ -32,7 +32,7 @@
void test_utf8_out (char **out);
void test_utf8_inout (char **inout);
#endif
-/* filename? */
+GSList *test_filename_return (void);
/* non-basic-types */
/* array */
gboolean test_strv_in (char **arr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]