[gtk-doc] tests: add a test for annotations in returns
- From: Stefan Kost <stefkost src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk-doc] tests: add a test for annotations in returns
- Date: Tue, 20 Oct 2009 14:49:20 +0000 (UTC)
commit 24c09b265f51ade4ce0b9f322ae287df6f2d8fbe
Author: Stefan Kost <ensonic users sf net>
Date: Tue Oct 20 17:43:08 2009 +0300
tests: add a test for annotations in returns
tests/annotations/docs/tester-sections.txt | 1 +
tests/annotations/src/tester.c | 13 +++++++++++++
tests/annotations/src/tester.h | 1 +
3 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/tests/annotations/docs/tester-sections.txt b/tests/annotations/docs/tester-sections.txt
index 1e242ed..dd5f5ed 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_returns
annotation_outparams
<SUBSECTION Standard>
<SUBSECTION Private>
diff --git a/tests/annotations/src/tester.c b/tests/annotations/src/tester.c
index f9ccac0..8df6936 100644
--- a/tests/annotations/src/tester.c
+++ b/tests/annotations/src/tester.c
@@ -57,6 +57,19 @@ annotation_elementtype (const GList *list)
}
/**
+ * annotation_elementtype_returns:
+ *
+ * Document optional parameters.
+ *
+ * Returns: (element-type GObject): A list of #GObject instances.
+ */
+GList *
+annotation_elementtype_returns (void)
+{
+ return NULL;
+}
+
+/**
* annotation_outparams:
* @list: (out) (transfer none): a pointer to take a list
*
diff --git a/tests/annotations/src/tester.h b/tests/annotations/src/tester.h
index 1209098..79e009d 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 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]