From 1edeccd204ac39743523275cfc50639a63a949cb Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Sun, 23 May 2010 20:38:55 +0200 Subject: Add support for the 'foreign' annotation to g-i-scanner https://bugzilla.gnome.org/show_bug.cgi?id=619450 --- tests/scanner/foo-1.0-expected.gir | 5 +++++ tests/scanner/foo-1.0-expected.tgir | 5 +++++ tests/scanner/foo.c | 5 +++++ tests/scanner/foo.h | 7 +++++++ 4 files changed, 22 insertions(+) (limited to 'tests') diff --git a/tests/scanner/foo-1.0-expected.gir b/tests/scanner/foo-1.0-expected.gir index 3d209e31..20eb437e 100644 --- a/tests/scanner/foo-1.0-expected.gir +++ b/tests/scanner/foo-1.0-expected.gir @@ -241,6 +241,11 @@ and/or use gtk-doc annotations. --> c:identifier="FOO_FLAGS_THIRD" glib:nick="third"/> + + + + + + + + + + diff --git a/tests/scanner/foo.c b/tests/scanner/foo.c index a404aac9..6239bfac 100644 --- a/tests/scanner/foo.c +++ b/tests/scanner/foo.c @@ -621,3 +621,8 @@ void foo_skip_me (FooSkippable fs) { } + +/** + * FooForeignStruct: (foreign) + * + */ diff --git a/tests/scanner/foo.h b/tests/scanner/foo.h index 0ebcca2a..fb4bc5cc 100644 --- a/tests/scanner/foo.h +++ b/tests/scanner/foo.h @@ -393,5 +393,12 @@ typedef enum { } FooSkippable; void foo_skip_me (FooSkippable fs); +typedef struct _FooForeignStruct FooForeignStruct; + +struct _FooForeignStruct +{ + int foo; +}; + #endif /* __FOO_OBJECT_H__ */ -- cgit v1.2.1