Add CC_DLL for related network files

This commit is contained in:
samuele3hu 2014-08-22 13:42:46 +08:00
parent 700699a37f
commit ada7fa23d3
5 changed files with 6 additions and 6 deletions

View File

@ -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 **/

View File

@ -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) */

View File

@ -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

View File

@ -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:

View File

@ -47,7 +47,7 @@ namespace network {
class WsThreadHelper;
class WsMessage;
class WebSocket
class CC_DLL WebSocket
{
public:
/**