From 9ae11a3545336ffa8fab3552ea8d16e72481d9da Mon Sep 17 00:00:00 2001 From: Frediano Ziglio Date: Thu, 23 May 2019 02:32:50 +0100 Subject: [PATCH] red-channel-client: Move some methods to a protected section Reduce visibility and increase encapsulation. Signed-off-by: Frediano Ziglio --- server/red-channel-client.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/red-channel-client.h b/server/red-channel-client.h index edd1478c..340adcc0 100644 --- a/server/red-channel-client.h +++ b/server/red-channel-client.h @@ -49,7 +49,6 @@ public: bool is_connected() const; bool is_waiting_for_migrate_data() const; - bool test_remote_common_cap(uint32_t cap) const; bool test_remote_cap(uint32_t cap) const; /* shutdown is the only safe thing to do out of the client/channel * thread. It will not touch the rings, just shutdown the socket. @@ -140,7 +139,6 @@ public: RedChannel* get_channel(); void semi_seamless_migration_complete(); - void init_outgoing_messages_window(); bool set_migration_seamless(); @@ -154,6 +152,10 @@ public: // callback from client virtual void migrate(); +protected: + bool test_remote_common_cap(uint32_t cap) const; + void init_outgoing_messages_window(); + /* configure socket connected to the client */ virtual bool config_socket() { return true; } virtual uint8_t *alloc_recv_buf(uint16_t type, uint32_t size)=0;