From 5527faca5decb0037820f74c10f4d3d552dd4f09 Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Fri, 1 May 2015 18:19:11 +0300 Subject: [PATCH] Raft server: more internals --- .../dynamic_node_id_allocation_server.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/libuavcan/include/uavcan/protocol/dynamic_node_id_allocation_server.hpp b/libuavcan/include/uavcan/protocol/dynamic_node_id_allocation_server.hpp index bd5d311152..3cc151c7f2 100644 --- a/libuavcan/include/uavcan/protocol/dynamic_node_id_allocation_server.hpp +++ b/libuavcan/include/uavcan/protocol/dynamic_node_id_allocation_server.hpp @@ -97,6 +97,16 @@ private: (const protocol::dynamic_node_id::server::RequestVote::Request&, protocol::dynamic_node_id::server::RequestVote::Response&)> RequestVoteCallback; + typedef MethodBinder&)> + AppendEntriesResponseCallback; + + typedef MethodBinder&)> + RequestVoteResponseCallback; + /* * Internal type definitions */ @@ -358,6 +368,11 @@ private: ServiceServer append_entries_srv_; ServiceServer request_vote_srv_; + + ServiceClient append_entries_client_; + ServiceClient request_vote_client_; }; }