summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Dahlin <johan@src.gnome.org>2009-01-14 21:33:29 +0000
committerJohan Dahlin <johan@src.gnome.org>2009-01-14 21:33:29 +0000
commit55aca91f752a6676eabf3be8d940361ea1dcdc35 (patch)
tree64fde346c0174cf67176ee884b231944e654bd61
parentd953f65ad20ea6ecc39882de8230bb2522ea1a04 (diff)
downloadgobject-introspection-55aca91f752a6676eabf3be8d940361ea1dcdc35.tar.gz
Add a few more test-cases
svn path=/trunk/; revision=1038
-rw-r--r--tests/scanner/annotation.c25
-rw-r--r--tests/scanner/annotation.h2
2 files changed, 25 insertions, 2 deletions
diff --git a/tests/scanner/annotation.c b/tests/scanner/annotation.c
index 337b9733..235f616a 100644
--- a/tests/scanner/annotation.c
+++ b/tests/scanner/annotation.c
@@ -515,7 +515,7 @@ annotation_object_do_not_use (AnnotationObject *object)
/**
* annotation_init:
* @argc: (inout): The number of args.
- * @argv: (inout) (array length=argc zero-terminated=1): The arguments.
+ * @argv: (inout) (array length=argc): The arguments.
**/
void
annotation_init (int *argc, char ***argv)
@@ -527,7 +527,7 @@ annotation_init (int *argc, char ***argv)
* annotation_return_array:
* @length: (out): Number of return values
*
- * Return value: (array length=length zero-terminated=1): The return value
+ * Return value: (array length=length): The return value
**/
char **
annotation_return_array (int *length)
@@ -536,6 +536,27 @@ annotation_return_array (int *length)
}
/**
+ * annotation_string_zero_terminated:
+ *
+ * Return value: (array zero-terminated=1): The return value
+ **/
+char **
+annotation_string_zero_terminated (void)
+{
+ return NULL;
+}
+
+/**
+ * annotation_string_zero_terminated_out:
+ * @out: (array zero-terminated=1) (inout)
+ **/
+void
+annotation_string_zero_terminated_out (char ***out)
+{
+ return NULL;
+}
+
+/**
* annotation_versioned:
*
* Since: 0.6
diff --git a/tests/scanner/annotation.h b/tests/scanner/annotation.h
index 59905134..70cf3c70 100644
--- a/tests/scanner/annotation.h
+++ b/tests/scanner/annotation.h
@@ -106,6 +106,8 @@ void annotation_init (int *argc,
char ***argv);
char ** annotation_return_array (int *length);
void annotation_versioned (void);
+char ** annotation_string_zero_terminated (void);
+void annotation_string_zero_terminated_out (char ***out);
/**
* AnnotationStruct: