From c6a8db7d5385b773a8cfedb41444f348d984b383 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Mon, 8 Nov 2010 15:01:09 +0200 Subject: blob, config.[ch]: add missing files and includes --- src/blob.c | 1 + src/config.c | 13 +++++++++++++ src/config.h | 10 ++++++++++ 3 files changed, 24 insertions(+) create mode 100644 src/config.c create mode 100644 src/config.h diff --git a/src/blob.c b/src/blob.c index 3e62fcc..0b52233 100644 --- a/src/blob.c +++ b/src/blob.c @@ -1,5 +1,6 @@ #include #include +#include #include #include diff --git a/src/config.c b/src/config.c new file mode 100644 index 0000000..4ed3f4a --- /dev/null +++ b/src/config.c @@ -0,0 +1,13 @@ +/* config.c - Squid User Authentication and Rating Kit + * + * Copyright (C) 2010 Timo Teräs + * All rights reserved. + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 as published + * by the Free Software Foundation. See http://www.gnu.org/ for details. + */ + +const char *squark_version = SQUARK_VERSION; +const char *squark_config = CONFDIR "/squark.conf"; +const char *squark_dbname = LIBDIR "/squark.db"; diff --git a/src/config.h b/src/config.h new file mode 100644 index 0000000..933a663 --- /dev/null +++ b/src/config.h @@ -0,0 +1,10 @@ +#ifndef CONFIG_H +#define CONFIG_H + +#define DEFAULT_LOGOUT_TIMEOUT (15*60) /* seconds */ + +extern const char *squark_version; +extern const char *squark_config; +extern const char *squark_dbname; + +#endif -- cgit v1.2.3