aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/debug.h
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-07-14 11:24:22 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2018-07-14 20:44:32 -0400
commitb1afcc69fa70c20d815940fc25189063ed59ae0f (patch)
treeb5876df0592a14729b09de80fc7fabfaf01065b4 /include/sway/debug.h
parentMerge pull request #2271 from RedSoxFan/implement-1569 (diff)
downloadsway-b1afcc69fa70c20d815940fc25189063ed59ae0f.tar.gz
sway-b1afcc69fa70c20d815940fc25189063ed59ae0f.tar.zst
sway-b1afcc69fa70c20d815940fc25189063ed59ae0f.zip
Add extended debugging flags
We currently have several ways of setting debug flags, including command line arguments, environment variables, and compile-time macros. This replaces the lot with command line flags.
Diffstat (limited to 'include/sway/debug.h')
-rw-r--r--include/sway/debug.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/sway/debug.h b/include/sway/debug.h
index 2430d319..38d4eccd 100644
--- a/include/sway/debug.h
+++ b/include/sway/debug.h
@@ -1,7 +1,15 @@
1#ifndef SWAY_DEBUG_H 1#ifndef SWAY_DEBUG_H
2#define SWAY_DEBUG_H 2#define SWAY_DEBUG_H
3 3
4// Tree
4extern bool enable_debug_tree; 5extern bool enable_debug_tree;
5void update_debug_tree(); 6void update_debug_tree();
6 7
8// Damage
9extern const char *damage_debug;
10
11// Transactions
12extern int txn_timeout_ms;
13extern bool txn_debug;
14
7#endif 15#endif