2023-11-16 04:38:29 +01:00
|
|
|
#ifndef MAIN_H
|
|
|
|
#define MAIN_H
|
2023-10-24 05:14:31 +02:00
|
|
|
|
|
|
|
#include <signal.h>
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
#include "util.h"
|
|
|
|
|
2023-10-25 16:30:08 +02:00
|
|
|
#define REFRESH_SIGNAL SIGUSR1
|
|
|
|
|
2023-10-24 05:14:31 +02:00
|
|
|
// Utilise C's adjacent string concatenation to count the number of blocks.
|
|
|
|
#define X(...) "."
|
2023-10-25 16:30:08 +02:00
|
|
|
enum { BLOCK_COUNT = LEN(BLOCKS(X)) - 1 };
|
2023-10-24 05:14:31 +02:00
|
|
|
#undef X
|
2023-11-16 04:38:29 +01:00
|
|
|
|
|
|
|
#endif // MAIN_H
|