From: Johan Dahlin Date: Wed, 14 Jan 2009 21:33:29 +0000 (+0000) Subject: Add a few more test-cases X-Git-Tag: GOBJECT_INTROSPECTION_0_6_2~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=55aca91f752a6676eabf3be8d940361ea1dcdc35;p=platform%2Fupstream%2Fgobject-introspection.git Add a few more test-cases svn path=/trunk/; revision=1038 --- 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) @@ -535,6 +535,27 @@ annotation_return_array (int *length) return NULL; } +/** + * 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: * 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: