-//
-// $Id$
-//
+/*
+ * Copyright (C) 1996-2020 The Squid Software Foundation and contributors
+ *
+ * Squid software is distributed under GPLv2+ license and includes
+ * contributions from numerous individuals and organizations.
+ * Please see the COPYING and CONTRIBUTORS files for details.
+ */
+
// Author: Jens-S. V?ckler <voeckler@rvs.uni-hannover.de>
//
// File: conffile.hh
#ifndef _CONFFILE_HH
#define _CONFFILE_HH
-#if defined(__GNUC__) || defined(__GNUG__)
-#pragma interface
-#else
-#ifndef HAS_BOOL
-#define HAS_BOOL
+#if !defined(__cplusplus)
+#ifndef HAVE_BOOL
+#define HAVE_BOOL
typedef int bool;
#define false 0
#define true 1
#endif
-#endif
-
-
-#ifndef DEFAULT_SQUID_CONF
-#define DEFAULT_SQUID_CONF "/usr/local/squid/etc/squid.conf"
-#endif // DEFAULT_SQUID_CONF
+#endif /* __cplusplus */
-#include <stdio.h> // FILE*
-#include <vector> // minimum STL container
+#include <vector>
struct CacheDir {
enum CacheDirType { CDT_NONE, CDT_UFS, CDT_AUFS, CDT_DISKD, CDT_OTHER };
int
readConfigFile( CacheDirVector& cachedir,
- const char* fn = DEFAULT_SQUID_CONF,
+ const char* fn,
FILE* debug = 0 );
// purpose: read squid.conf file and extract cache_dir entries
// paramtr: cachedir (OUT): vector with an entry for each cache_dir found