stub unix

This commit is contained in:
Chris Marsh 2017-07-13 10:08:14 -07:00
parent 9e31f96691
commit 79823706e8
2 changed files with 46 additions and 1 deletions

View File

@ -4,7 +4,7 @@ set(BASE_RPC_SRC ${PROJECT_SOURCE_DIR}/include/discord-rpc.h discord-rpc.cpp yol
if(WIN32) if(WIN32)
add_library(discord-rpc-simple STATIC ${PROJECT_SOURCE_DIR}/include/discord-rpc.h discord-rpc-simple.cpp) add_library(discord-rpc-simple STATIC ${PROJECT_SOURCE_DIR}/include/discord-rpc.h discord-rpc-simple.cpp)
add_library(discord-rpc-sync STATIC ${BASE_RPC_SRC} connection_win_sync.cpp) add_library(discord-rpc-sync STATIC ${BASE_RPC_SRC} connection_win_sync.cpp)
target_include_directories(discord-rpc-sync PRIVATE ${RAPIDJSON}/include) target_include_directories(discord-rpc-sync PRIVATE ${RAPIDJSON}/include)
@ -12,3 +12,7 @@ if(WIN32)
target_include_directories(discord-rpc PRIVATE ${RAPIDJSON}/include) target_include_directories(discord-rpc PRIVATE ${RAPIDJSON}/include)
endif(WIN32) endif(WIN32)
if(UNIX)
add_library(discord-rpc STATIC ${BASE_RPC_SRC} connection_unix.cpp)
target_include_directories(discord-rpc PRIVATE ${RAPIDJSON}/include)
endif(UNIX)

41
src/connection_unix.cpp Normal file
View File

@ -0,0 +1,41 @@
#include "connection.h"
/*static*/ RpcConnection* RpcConnection::Create(const char* applicationId)
{
return nullptr;
}
/*static*/ void RpcConnection::Destroy(RpcConnection*&)
{
}
void RpcConnection::Open()
{
}
void RpcConnection::Close()
{
}
void RpcConnection::Write(const void* data, size_t length)
{
}
RpcMessageFrame* RpcConnection::Read()
{
return nullptr;
}
RpcMessageFrame* RpcConnection::GetNextFrame()
{
return nullptr;
}
void RpcConnection::WriteFrame(RpcMessageFrame* frame)
{
}