Top-level typedef for distributed::Server

This commit is contained in:
Pavel Kirienko
2015-05-10 17:56:48 +03:00
parent 12a81b5bef
commit c49ee1c4d3
2 changed files with 11 additions and 1 deletions
@@ -7,4 +7,14 @@
#include <uavcan/protocol/dynamic_node_id_server/distributed/server.hpp>
namespace uavcan
{
namespace dynamic_node_id_server
{
typedef distributed::Server DistributedServer;
}
}
#endif // UAVCAN_PROTOCOL_DYNAMIC_NODE_ID_SERVER_DISTRIBUTED_HPP_INCLUDED
@@ -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));