[libpeas/msvc: 3/8] tests/libpeas/introspection: Mark APIs for export



commit eb06ef4dde83af167c7425fd1ea525a0437880ac
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Wed Oct 17 00:35:45 2018 +0800

    tests/libpeas/introspection: Mark APIs for export
    
    This decoration is needed for compilers that use directives to export
    symbols.

 tests/libpeas/introspection/introspection-abstract.h         | 3 +++
 tests/libpeas/introspection/introspection-base.h             | 3 +++
 tests/libpeas/introspection/introspection-callable.h         | 9 +++++++++
 tests/libpeas/introspection/introspection-has-prerequisite.h | 3 +++
 tests/libpeas/introspection/introspection-prerequisite.h     | 1 +
 tests/libpeas/introspection/introspection-unimplemented.h    | 3 +++
 6 files changed, 22 insertions(+)
---
diff --git a/tests/libpeas/introspection/introspection-abstract.h 
b/tests/libpeas/introspection/introspection-abstract.h
index bfff2c4..0ceb2b6 100644
--- a/tests/libpeas/introspection/introspection-abstract.h
+++ b/tests/libpeas/introspection/introspection-abstract.h
@@ -49,9 +49,12 @@ struct _IntrospectionAbstractClass {
 /*
  * Public methods
  */
+_PEAS_EXTERN
 GType  introspection_abstract_get_type  (void) G_GNUC_CONST;
 
+_PEAS_EXTERN
 gint   introspection_abstract_get_value (IntrospectionAbstract *abstract);
+_PEAS_EXTERN
 void   introspection_abstract_set_value (IntrospectionAbstract *abstract,
                                          gint                   value);
 
diff --git a/tests/libpeas/introspection/introspection-base.h 
b/tests/libpeas/introspection/introspection-base.h
index 64b052f..cf570ff 100644
--- a/tests/libpeas/introspection/introspection-base.h
+++ b/tests/libpeas/introspection/introspection-base.h
@@ -49,9 +49,12 @@ struct _IntrospectionBaseInterface {
 /*
  * Public methods
  */
+_PEAS_EXTERN
 GType      introspection_base_get_type     (void) G_GNUC_CONST;
 
+_PEAS_EXTERN
 const PeasPluginInfo *introspection_base_get_plugin_info (IntrospectionBase *base);
+_PEAS_EXTERN
 GSettings            *introspection_base_get_settings    (IntrospectionBase *base);
 
 G_END_DECLS
diff --git a/tests/libpeas/introspection/introspection-callable.h 
b/tests/libpeas/introspection/introspection-callable.h
index 69c0fd0..83849f1 100644
--- a/tests/libpeas/introspection/introspection-callable.h
+++ b/tests/libpeas/introspection/introspection-callable.h
@@ -22,6 +22,8 @@
 #ifndef __INTROSPECTION_CALLABLE_H__
 #define __INTROSPECTION_CALLABLE_H__
 
+#include <libpeas/peas.h>
+
 #include <glib-object.h>
 
 G_BEGIN_DECLS
@@ -58,13 +60,20 @@ struct _IntrospectionCallableInterface {
 /*
  * Public methods
  */
+_PEAS_EXTERN
 GType        introspection_callable_get_type         (void) G_GNUC_CONST;
 
+_PEAS_EXTERN
 gchar       *introspection_callable_call_with_return (IntrospectionCallable *callable);
 
+_PEAS_EXTERN
 void         introspection_callable_call_no_args     (IntrospectionCallable *callable);
+
+_PEAS_EXTERN
 void         introspection_callable_call_single_arg  (IntrospectionCallable *callable,
                                                       gboolean              *called);
+
+_PEAS_EXTERN
 void         introspection_callable_call_multi_args  (IntrospectionCallable *callable,
                                                       gint                   in,
                                                       gint                  *out,
diff --git a/tests/libpeas/introspection/introspection-has-prerequisite.h 
b/tests/libpeas/introspection/introspection-has-prerequisite.h
index 61e13bf..46265b2 100644
--- a/tests/libpeas/introspection/introspection-has-prerequisite.h
+++ b/tests/libpeas/introspection/introspection-has-prerequisite.h
@@ -22,6 +22,8 @@
 #ifndef __INTROSPECTION_HAS_PREREQUISITE_H__
 #define __INTROSPECTION_HAS_PREREQUISITE_H__
 
+#include <libpeas/peas.h>
+
 #include <glib-object.h>
 
 G_BEGIN_DECLS
@@ -45,6 +47,7 @@ struct _IntrospectionHasPrerequisiteInterface {
 /*
  * Public methods
  */
+_PEAS_EXTERN
 GType        introspection_has_prerequisite_get_type         (void) G_GNUC_CONST;
 
 G_END_DECLS
diff --git a/tests/libpeas/introspection/introspection-prerequisite.h 
b/tests/libpeas/introspection/introspection-prerequisite.h
index f600d9f..98888a1 100644
--- a/tests/libpeas/introspection/introspection-prerequisite.h
+++ b/tests/libpeas/introspection/introspection-prerequisite.h
@@ -49,6 +49,7 @@ struct _IntrospectionPrerequisiteClass {
 /*
  * Public methods
  */
+_PEAS_EXTERN
 GType        introspection_prerequisite_get_type         (void) G_GNUC_CONST;
 
 G_END_DECLS
diff --git a/tests/libpeas/introspection/introspection-unimplemented.h 
b/tests/libpeas/introspection/introspection-unimplemented.h
index 832ab88..b35d490 100644
--- a/tests/libpeas/introspection/introspection-unimplemented.h
+++ b/tests/libpeas/introspection/introspection-unimplemented.h
@@ -22,6 +22,8 @@
 #ifndef __INTROSPECTION_UNIMPLEMENTED_H__
 #define __INTROSPECTION_UNIMPLEMENTED_H__
 
+#include <libpeas/peas.h>
+
 #include <glib-object.h>
 
 G_BEGIN_DECLS
@@ -45,6 +47,7 @@ struct _IntrospectionUnimplementedInterface {
 /*
  * Public methods
  */
+_PEAS_EXTERN
 GType introspection_unimplemented_get_type (void)  G_GNUC_CONST;
 
 G_END_DECLS


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]