summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2012-07-14 08:13:57 (GMT)
committerRemko Tronçon <git@el-tramo.be>2012-07-14 13:08:36 (GMT)
commit003381f417caaae9918cd81fa53bcc0547caa4c9 (patch)
treec0571987e87a115e5a7ad03eca55db972f6686c6 /Swiften/StringCodecs
parent075c1f08245055e0060df2695e75bba54e697d36 (diff)
downloadswift-contrib-003381f417caaae9918cd81fa53bcc0547caa4c9.zip
swift-contrib-003381f417caaae9918cd81fa53bcc0547caa4c9.tar.bz2
Initial DLL support for Swiften.
All applications succesfully link against Swiften.dll.
Diffstat (limited to 'Swiften/StringCodecs')
-rw-r--r--Swiften/StringCodecs/Base64.h5
-rw-r--r--Swiften/StringCodecs/Hexify.h3
-rw-r--r--Swiften/StringCodecs/SHA1.h3
-rw-r--r--Swiften/StringCodecs/SHA1_Windows.h4
4 files changed, 9 insertions, 6 deletions
diff --git a/Swiften/StringCodecs/Base64.h b/Swiften/StringCodecs/Base64.h
index 2d67971..7d5ab51 100644
--- a/Swiften/StringCodecs/Base64.h
+++ b/Swiften/StringCodecs/Base64.h
@@ -7,13 +7,14 @@
#pragma once
#include <vector>
-
#include <string>
+
+#include <Swiften/Base/API.h>
#include <Swiften/Base/ByteArray.h>
#include <Swiften/Base/SafeByteArray.h>
namespace Swift {
- class Base64 {
+ class SWIFTEN_API Base64 {
public:
static std::string encode(const ByteArray& s);
static SafeByteArray encode(const SafeByteArray& s);
diff --git a/Swiften/StringCodecs/Hexify.h b/Swiften/StringCodecs/Hexify.h
index c016448..3b9a751 100644
--- a/Swiften/StringCodecs/Hexify.h
+++ b/Swiften/StringCodecs/Hexify.h
@@ -6,10 +6,11 @@
#pragma once
+#include <Swiften/Base/API.h>
#include <Swiften/Base/ByteArray.h>
namespace Swift {
- class Hexify {
+ class SWIFTEN_API Hexify {
public:
static std::string hexify(unsigned char byte);
static std::string hexify(const ByteArray& data);
diff --git a/Swiften/StringCodecs/SHA1.h b/Swiften/StringCodecs/SHA1.h
index 9edcbb2..30e757c 100644
--- a/Swiften/StringCodecs/SHA1.h
+++ b/Swiften/StringCodecs/SHA1.h
@@ -13,11 +13,12 @@
#include <vector>
#include <boost/cstdint.hpp>
+#include <Swiften/Base/API.h>
#include <Swiften/Base/ByteArray.h>
#include <Swiften/Base/SafeByteArray.h>
namespace Swift {
- class SHA1 {
+ class SWIFTEN_API SHA1 {
public:
SHA1();
diff --git a/Swiften/StringCodecs/SHA1_Windows.h b/Swiften/StringCodecs/SHA1_Windows.h
index a24779f..c485040 100644
--- a/Swiften/StringCodecs/SHA1_Windows.h
+++ b/Swiften/StringCodecs/SHA1_Windows.h
@@ -12,11 +12,11 @@
#include <security.h>
#include <Wincrypt.h>
-
+#include <Swiften/Base/API.h>
#include <Swiften/Base/SafeByteArray.h>
namespace Swift {
- class SHA1 {
+ class SWIFTEN_API SHA1 {
public:
SHA1();
~SHA1();