diff options
author | Christian Hesse <mail@eworm.de> | 2014-09-30 00:41:51 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2014-09-30 00:41:51 +0200 |
commit | 1f6eabf364e17b0556994c5011622d0a8015bac0 (patch) | |
tree | 13ef0b750a3c89c0f16afbe52de02dae53a9c8d1 /config.def.h | |
parent | c7691a1a46450d13e31b2494bad906bbaefa5f6d (diff) | |
download | netlink-notify-1f6eabf364e17b0556994c5011622d0a8015bac0.tar.gz netlink-notify-1f6eabf364e17b0556994c5011622d0a8015bac0.tar.zst |
rework big parts of the code
Diffstat (limited to 'config.def.h')
-rw-r--r-- | config.def.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h new file mode 100644 index 0000000..f8c9502 --- /dev/null +++ b/config.def.h @@ -0,0 +1,26 @@ +/* + * (C) 2014 by Christian Hesse <mail@eworm.de> + * + * This software may be used and distributed according to the terms + * of the GNU General Public License, incorporated herein by reference. + */ + +#ifndef CONFIG_H +#define CONFIG_H + +/* how long to show notifications */ +#define NOTIFICATION_TIMEOUT 10000 + +/* define icons */ +#define ICON_NETWORK_ADDRESS "netlink-notify-address" +#define ICON_NETWORK_UP "netlink-notify-up" +#define ICON_NETWORK_DOWN "netlink-notify-down" +#define ICON_NETWORK_AWAY "netlink-notify-away" + +/* define notification text messages */ +#define TEXT_TOPIC "Netlink Notification" +#define TEXT_NEWLINK "Interface <b>%s</b> is <b>%s</b>." +#define TEXT_NEWADDR "Interface <b>%s</b> has new %s address\n<b>%s</b>/%d." +#define TEXT_DELLINK "Interface <b>%s</b> has gone away." + +#endif /* CONFIG_H */ |