]> git.tdb.fi Git - libs/net.git/blobdiff - source/net/protocol.h
Decorate things which constitute the public API
[libs/net.git] / source / net / protocol.h
index f040a69ef1293665b3f38c79387706c04bf75e05..8068d3275ca292eea2317e9847725f90a0be7524 100644 (file)
@@ -7,26 +7,27 @@
 #include <stdexcept>
 #include <vector>
 #include <msp/core/hash.h>
+#include "mspnet_api.h"
 #include "receiver.h"
 
 namespace Msp {
 namespace Net {
 
-class bad_packet: public std::runtime_error
+class MSPNET_API bad_packet: public std::runtime_error
 {
 public:
        bad_packet(const std::string &w): std::runtime_error(w) { }
 };
 
 
-class buffer_error: public std::runtime_error
+class MSPNET_API buffer_error: public std::runtime_error
 {
 public:
        buffer_error(const std::string &w): std::runtime_error(w) { }
 };
 
 
-class Protocol
+class MSPNET_API Protocol
 {
 private:
        template<typename T, std::uint8_t K>