diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2014-08-12 12:03:23 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2014-08-15 09:52:13 +0800 |
commit | eab36c0001e22c0ee66246ae9a0b8018b2325c96 (patch) | |
tree | 394acebd1032cf193e1f7404f4a5a780623068bc /tests/scanner/drawable.h | |
parent | 28b01ad77f18f2df09878d59c3c0ed7e877badd4 (diff) | |
download | gobject-introspection-eab36c0001e22c0ee66246ae9a0b8018b2325c96.tar.gz |
tests/scanner: Decorate Symbols for Export
This updates the test headers and sources to decorate the symbols with the
macro that can be used to export the symbols, and include config.h first in
the c-sources so that the macro can be defined with the compiler directive
to export the symbols. Update the CFLAGS as well so that the header that
defines the export decoration macro can be found.
https://bugzilla.gnome.org/show_bug.cgi?id=732669
Diffstat (limited to 'tests/scanner/drawable.h')
-rw-r--r-- | tests/scanner/drawable.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/scanner/drawable.h b/tests/scanner/drawable.h index 58383589..adf08da2 100644 --- a/tests/scanner/drawable.h +++ b/tests/scanner/drawable.h @@ -3,6 +3,8 @@ #include <glib-object.h> +#include "gitestmacros.h" + typedef struct _RegressTestInheritDrawable RegressTestInheritDrawable; typedef struct _RegressTestInheritDrawableClass RegressTestInheritDrawableClass; @@ -16,11 +18,20 @@ struct _RegressTestInheritDrawableClass GObjectClass parent_class; }; +_GI_TEST_EXTERN GType regress_test_inherit_drawable_get_type (void) G_GNUC_CONST; + +_GI_TEST_EXTERN void regress_test_inherit_drawable_do_foo (RegressTestInheritDrawable *drawable, int x); + +_GI_TEST_EXTERN void regress_test_inherit_drawable_get_origin (RegressTestInheritDrawable *drawable, int *x, int *y); + +_GI_TEST_EXTERN void regress_test_inherit_drawable_get_size (RegressTestInheritDrawable *drawable, guint *width, guint *height); + +_GI_TEST_EXTERN void regress_test_inherit_drawable_do_foo_maybe_throw (RegressTestInheritDrawable *drawable, int x, GError **error); typedef struct _RegressTestInheritPixmapObjectClass RegressTestInheritPixmapObjectClass; |