aboutsummaryrefslogtreecommitdiff
path: root/include/main.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/main.h')
-rw-r--r--include/main.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/main.h b/include/main.h
new file mode 100644
index 0000000..b37a6b1
--- /dev/null
+++ b/include/main.h
@@ -0,0 +1,16 @@
+#ifndef MAIN_H
+#define MAIN_H
+
+#include <signal.h>
+
+#include "config.h"
+#include "util.h"
+
+#define REFRESH_SIGNAL SIGUSR1
+
+// Utilise C's adjacent string concatenation to count the number of blocks.
+#define X(...) "."
+enum { BLOCK_COUNT = LEN(BLOCKS(X)) - 1 };
+#undef X
+
+#endif // MAIN_H