summaryrefslogtreecommitdiff
path: root/tests/scanner/typedefs.h
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2014-08-12 12:03:23 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2014-08-15 09:52:13 +0800
commiteab36c0001e22c0ee66246ae9a0b8018b2325c96 (patch)
tree394acebd1032cf193e1f7404f4a5a780623068bc /tests/scanner/typedefs.h
parent28b01ad77f18f2df09878d59c3c0ed7e877badd4 (diff)
downloadgobject-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/typedefs.h')
-rw-r--r--tests/scanner/typedefs.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/scanner/typedefs.h b/tests/scanner/typedefs.h
index 2a5d8beb..7eaa73bb 100644
--- a/tests/scanner/typedefs.h
+++ b/tests/scanner/typedefs.h
@@ -3,6 +3,8 @@
#include <glib-object.h>
+#include "gitestmacros.h"
+
/*
* Tests for various orderings of typedef struct declarations.
*/
@@ -40,6 +42,8 @@ typedef struct _TypedefsBoxedWithTypedefBefore TypedefsBoxedWithTypedefBefore;
struct _TypedefsBoxedWithTypedefBefore {
int value;
};
+
+_GI_TEST_EXTERN
GType typedefs_boxed_with_typedef_before_get_type (void) G_GNUC_CONST;
@@ -48,6 +52,8 @@ struct _TypedefsBoxedWithTypedefAfter {
int value;
};
typedef struct _TypedefsBoxedWithTypedefAfter TypedefsBoxedWithTypedefAfter;
+
+_GI_TEST_EXTERN
GType typedefs_boxed_with_typedef_after_get_type (void) G_GNUC_CONST;
@@ -55,6 +61,8 @@ GType typedefs_boxed_with_typedef_after_get_type (void) G_GNUC_CONST;
typedef struct _TypedefsBoxedWithTagAndTypedef {
int value;
} TypedefsBoxedWithTagAndTypedef;
+
+_GI_TEST_EXTERN
GType typedefs_boxed_with_tag_and_typedef_get_type (void) G_GNUC_CONST;
@@ -62,11 +70,15 @@ GType typedefs_boxed_with_tag_and_typedef_get_type (void) G_GNUC_CONST;
typedef struct {
int value;
} TypedefsBoxedWithAnonymousTypedef;
+
+_GI_TEST_EXTERN
GType typedefs_boxed_with_anonymous_typedef_get_type (void) G_GNUC_CONST;
/* BUG: uses <record> instead of <glib:boxed> */
typedef struct _TypedefsBoxedWithHiddenStruct TypedefsBoxedWithHiddenStruct;
+
+_GI_TEST_EXTERN
GType typedefs_boxed_with_hidden_struct_get_type (void) G_GNUC_CONST;