[glibmm/glibmm-master-use-dllexport: 5/7] gio/giomm/*.h: Mark classes and functions with GIOMM_API
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm/glibmm-master-use-dllexport: 5/7] gio/giomm/*.h: Mark classes and functions with GIOMM_API
- Date: Sat, 7 Mar 2020 15:56:53 +0000 (UTC)
commit c2c96a58cf7cf59ca83b363e0a9759828aa3747c
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Fri Mar 6 12:31:46 2020 +0800
gio/giomm/*.h: Mark classes and functions with GIOMM_API
This prepares the build to use compiler directives to export symbols, in
our bid to drop gendef.exe.
gio/giomm/contenttype.h | 13 +++++++++++++
gio/giomm/init.h | 1 +
gio/giomm/slot_async.h | 1 +
gio/giomm/socketsource.h | 7 ++++---
gio/giomm/wrap_init.h | 3 +++
5 files changed, 22 insertions(+), 3 deletions(-)
---
diff --git a/gio/giomm/contenttype.h b/gio/giomm/contenttype.h
index 408adc8e..b061a173 100644
--- a/gio/giomm/contenttype.h
+++ b/gio/giomm/contenttype.h
@@ -41,6 +41,7 @@ namespace Gio
*
* @return true if the two strings are identical or equivalent, false otherwise.
*/
+GIOMM_API
bool content_type_equals(const Glib::ustring& type1, const Glib::ustring& type2);
/**
@@ -51,6 +52,7 @@ bool content_type_equals(const Glib::ustring& type1, const Glib::ustring& type2)
*
* @return true if @a type is a kind of @a supertype, false otherwise.
*/
+GIOMM_API
bool content_type_is_a(const Glib::ustring& type, const Glib::ustring& supertype);
/**
@@ -62,6 +64,7 @@ bool content_type_is_a(const Glib::ustring& type, const Glib::ustring& supertype
*
* @return true if the type is the unknown type.
*/
+GIOMM_API
bool content_type_is_unknown(const Glib::ustring& type);
/**
@@ -71,6 +74,7 @@ bool content_type_is_unknown(const Glib::ustring& type);
*
* @return a short description of the content type @a type.
*/
+GIOMM_API
Glib::ustring content_type_get_description(const Glib::ustring& type);
/**
@@ -80,6 +84,7 @@ Glib::ustring content_type_get_description(const Glib::ustring& type);
*
* @return the registered mime-type for the given @a type, or an empty string if unknown.
*/
+GIOMM_API
Glib::ustring content_type_get_mime_type(const Glib::ustring& type);
/**
@@ -89,6 +94,7 @@ Glib::ustring content_type_get_mime_type(const Glib::ustring& type);
*
* @return Icon corresponding to the content type.
*/
+GIOMM_API
Glib::RefPtr<Icon> content_type_get_icon(const Glib::ustring& type);
#ifdef G_OS_UNIX
@@ -100,6 +106,7 @@ Glib::RefPtr<Icon> content_type_get_icon(const Glib::ustring& type);
*
* @newin{2,34}
*/
+GIOMM_API
Glib::RefPtr<Icon> content_type_get_symbolic_icon(const Glib::ustring& type);
#endif
@@ -112,6 +119,7 @@ Glib::RefPtr<Icon> content_type_get_symbolic_icon(const Glib::ustring& type);
* @return true if the file type corresponds to a type that can be executable,
* false otherwise.
*/
+GIOMM_API
bool content_type_can_be_executable(const Glib::ustring& type);
/** Tries to find a content type based on the mime type name.
@@ -121,6 +129,7 @@ bool content_type_can_be_executable(const Glib::ustring& type);
*
* @newin{2,20}
*/
+GIOMM_API
Glib::ustring content_type_from_mime_type(const Glib::ustring& mime_type);
/**
@@ -136,6 +145,7 @@ Glib::ustring content_type_from_mime_type(const Glib::ustring& mime_type);
* @return A string indicating a guessed content type for the
* given data.
*/
+GIOMM_API
Glib::ustring content_type_guess(
const std::string& filename, const guchar* data, gsize data_size, bool& result_uncertain);
@@ -150,6 +160,7 @@ Glib::ustring content_type_guess(
* @return A string indicating a guessed content type for the
* given data.
*/
+GIOMM_API
Glib::ustring content_type_guess(
const std::string& filename, const std::string& data, bool& result_uncertain);
@@ -168,6 +179,7 @@ Glib::ustring content_type_guess(
*
* @newin{2,18}
*/
+GIOMM_API
std::vector<Glib::ustring> content_type_guess_for_tree(const Glib::RefPtr<const File>& root);
/**
@@ -176,6 +188,7 @@ std::vector<Glib::ustring> content_type_guess_for_tree(const Glib::RefPtr<const
*
* @return List of the registered content types.
*/
+GIOMM_API
std::vector<Glib::ustring> content_types_get_registered();
/** @} group giommContentType */
diff --git a/gio/giomm/init.h b/gio/giomm/init.h
index 0dd3c882..5caf5434 100644
--- a/gio/giomm/init.h
+++ b/gio/giomm/init.h
@@ -35,6 +35,7 @@ namespace Gio
*
* @see Glib::set_init_to_users_preferred_locale()
*/
+GIOMM_API
void init();
} // end namespace Gio
diff --git a/gio/giomm/slot_async.h b/gio/giomm/slot_async.h
index 378d9d40..1a409b15 100644
--- a/gio/giomm/slot_async.h
+++ b/gio/giomm/slot_async.h
@@ -32,6 +32,7 @@ namespace Gio
* slot_name slot, slot_callback SignalProxy_async_callback)
* @endcode
*/
+GIOMM_API
void SignalProxy_async_callback(GObject*, GAsyncResult* res, void* data);
} // namespace Gio
diff --git a/gio/giomm/socketsource.h b/gio/giomm/socketsource.h
index a90edee1..f626a88b 100644
--- a/gio/giomm/socketsource.h
+++ b/gio/giomm/socketsource.h
@@ -29,12 +29,12 @@ using GSocket = struct _GSocket;
namespace Gio
{
-class Socket;
+class GIOMM_API Socket;
/** @newin{2,42}
* @ingroup NetworkIO
*/
-class SignalSocket
+class GIOMM_API SignalSocket
{
public:
#ifndef DOXYGEN_SHOULD_SKIP_THIS
@@ -92,6 +92,7 @@ private:
* @newin{2,42}
* @ingroup NetworkIO
*/
+GIOMM_API
SignalSocket signal_socket(
const Glib::RefPtr<Glib::MainContext>& context = {});
@@ -101,7 +102,7 @@ SignalSocket signal_socket(
* @newin{2,42}
* @ingroup NetworkIO
*/
-class SocketSource : public Glib::IOSource
+class GIOMM_API SocketSource : public Glib::IOSource
{
public:
using CppObjectType = Gio::SocketSource;
diff --git a/gio/giomm/wrap_init.h b/gio/giomm/wrap_init.h
index cb7d947f..4b44fb0b 100644
--- a/gio/giomm/wrap_init.h
+++ b/gio/giomm/wrap_init.h
@@ -19,8 +19,11 @@
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <giommconfig.h>
+
namespace Gio
{
+GIOMM_API
void wrap_init();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]