[gtk-doc/win-no-msys: 16/22] tests/gobject/src/*.h: Add _GTKDOC_TESTER_API
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc/win-no-msys: 16/22] tests/gobject/src/*.h: Add _GTKDOC_TESTER_API
- Date: Thu, 25 Feb 2021 04:17:00 +0000 (UTC)
commit de65d641e8edb77c0df03266b8f46a89cc7647c7
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Fri Apr 17 15:19:43 2020 +0800
tests/gobject/src/*.h: Add _GTKDOC_TESTER_API
This way, we can override this macro to export symbols using compiler
directives such as in the case of Visual Studio-style builds, where this is
needed if we want to avoid using a .def/.symbols file.
tests/gobject/src/giface.h | 8 ++++++++
tests/gobject/src/gobject.h | 14 ++++++++++++++
tests/gobject/src/gtypes.h | 10 ++++++++++
3 files changed, 32 insertions(+)
---
diff --git a/tests/gobject/src/giface.h b/tests/gobject/src/giface.h
index 2883407..a9e9550 100644
--- a/tests/gobject/src/giface.h
+++ b/tests/gobject/src/giface.h
@@ -4,6 +4,10 @@
#include <glib.h>
#include <glib-object.h>
+#ifndef _GTKDOC_TESTER_API
+#define _GTKDOC_TESTER_API
+#endif
+
/* type macros */
#define GTKDOC_TYPE_IFACE (gtkdoc_iface_get_type ())
@@ -44,9 +48,13 @@ struct _GtkdocIfaceInterface {
void (*test)(const GtkdocIface * const self, gconstpointer const user_data);
};
+_GTKDOC_TESTER_API
GType gtkdoc_iface_get_type(void) G_GNUC_CONST;
+
+_GTKDOC_TESTER_API
GType gtkdoc_iface2_get_type(void) G_GNUC_CONST;
+_GTKDOC_TESTER_API
gboolean gtkdoc_iface_configure (gchar *config);
/**
diff --git a/tests/gobject/src/gobject.h b/tests/gobject/src/gobject.h
index 03f4262..db4b63f 100644
--- a/tests/gobject/src/gobject.h
+++ b/tests/gobject/src/gobject.h
@@ -4,6 +4,10 @@
#include <glib.h>
#include <glib-object.h>
+#ifndef _GTKDOC_TESTER_API
+#define _GTKDOC_TESTER_API
+#endif
+
/* type macros */
#define GTKDOC_TYPE_OBJECT (gtkdoc_object_get_type ())
@@ -117,15 +121,25 @@ enum GtkdocHelperEnum {
GTKDOC_HELPER_ENUM_B
};
+_GTKDOC_TESTER_API
GType gtkdoc_object_get_type(void) G_GNUC_CONST;
+
+_GTKDOC_TESTER_API
GType gtkdoc_object2_get_type(void) G_GNUC_CONST;
+
+_GTKDOC_TESTER_API
GType gtkdoc_object3_get_type(void) G_GNUC_CONST;
+_GTKDOC_TESTER_API
GtkdocObject *gtkdoc_object_new(void);
#ifndef GTKDOC_TESTER_DISABLE_DEPRECATED
+_GTKDOC_TESTER_API
void gtkdoc_object_set_otest (GObject *self, const gchar *value);
+
+_GTKDOC_TESTER_API
void gtkdoc_object_do_not_use (GObject *self);
#endif
+_GTKDOC_TESTER_API
void gtkdoc_object_frobnicate (GObject *self, gint n);
gboolean gtkdoc_object_fooify (GObject *self, ...);
diff --git a/tests/gobject/src/gtypes.h b/tests/gobject/src/gtypes.h
index 20a7766..06c2645 100644
--- a/tests/gobject/src/gtypes.h
+++ b/tests/gobject/src/gtypes.h
@@ -4,6 +4,10 @@
#include <glib.h>
#include <glib-object.h>
+#ifndef _GTKDOC_TESTER_API
+#define _GTKDOC_TESTER_API
+#endif
+
/* type macros */
#define GTKDOC_TYPE_ENUM (gtkdoc_enum_get_type ())
@@ -37,8 +41,13 @@ typedef enum {
GTKDOC_ENUM2_V2,
} GtkdocEnum2;
+_GTKDOC_TESTER_API
GType gtkdoc_enum_get_type(void) G_GNUC_CONST;
+
+_GTKDOC_TESTER_API
GType gtkdoc_enum2_get_type(void) G_GNUC_CONST;
+
+_GTKDOC_TESTER_API
GType gtkdoc_boxed_get_type(void) G_GNUC_CONST;
@@ -72,6 +81,7 @@ typedef struct {
gpointer priv;
} GtkdocBoxedPlainOldData;
+_GTKDOC_TESTER_API
GType gtkdoc_boxed_plain_old_data_get_type(void) G_GNUC_CONST;
#endif // GTKDOC_TYPES_H
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]