summaryrefslogtreecommitdiff
path: root/tests/scanner/foo.c
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2009-03-28 10:07:37 -0400
committerColin Walters <walters@verbum.org>2009-08-24 15:19:28 -0400
commit7549c8053d0229a12d9196cc8abae54a01a555d0 (patch)
tree5bdc45428afe2bff2dae78b926f142a788c2129d /tests/scanner/foo.c
parent4ba8fa2f8a63bf658406f60e4d3a1f9cc5586ea4 (diff)
downloadgobject-introspection-7549c8053d0229a12d9196cc8abae54a01a555d0.tar.gz
Bug 556628 – (skip) annotation
Adds a (skip) option that can be added to the header of any doc comment to cause that symbol to be skipped in the .gir output
Diffstat (limited to 'tests/scanner/foo.c')
-rw-r--r--tests/scanner/foo.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/scanner/foo.c b/tests/scanner/foo.c
index 6cb1f3f4..e810b522 100644
--- a/tests/scanner/foo.c
+++ b/tests/scanner/foo.c
@@ -579,3 +579,24 @@ foo_buffer_some_method (FooBuffer *buffer)
}
#define FOO_DEFINE_SHOULD_NOT_BE_EXPOSED "should not be exposed"
+
+/**
+ * FooSkippable: (skip)
+ * @FOO_SKIPPABLE_ONE: a skippable enum value
+ * @FOO_SKIPPABLE_TWO: another skippable enum value
+ *
+ * Some type that is only interesting from C and should not be
+ * exposed to language bindings.
+ */
+
+/**
+ * foo_skip_me: (skip)
+ * @fs: a #FooSkippable
+ *
+ * Does something that's only interesting from C and should not be
+ * exposed to language bindings.
+ */
+void
+foo_skip_me (FooSkippable fs)
+{
+}