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/utility.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/utility.h')
-rw-r--r-- | tests/scanner/utility.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/scanner/utility.h b/tests/scanner/utility.h index 8dc6d549..ff1c3824 100644 --- a/tests/scanner/utility.h +++ b/tests/scanner/utility.h @@ -3,6 +3,8 @@ #include <glib-object.h> +#include "gitestmacros.h" + #define UTILITY_TYPE_OBJECT (utility_object_get_type ()) #define UTILITY_OBJECT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), UTILITY_TYPE_OBJECT, UtilityObject)) #define UTILITY_IS_OBJECT(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), UTILITY_TYPE_OBJECT)) @@ -53,7 +55,11 @@ typedef struct typedef void (*UtilityFileFunc)(const char *path, gpointer user_data); + +_GI_TEST_EXTERN GType utility_object_get_type (void) G_GNUC_CONST; + +_GI_TEST_EXTERN void utility_object_watch_dir (UtilityObject *object, const char *path, UtilityFileFunc func, @@ -90,6 +96,7 @@ typedef union double real; } UtilityUnion; +_GI_TEST_EXTERN void utility_dir_foreach (const char *path, UtilityFileFunc func, gpointer user_data); #endif /* __UTILITY_H__ */ |