summaryrefslogtreecommitdiff
path: root/library/src/library.cpp
blob: 4691849f973b6168f644a5af6ad12f17b5f8b485 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <rpc/client.h>

#include <hwd/internal.h>

namespace hwd
{

static rpc::client & get_client()
{
	static rpc::client c("127.0.0.1", hwd::internal::default_port);
	return c;
}

void stop_server()
{
	get_client().call("stop_server");
}

}  // namespace hwd