]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/cache_cf.h
2 * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
9 /* DEBUG: section 03 Configuration File Parsing */
11 #ifndef SQUID_SRC_CACHE_CF_H
12 #define SQUID_SRC_CACHE_CF_H
16 void configFreeMemory(void);
17 void self_destruct(void);
18 void add_http_port(char *portspec
);
20 /* extra functions from cache_cf.c useful for lib modules */
21 void parse_int(int *var
);
22 void parse_onoff(int *var
);
23 void parse_eol(char *volatile *var
);
24 void parse_wordlist(wordlist
** list
);
25 void requirePathnameExists(const char *name
, const char *path
);
26 void parse_time_t(time_t * var
);
27 /// Parse bytes number from a string
28 void parseBytesOptionValue(size_t * bptr
, const char *units
, char const * value
);
30 /// During parsing, the name of the current squid.conf directive being parsed.
31 extern const char *cfg_directive
;
32 extern const char *cfg_filename
;
33 extern int config_lineno
;
34 extern char config_input_line
[BUFSIZ
];
36 #endif /* SQUID_SRC_CACHE_CF_H */