diff options
| author | Remko Tronçon <git@el-tramo.be> | 2012-07-14 08:13:57 (GMT) |
|---|---|---|
| committer | Remko Tronçon <git@el-tramo.be> | 2012-07-14 13:08:36 (GMT) |
| commit | 003381f417caaae9918cd81fa53bcc0547caa4c9 (patch) | |
| tree | c0571987e87a115e5a7ad03eca55db972f6686c6 /Swiften/Base/ByteArray.h | |
| parent | 075c1f08245055e0060df2695e75bba54e697d36 (diff) | |
| download | swift-contrib-003381f417caaae9918cd81fa53bcc0547caa4c9.zip swift-contrib-003381f417caaae9918cd81fa53bcc0547caa4c9.tar.bz2 | |
Initial DLL support for Swiften.
All applications succesfully link against Swiften.dll.
Diffstat (limited to 'Swiften/Base/ByteArray.h')
| -rw-r--r-- | Swiften/Base/ByteArray.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Swiften/Base/ByteArray.h b/Swiften/Base/ByteArray.h index 01cd5d0..34b89d3 100644 --- a/Swiften/Base/ByteArray.h +++ b/Swiften/Base/ByteArray.h @@ -3,23 +3,25 @@ * Licensed under the GNU General Public License v3. * See Documentation/Licenses/GPLv3.txt for more information. */ #pragma once #include <vector> #include <string> +#include <Swiften/Base/API.h> + namespace Swift { typedef std::vector<unsigned char> ByteArray; - ByteArray createByteArray(const std::string& s); - ByteArray createByteArray(const char* c); + SWIFTEN_API ByteArray createByteArray(const std::string& s); + SWIFTEN_API ByteArray createByteArray(const char* c); inline ByteArray createByteArray(const unsigned char* c, size_t n) { return ByteArray(c, c + n); } inline ByteArray createByteArray(const char* c, size_t n) { return ByteArray(c, c + n); } @@ -31,14 +33,14 @@ namespace Swift { static const T* vecptr(const std::vector<T, A>& v) { return v.empty() ? NULL : &v[0]; } template<typename T, typename A> static T* vecptr(std::vector<T, A>& v) { return v.empty() ? NULL : &v[0]; } - std::string byteArrayToString(const ByteArray& b); + SWIFTEN_API std::string byteArrayToString(const ByteArray& b); - void readByteArrayFromFile(ByteArray&, const std::string& file); + SWIFTEN_API void readByteArrayFromFile(ByteArray&, const std::string& file); } |
Swift