Skip to content

Commit

Permalink
Merge branch 'master' of github.com:ungive/loon
Browse files Browse the repository at this point in the history
  • Loading branch information
ungive committed Sep 10, 2024
2 parents 6917245 + 7cabac8 commit 77f316d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github: ungive
liberapay: jonasvandenberg
4 changes: 2 additions & 2 deletions client/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ endif()
# protobuf + protocol buffers
set(Protobuf_USE_STATIC_LIBS ON CACHE BOOL "Override option" FORCE)
find_package(Protobuf CONFIG REQUIRED)
target_include_directories(loon PRIVATE ${Protobuf_INCLUDE_DIRS})
target_include_directories(loon PRIVATE ${Protobuf_INCLUDE_DIRS} ${protobuf_INCLUDE_DIRS})
target_include_directories(loon PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
configure_file(../api/messages.proto
${CMAKE_CURRENT_BINARY_DIR}/loon/messages.proto COPYONLY)
add_library(loon_proto STATIC ${CMAKE_CURRENT_BINARY_DIR}/loon/messages.proto)
target_include_directories(loon_proto PRIVATE ${Protobuf_INCLUDE_DIRS})
target_include_directories(loon_proto PRIVATE ${Protobuf_INCLUDE_DIRS} ${protobuf_INCLUDE_DIRS})
target_include_directories(loon_proto PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
protobuf_generate(
LANGUAGE
Expand Down
1 change: 1 addition & 0 deletions client/src/request_handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <functional>
#include <memory>
#include <optional>
#include <thread>

#include "loon/client.h"
#include "loon/messages.pb.h"
Expand Down
2 changes: 1 addition & 1 deletion client/src/websocket/backend_qt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ void loon::websocket::log_handler(log_handler_t handler)
_handler = handler;
}

static inline void log_message(loon::LogLevel level, std::string const& message)
inline void log_message(loon::LogLevel level, std::string const& message)
{
const std::lock_guard<std::mutex> lock(_mutex);
if (_handler) {
Expand Down
4 changes: 2 additions & 2 deletions client/src/websocket/client.h
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@ class BaseClient : public IClient
void on_message(
std::function<void(std::string const& message)> callback) override;

virtual int64_t send_binary(const char* data, size_t length) = 0;
virtual int64_t send_binary(const char* data, size_t length) override = 0;

virtual int64_t send_text(const char* data, size_t length) = 0;
virtual int64_t send_text(const char* data, size_t length) override = 0;

void start() override;

Expand Down

0 comments on commit 77f316d

Please sign in to comment.