aboutsummaryrefslogtreecommitdiff
path: root/src/tbf.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tbf.h')
-rw-r--r--src/tbf.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/tbf.h b/src/tbf.h
new file mode 100644
index 0000000..3c7a118
--- /dev/null
+++ b/src/tbf.h
@@ -0,0 +1,38 @@
1/* This file is part of vmod-tbf
2 Copyright (C) 2013-2014 Sergey Poznyakoff
3
4 Vmod-tbf is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 3, or (at your option)
7 any later version.
8
9 Vmod-tbf is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with vmod-tbf. If not, see <http://www.gnu.org/licenses/>.
16*/
17#include <config.h>
18#include <stdlib.h>
19#include <stdio.h>
20#include <stdbool.h>
21#include <syslog.h>
22#include "vrt.h"
23#include "vcc_if.h"
24#include "pthread.h"
25#if VARNISHVERSION == 3
26# include "bin/varnishd/cache.h"
27# define VCL_VOID void
28# define VCL_INT int
29# define VCL_REAL double
30# define VCL_BOOL unsigned
31# define VCL_STRING const char *
32# define MOD_CTX struct sess *
33# define WSPTR(s) ((s)->wrk->ws)
34#else
35# include "bin/varnishd/cache/cache.h"
36# define MOD_CTX const struct vrt_ctx *
37# define WSPTR(s) ((s)->ws)
38#endif

Return to:

Send suggestions and report system problems to the System administrator.