From 8269b0efd0d41f6f5f3ab9e70c50399da7444748 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Wed, 8 Sep 2010 21:24:37 +0300 Subject: [PATCH] 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(+) 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); -- 2.11.4.GIT