]> git.ipfire.org Git - thirdparty/squid.git/blame - helpers/defines.h
SourceFormat Enforcement
[thirdparty/squid.git] / helpers / defines.h
CommitLineData
5b95b903 1/*
ef57eb7b 2 * Copyright (C) 1996-2016 The Squid Software Foundation and contributors
5b95b903
AJ
3 *
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.
7 */
43fed740 8
8432a09e
AJ
9/*
10 * Copyright (c) 2009-2014, Treehouse Networks Ltd. New Zealand
11 * All rights reserved.
12 *
13 * Redistribution and use in source and binary forms, with or without
14 * modification, are permitted provided that the following conditions
15 * are met:
16 *
17 * 1. Redistributions of source code must retain the above copyright
18 * notice, this list of conditions and the following disclaimer.
19 *
20 * 2. Redistributions in binary form must reproduce the above copyright
21 * notice, this list of conditions and the following disclaimer in the
22 * documentation and/or other materials provided with the distribution.
23 *
24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
25 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
26 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
27 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
28 * COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
29 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
30 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
31 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
32 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
34 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
35 * POSSIBILITY OF SUCH DAMAGE.
36 */
37
5b95b903
AJ
38#ifndef __SQUID_HELPERS_DEFINES_H
39#define __SQUID_HELPERS_DEFINES_H
40
43fed740
AJ
41/*
42 * This file contains several macro definitions which are
43 * useful and shared between helpers.
44 */
45
f53969cc 46#define HELPER_INPUT_BUFFER 8196
43fed740 47
43fed740 48/* send OK result to Squid with a string parameter. */
900809ea 49#define SEND_OK(x) std::cout << "OK " << x << std::endl
43fed740
AJ
50
51/* send ERR result to Squid with a string parameter. */
900809ea 52#define SEND_ERR(x) std::cout << "ERR " << x << std::endl
43fed740 53
f073f56c 54/* send ERR result to Squid with a string parameter. */
900809ea 55#define SEND_BH(x) std::cout << "BH " << x << std::endl
f073f56c 56
6ad14574 57/* send TT result to Squid with a string parameter. */
900809ea 58#define SEND_TT(x) std::cout << "TT " << x << std::endl
6ad14574 59
43fed740 60#endif /* __SQUID_HELPERS_DEFINES_H */
f53969cc 61