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/sletter.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/sletter.h')
-rw-r--r-- | tests/scanner/sletter.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/scanner/sletter.h b/tests/scanner/sletter.h index 20797f6c..f6a146df 100644 --- a/tests/scanner/sletter.h +++ b/tests/scanner/sletter.h @@ -3,11 +3,14 @@ #include <gio/gio.h> +#include "gitestmacros.h" + typedef struct { double x; double y; } SPoint; +_GI_TEST_EXTERN void s_hello (void); /* Like GSpawnError; not registered with GType */ @@ -17,6 +20,8 @@ typedef enum S_SPAWN_ERROR_CODE2 = 2, S_SPAWN_ERROR_CODE3 = 3 } SSpawnError; + +_GI_TEST_EXTERN GQuark s_spawn_error_quark (void); /* Like GDBusError but not registered with GType */ @@ -26,6 +31,8 @@ typedef enum S_DBUS_ERROR_CODE2 = 2, S_DBUS_ERROR_CODE3 = 3 } SDBusError; + +_GI_TEST_EXTERN GQuark s_dbus_error_quark (void); #endif |