[gtk-doc] annotations: add one more example



commit 940452cf7621df98e2fd4b2400bdaa46059dd58d
Author: Stefan Kost <ensonic users sf net>
Date:   Mon Jun 1 22:23:44 2009 +0300

    annotations: add one more example
---
 tests/annotations/docs/tester-sections.txt |    1 +
 tests/annotations/src/tester.c             |   14 ++++++++++++++
 tests/annotations/src/tester.h             |    2 ++
 3 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/tests/annotations/docs/tester-sections.txt b/tests/annotations/docs/tester-sections.txt
index 127e460..5a7e2b4 100644
--- a/tests/annotations/docs/tester-sections.txt
+++ b/tests/annotations/docs/tester-sections.txt
@@ -4,6 +4,7 @@
 annotation_array_length
 annotation_nullable
 annotation_elementtype
+annotation_outparams
 <SUBSECTION Standard>
 <SUBSECTION Private>
 </SECTION>
diff --git a/tests/annotations/src/tester.c b/tests/annotations/src/tester.c
index 47f41fd..f9ccac0 100644
--- a/tests/annotations/src/tester.c
+++ b/tests/annotations/src/tester.c
@@ -56,3 +56,17 @@ annotation_elementtype (const GList *list)
    return TRUE;
 }
 
+/**
+ * annotation_outparams:
+ * @list: (out) (transfer none): a pointer to take a list
+ *
+ * Document optional parameters.
+ *
+ * Returns: %TRUE for success
+ */
+gboolean
+annotation_outparams (GList **list)
+{
+   return TRUE;
+}
+
diff --git a/tests/annotations/src/tester.h b/tests/annotations/src/tester.h
index 1003ae0..145c67f 100644
--- a/tests/annotations/src/tester.h
+++ b/tests/annotations/src/tester.h
@@ -10,5 +10,7 @@ extern gchar * annotation_nullable (const gchar *uri, const gchar *label);
 
 extern gboolean annotation_elementtype (const GList *list);
 
+extern gboolean annotation_outparams (GList **list);
+
 #endif // GTKDOC_TESTER_H
 



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