summaryrefslogtreecommitdiff
path: root/gio/src/tlscertificate.hg
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2020-03-06 12:28:52 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2020-03-07 23:22:44 +0800
commit3f66ba73879bd0a0f76ae3c544a0029ef31b5413 (patch)
tree1c5ad5e20810e9f88880dc016843ca003dc725a2 /gio/src/tlscertificate.hg
parentd84be37aaa335e57bb6fe7de6bf4be736652a60d (diff)
downloadglibmm-3f66ba73879bd0a0f76ae3c544a0029ef31b5413.tar.gz
gio/src/*.hg: Mark classes and functions with GIOMM_API
This prepares the build to export symbols using compiler directives, in our bid to drop gendef.exe. We will also mark pre-declarations of usage of glibmm class items with GLIBMM_API as well.
Diffstat (limited to 'gio/src/tlscertificate.hg')
-rw-r--r--gio/src/tlscertificate.hg10
1 files changed, 6 insertions, 4 deletions
diff --git a/gio/src/tlscertificate.hg b/gio/src/tlscertificate.hg
index 3f36566a..4b1af5ab 100644
--- a/gio/src/tlscertificate.hg
+++ b/gio/src/tlscertificate.hg
@@ -14,6 +14,8 @@
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
+_CONFIGINCLUDE(giommconfig.h)
+
#include <glibmm/object.h>
#include <giomm/enums.h>
@@ -24,14 +26,14 @@ namespace Glib
{
// Forward declaration.
-class ByteArray;
+class GLIBMM_API ByteArray;
}
namespace Gio
{
-class SocketConnectable;
+class GIOMM_API SocketConnectable;
/** TlsCertificate - TLS certificate.
* A certificate used for TLS authentication and encryption. This can represent
@@ -40,9 +42,9 @@ class SocketConnectable;
* needed when acting as a TlsServerConnection).
* @newin{2,36}
*/
-class TlsCertificate : public Glib::Object
+class GIOMM_API TlsCertificate : public Glib::Object
{
- _CLASS_GOBJECT(TlsCertificate, GTlsCertificate, G_TLS_CERTIFICATE, Glib::Object, GObject)
+ _CLASS_GOBJECT(TlsCertificate, GTlsCertificate, G_TLS_CERTIFICATE, Glib::Object, GObject, , , GIOMM_API)
protected:
_WRAP_CTOR(TlsCertificate(const std::string& data, gssize length), g_tls_certificate_new_from_pem, errthrow)