mirror of https://github.com/axmolengine/axmol.git
Add CC_DLL for related network files
This commit is contained in:
parent
700699a37f
commit
ada7fa23d3
|
@ -44,7 +44,7 @@ namespace network {
|
|||
/** @brief Singleton that handles asynchrounous http requests
|
||||
* Once the request completed, a callback will issued in main thread when it provided during make request
|
||||
*/
|
||||
class HttpClient
|
||||
class CC_DLL HttpClient
|
||||
{
|
||||
public:
|
||||
/** Return the shared instance **/
|
||||
|
|
|
@ -54,7 +54,7 @@ typedef void (cocos2d::Ref::*SEL_HttpResponse)(HttpClient* client, HttpResponse*
|
|||
#endif
|
||||
#endif
|
||||
|
||||
class HttpRequest : public Ref
|
||||
class CC_DLL HttpRequest : public Ref
|
||||
{
|
||||
public:
|
||||
/** Use this enum type as param in setReqeustType(param) */
|
||||
|
|
|
@ -37,7 +37,7 @@ namespace network {
|
|||
Please refer to samples/TestCpp/Classes/ExtensionTest/NetworkTest/HttpClientTest.cpp as a sample
|
||||
@since v2.0.2
|
||||
*/
|
||||
class HttpResponse : public cocos2d::Ref
|
||||
class CC_DLL HttpResponse : public cocos2d::Ref
|
||||
{
|
||||
public:
|
||||
/** Constructor, it's used by HttpClient internal, users don't need to create HttpResponse manually
|
||||
|
|
|
@ -75,7 +75,7 @@ class SIOClient;
|
|||
/**
|
||||
* @brief Singleton and wrapper class to provide static creation method as well as registry of all sockets
|
||||
*/
|
||||
class SocketIO
|
||||
class CC_DLL SocketIO
|
||||
{
|
||||
public:
|
||||
static SocketIO* getInstance();
|
||||
|
@ -131,7 +131,7 @@ typedef std::unordered_map<std::string, SIOEvent> EventRegistry;
|
|||
/**
|
||||
* @brief A single connection to a socket.io endpoint
|
||||
*/
|
||||
class SIOClient
|
||||
class CC_DLL SIOClient
|
||||
: public cocos2d::Ref
|
||||
{
|
||||
private:
|
||||
|
|
|
@ -47,7 +47,7 @@ namespace network {
|
|||
class WsThreadHelper;
|
||||
class WsMessage;
|
||||
|
||||
class WebSocket
|
||||
class CC_DLL WebSocket
|
||||
{
|
||||
public:
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue