summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/scanner/foo.c21
-rw-r--r--tests/scanner/foo.h7
2 files changed, 28 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)
+{
+}
diff --git a/tests/scanner/foo.h b/tests/scanner/foo.h
index be3a9554..2e018cea 100644
--- a/tests/scanner/foo.h
+++ b/tests/scanner/foo.h
@@ -363,4 +363,11 @@ typedef enum
void foo_some_variant (guint x, va_list args);
void foo_some_variant_ptr (guint x, va_list *args);
+/* Should be skipped due to annotations */
+typedef enum {
+ FOO_SKIPPABLE_ONE,
+ FOO_SKIPPABLE_TWO
+} FooSkippable;
+void foo_skip_me (FooSkippable fs);
+
#endif /* __FOO_OBJECT_H__ */