2018-10-22 17:27:52 +02:00
|
|
|
/* Copyright (c), Niclas Meyer <niclas@countingsort.com>
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
|
|
*/
|
|
|
|
|
2018-10-22 17:24:24 +02:00
|
|
|
#ifndef COMMON_H
|
|
|
|
#define COMMON_H
|
|
|
|
|
|
|
|
#include <stdnoreturn.h>
|
2018-10-16 21:22:44 +02:00
|
|
|
|
|
|
|
#define SOCK_ENV_VAR "KIWMI_SOCKET"
|
|
|
|
#define SOCK_DEF_PATH "/tmp/kiwmi.sock"
|
|
|
|
|
2018-10-17 09:19:49 +02:00
|
|
|
#define CONFIG_FILE "kiwmi/kiwmirc"
|
|
|
|
|
2018-10-22 17:24:24 +02:00
|
|
|
noreturn void die(char *fmt, ...);
|
2018-10-17 09:52:51 +02:00
|
|
|
void warn(char *fmt, ...);
|
2018-10-16 21:22:44 +02:00
|
|
|
|
|
|
|
extern const char *argv0;
|
|
|
|
|
2018-10-22 17:24:24 +02:00
|
|
|
#endif /* COMMON_H */
|