gobject-introspection r1038 - trunk/tests/scanner



Author: johan
Date: Wed Jan 14 21:33:29 2009
New Revision: 1038
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=1038&view=rev

Log:
Add a few more test-cases

Modified:
   trunk/tests/scanner/annotation.c
   trunk/tests/scanner/annotation.h

Modified: trunk/tests/scanner/annotation.c
==============================================================================
--- trunk/tests/scanner/annotation.c	(original)
+++ trunk/tests/scanner/annotation.c	Wed Jan 14 21:33:29 2009
@@ -515,7 +515,7 @@
 /**
  * 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_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_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

Modified: trunk/tests/scanner/annotation.h
==============================================================================
--- trunk/tests/scanner/annotation.h	(original)
+++ trunk/tests/scanner/annotation.h	Wed Jan 14 21:33:29 2009
@@ -106,6 +106,8 @@
 					 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:



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