summaryrefslogtreecommitdiffhomepage
path: root/whiteboard.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2023-01-28 21:24:11 +0100
committerRoland Reichwein <mail@reichwein.it>2023-01-28 21:24:11 +0100
commit4eedb599d8de5559daa4678c7520bb36968e767e (patch)
tree43830f8cf5c880d8be76b8f98bb2f73d78e38c78 /whiteboard.h
parenta69b1d0c580bc779740ef79a7d16b69229896785 (diff)
Server to client: diffs
Diffstat (limited to 'whiteboard.h')
-rw-r--r--whiteboard.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/whiteboard.h b/whiteboard.h
index 818fcfe..c000e36 100644
--- a/whiteboard.h
+++ b/whiteboard.h
@@ -7,6 +7,7 @@
#include <boost/asio/ip/tcp.hpp>
+#include "diff.h"
#include "config.h"
#include "connectionregistry.h"
#include "storage.h"
@@ -27,7 +28,7 @@ private:
using connection = std::shared_ptr<boost::beast::websocket::stream<boost::asio::ip::tcp::socket>>;
std::string handle_request(connection& c, const std::string& request);
- void notify_other_connections_file(connection& c, const std::string& id); // notify all other id-related connections about changes
+ void notify_other_connections_diff(connection& c, const std::string& id, const Diff& diff); // notify all other id-related connections about changes
void notify_other_connections_pos(connection& c, const std::string& id); // notify all other id-related connections about changes
void do_session(boost::asio::ip::tcp::socket socket);
void storage_cleanup();