[gtk-doc] tests: add a multi-annotation test



commit 8269b0efd0d41f6f5f3ab9e70c50399da7444748
Author: Stefan Kost <ensonic users sf net>
Date:   Wed Sep 8 21:24:37 2010 +0300

    tests: add a multi-annotation test
    
    Add an example where multiple annotations are use for one parameter.

 tests/annotations/docs/tester-sections.txt |    1 +
 tests/annotations/src/tester.c             |   14 ++++++++++++++
 tests/annotations/src/tester.h             |    1 +
 3 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/tests/annotations/docs/tester-sections.txt b/tests/annotations/docs/tester-sections.txt
index ca17f84..a8a609b 100644
--- a/tests/annotations/docs/tester-sections.txt
+++ b/tests/annotations/docs/tester-sections.txt
@@ -5,6 +5,7 @@ GtkdocAnnotation
 annotation_array_length
 annotation_nullable
 annotation_elementtype
+annotation_elementtype_transfer
 annotation_elementtype_returns
 annotation_outparams
 annotation_skip
diff --git a/tests/annotations/src/tester.c b/tests/annotations/src/tester.c
index 89f7d26..4dea244 100644
--- a/tests/annotations/src/tester.c
+++ b/tests/annotations/src/tester.c
@@ -59,6 +59,20 @@ annotation_elementtype (const GList *list)
 }
 
 /**
+ * annotation_elementtype_transfer:
+ * @list: (element-type utf8) (transfer full): list of #GObject instances to search
+ *
+ * Document optional parameters.
+ *
+ * Returns: %TRUE for success
+ */
+gboolean
+annotation_elementtype_transfer (const GList *list)
+{
+   return TRUE;
+}
+
+/**
  * annotation_elementtype_returns:
  *
  * Document optional parameters.
diff --git a/tests/annotations/src/tester.h b/tests/annotations/src/tester.h
index 3e6af52..1c8e17c 100644
--- a/tests/annotations/src/tester.h
+++ b/tests/annotations/src/tester.h
@@ -19,6 +19,7 @@ extern void annotation_array_length (GObject *list, gint n_columns, GType *types
 extern gchar * annotation_nullable (const gchar *uri, const gchar *label);
 
 extern gboolean annotation_elementtype (const GList *list);
+extern gboolean annotation_elementtype_transfer (const GList *list);
 extern GList *annotation_elementtype_returns (void);
 
 extern gboolean annotation_outparams (GList **list);



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