diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2020-03-05 12:36:30 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2020-03-05 16:13:30 +0800 |
commit | 7fb2c6d272a49051bdd2c0d613a1066340a44536 (patch) | |
tree | 3496c544a39dc8c557178113ad8871f4456bdc64 /glib/glibmm/value_custom.h | |
parent | 4c2b07e68fbacbb09dcf91b44ee8cd1312ae9f21 (diff) | |
download | glibmm-7fb2c6d272a49051bdd2c0d613a1066340a44536.tar.gz |
glib/glibmm/*.h: Mark classes and methods with GLIBMM_API
This prepares the code to use __declspec(dllexport) to export all symbols, so
that we can eventually bid farewell to gendf.exe
Diffstat (limited to 'glib/glibmm/value_custom.h')
-rw-r--r-- | glib/glibmm/value_custom.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/glib/glibmm/value_custom.h b/glib/glibmm/value_custom.h index 8c333994..421fa28a 100644 --- a/glib/glibmm/value_custom.h +++ b/glib/glibmm/value_custom.h @@ -43,6 +43,8 @@ typedef void (*ValueCopyFunc)(const GValue*, GValue*); * as subtype of G_TYPE_BOXED, via this function. The type_name argument * should be the C++ RTTI name. */ + +GLIBMM_API GType custom_boxed_type_register( const char* type_name, ValueInitFunc init_func, ValueFreeFunc free_func, ValueCopyFunc copy_func); @@ -50,6 +52,7 @@ GType custom_boxed_type_register( * each T* or const T* will be registered as a subtype of G_TYPE_POINTER, * via this function. The type_name argument should be the C++ RTTI name. */ +GLIBMM_API GType custom_pointer_type_register(const char* type_name); #endif /* DOXYGEN_SHOULD_SKIP_THIS */ @@ -134,7 +137,7 @@ private: * pointer, you must take care of that yourself. */ template <class T, typename Enable> -class Value<T*, Enable> : public Value_Pointer<T*> +class GLIBMM_API Value<T*, Enable> : public Value_Pointer<T*> { }; @@ -144,7 +147,7 @@ class Value<T*, Enable> : public Value_Pointer<T*> * pointer, you must take care of that yourself. */ template <class T, typename Enable> -class Value<const T*, Enable> : public Value_Pointer<const T*> +class GLIBMM_API Value<const T*, Enable> : public Value_Pointer<const T*> { }; |