Export static symbols when building ws with shared library (#370)
This commit is contained in:
@ -6,6 +6,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "IXWebsocketExport.h"
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
|
||||
@ -13,25 +14,25 @@ namespace ix
|
||||
{
|
||||
struct WebSocketCloseConstants
|
||||
{
|
||||
static const uint16_t kNormalClosureCode;
|
||||
static const uint16_t kInternalErrorCode;
|
||||
static const uint16_t kAbnormalCloseCode;
|
||||
static const uint16_t kProtocolErrorCode;
|
||||
static const uint16_t kNoStatusCodeErrorCode;
|
||||
static const uint16_t kInvalidFramePayloadData;
|
||||
IXWEBSOCKET_EXPORT static const uint16_t kNormalClosureCode;
|
||||
IXWEBSOCKET_EXPORT static const uint16_t kInternalErrorCode;
|
||||
IXWEBSOCKET_EXPORT static const uint16_t kAbnormalCloseCode;
|
||||
IXWEBSOCKET_EXPORT static const uint16_t kProtocolErrorCode;
|
||||
IXWEBSOCKET_EXPORT static const uint16_t kNoStatusCodeErrorCode;
|
||||
IXWEBSOCKET_EXPORT static const uint16_t kInvalidFramePayloadData;
|
||||
|
||||
static const std::string kNormalClosureMessage;
|
||||
static const std::string kInternalErrorMessage;
|
||||
static const std::string kAbnormalCloseMessage;
|
||||
static const std::string kPingTimeoutMessage;
|
||||
static const std::string kProtocolErrorMessage;
|
||||
static const std::string kNoStatusCodeErrorMessage;
|
||||
static const std::string kProtocolErrorReservedBitUsed;
|
||||
static const std::string kProtocolErrorPingPayloadOversized;
|
||||
static const std::string kProtocolErrorCodeControlMessageFragmented;
|
||||
static const std::string kProtocolErrorCodeDataOpcodeOutOfSequence;
|
||||
static const std::string kProtocolErrorCodeContinuationOpCodeOutOfSequence;
|
||||
static const std::string kInvalidFramePayloadDataMessage;
|
||||
static const std::string kInvalidCloseCodeMessage;
|
||||
IXWEBSOCKET_EXPORT static const std::string kNormalClosureMessage;
|
||||
IXWEBSOCKET_EXPORT static const std::string kInternalErrorMessage;
|
||||
IXWEBSOCKET_EXPORT static const std::string kAbnormalCloseMessage;
|
||||
IXWEBSOCKET_EXPORT static const std::string kPingTimeoutMessage;
|
||||
IXWEBSOCKET_EXPORT static const std::string kProtocolErrorMessage;
|
||||
IXWEBSOCKET_EXPORT static const std::string kNoStatusCodeErrorMessage;
|
||||
IXWEBSOCKET_EXPORT static const std::string kProtocolErrorReservedBitUsed;
|
||||
IXWEBSOCKET_EXPORT static const std::string kProtocolErrorPingPayloadOversized;
|
||||
IXWEBSOCKET_EXPORT static const std::string kProtocolErrorCodeControlMessageFragmented;
|
||||
IXWEBSOCKET_EXPORT static const std::string kProtocolErrorCodeDataOpcodeOutOfSequence;
|
||||
IXWEBSOCKET_EXPORT static const std::string kProtocolErrorCodeContinuationOpCodeOutOfSequence;
|
||||
IXWEBSOCKET_EXPORT static const std::string kInvalidFramePayloadDataMessage;
|
||||
IXWEBSOCKET_EXPORT static const std::string kInvalidCloseCodeMessage;
|
||||
};
|
||||
} // namespace ix
|
||||
|
Reference in New Issue
Block a user