summaryrefslogtreecommitdiff
path: root/tests/scanner/barapp.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/barapp.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/barapp.h')
-rw-r--r--tests/scanner/barapp.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/scanner/barapp.h b/tests/scanner/barapp.h
index 12c39a5f..8694ddbe 100644
--- a/tests/scanner/barapp.h
+++ b/tests/scanner/barapp.h
@@ -1,6 +1,8 @@
#include <glib-object.h>
+#include "gitestmacros.h"
+
#define BAR_TYPE_BAZ (bar_baz_get_type ())
#define BAR_BAZ(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), BAR_TYPE_BAZ, BarBaz))
#define BAR_IS_BAZ(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), BAR_TYPE_BAZ))
@@ -18,9 +20,14 @@ struct BarBazClass
GObjectClass parent_class;
};
+_GI_TEST_EXTERN
GType bar_baz_get_type (void) G_GNUC_CONST;
+
+_GI_TEST_EXTERN
void bar_app_func (void);
+
+_GI_TEST_EXTERN
void bar_app_func2 (int x, double y);
@@ -45,6 +52,8 @@ struct MutterWindowClass
GObjectClass parent_class;
};
+_GI_TEST_EXTERN
GType mutter_window_get_type (void) G_GNUC_CONST;
+_GI_TEST_EXTERN
void mutter_window_func (MutterWindow *window, guint v);