1 
2 module i3ipc;
3 
4 Connection connect(Connection)(UnixAddress address = getSessionIPCAddress)
5 {
6 	return Connection(address);
7 }
8 
9 auto execute(string command)
10 {
11 	return connect!QueryConnection.execute(command);
12 }
13 
14 auto workspaces()
15 {
16 	return connect!QueryConnection.workspaces;
17 }
18 
19 auto outputs()
20 {
21 	return connect!QueryConnection.outputs;
22 }
23 
24 Container tree()
25 {
26 	return connect!QueryConnection.tree;
27 }
28 
29 auto marks()
30 {
31 	return connect!QueryConnection.marks;
32 }
33 
34 auto configuredBars()
35 {
36 	return connect!QueryConnection.configuredBars;
37 }
38 
39 auto getBarConfig(string id)
40 {
41 	return connect!QueryConnection.getBarConfig(id);
42 }
43 
44 auto version_()
45 {
46 	return connect!QueryConnection.version_;
47 }
48 
49 import std.socket : UnixAddress;
50 import std.exception : enforce;
51 
52 import i3ipc.protocol;
53 import i3ipc.socket;
54 import i3ipc.data;
55 import i3ipc.connection;
56 public import i3ipc.connection : QueryConnection,
57                                  FiberedConnection,
58 								 ThreadedConnection;