From c49ee1c4d3926b873cb60493353525333961e474 Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Sun, 10 May 2015 17:56:48 +0300 Subject: [PATCH] Top-level typedef for distributed::Server --- .../protocol/dynamic_node_id_server/distributed.hpp | 10 ++++++++++ .../dynamic_node_id_server/distributed/server.cpp | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/libuavcan/include/uavcan/protocol/dynamic_node_id_server/distributed.hpp b/libuavcan/include/uavcan/protocol/dynamic_node_id_server/distributed.hpp index eef49ccba1..822f757522 100644 --- a/libuavcan/include/uavcan/protocol/dynamic_node_id_server/distributed.hpp +++ b/libuavcan/include/uavcan/protocol/dynamic_node_id_server/distributed.hpp @@ -7,4 +7,14 @@ #include +namespace uavcan +{ +namespace dynamic_node_id_server +{ + +typedef distributed::Server DistributedServer; + +} +} + #endif // UAVCAN_PROTOCOL_DYNAMIC_NODE_ID_SERVER_DISTRIBUTED_HPP_INCLUDED diff --git a/libuavcan/test/protocol/dynamic_node_id_server/distributed/server.cpp b/libuavcan/test/protocol/dynamic_node_id_server/distributed/server.cpp index d2780d3c53..2dc96aa94f 100644 --- a/libuavcan/test/protocol/dynamic_node_id_server/distributed/server.cpp +++ b/libuavcan/test/protocol/dynamic_node_id_server/distributed/server.cpp @@ -139,7 +139,7 @@ TEST(DynamicNodeIDServer, Main) /* * Server */ - distributed::Server server(nodes.a, storage, tracer); + DistributedServer server(nodes.a, storage, tracer); ASSERT_LE(0, server.init(1));