summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2015-08-20 09:34:06 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2015-08-20 09:34:06 -0400
commit84f01a67bdaef4dbff787caa4b076ed60e257c51 (patch)
tree0d264e5a6232071a8277c59216f85aac64583459 /include
parentAdd command line parsing (diff)
parentadded missing header file (diff)
downloadsway-84f01a67bdaef4dbff787caa4b076ed60e257c51.tar.gz
sway-84f01a67bdaef4dbff787caa4b076ed60e257c51.tar.zst
sway-84f01a67bdaef4dbff787caa4b076ed60e257c51.zip
Merge pull request #75 from minus7/ipc
i3 IPC
Diffstat (limited to 'include')
-rw-r--r--include/ipc.h18
-rw-r--r--include/log.h1
-rw-r--r--include/sway.h6
3 files changed, 25 insertions, 0 deletions
diff --git a/include/ipc.h b/include/ipc.h
new file mode 100644
index 00000000..0b6441f6
--- /dev/null
+++ b/include/ipc.h
@@ -0,0 +1,18 @@
1#ifndef _SWAY_IPC_H
2#define _SWAY_IPC_H
3
4enum ipc_command_type {
5 IPC_COMMAND = 0,
6 IPC_GET_WORKSPACES = 1,
7 IPC_SUBSCRIBE = 2,
8 IPC_GET_OUTPUTS = 3,
9 IPC_GET_TREE = 4,
10 IPC_GET_MARKS = 5,
11 IPC_GET_BAR_CONFIG = 6,
12 IPC_GET_VERSION = 7,
13};
14
15void ipc_init(void);
16void ipc_terminate(void);
17
18#endif
diff --git a/include/log.h b/include/log.h
index 7aea2ded..47a83321 100644
--- a/include/log.h
+++ b/include/log.h
@@ -13,6 +13,7 @@ typedef enum {
13void init_log(int verbosity); 13void init_log(int verbosity);
14void sway_log_colors(int mode); 14void sway_log_colors(int mode);
15void sway_log(int verbosity, const char* format, ...) __attribute__((format(printf,2,3))); 15void sway_log(int verbosity, const char* format, ...) __attribute__((format(printf,2,3)));
16void sway_log_errno(int verbosity, char* format, ...) __attribute__((format(printf,2,3)));
16void sway_abort(const char* format, ...) __attribute__((format(printf,1,2))); 17void sway_abort(const char* format, ...) __attribute__((format(printf,1,2)));
17bool sway_assert(bool condition, const char* format, ...) __attribute__((format(printf,2,3))); 18bool sway_assert(bool condition, const char* format, ...) __attribute__((format(printf,2,3)));
18 19
diff --git a/include/sway.h b/include/sway.h
new file mode 100644
index 00000000..6499c81d
--- /dev/null
+++ b/include/sway.h
@@ -0,0 +1,6 @@
1#ifndef _SWAY_SWAY_H
2#define _SWAY_SWAY_H
3
4void sway_terminate(void);
5
6#endif