~ubuntu-branches/debian/sid/varnish/sid

« back to all changes in this revision

Viewing changes to include/vcl.h

  • Committer: Package Import Robot
  • Author(s): Stig Sandbeck Mathisen
  • Date: 2011-10-29 15:23:24 UTC
  • mfrom: (0.1.15)
  • Revision ID: package-import@ubuntu.com-20111029152324-tdtlsurrv22ysknj
Tags: 3.0.2-1
* New upstream release
* Build from upstream tarball instead of git tag
* debian/watch: more specific regular expression

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * NB:  This file is machine generated, DO NOT EDIT!
 
3
 *
 
4
 * Edit and run generate.py instead
 
5
 */
 
6
 
 
7
struct sess;
 
8
struct cli;
 
9
 
 
10
typedef int vcl_init_f(struct cli *);
 
11
typedef void vcl_fini_f(struct cli *);
 
12
typedef int vcl_func_f(struct sess *sp);
 
13
 
 
14
/* VCL Methods */
 
15
#define VCL_MET_RECV            (1U << 0)
 
16
#define VCL_MET_PIPE            (1U << 1)
 
17
#define VCL_MET_PASS            (1U << 2)
 
18
#define VCL_MET_HASH            (1U << 3)
 
19
#define VCL_MET_MISS            (1U << 4)
 
20
#define VCL_MET_HIT             (1U << 5)
 
21
#define VCL_MET_FETCH           (1U << 6)
 
22
#define VCL_MET_DELIVER         (1U << 7)
 
23
#define VCL_MET_ERROR           (1U << 8)
 
24
#define VCL_MET_INIT            (1U << 9)
 
25
#define VCL_MET_FINI            (1U << 10)
 
26
 
 
27
#define VCL_MET_MAX             11
 
28
 
 
29
#define VCL_MET_MASK            0x7ff
 
30
 
 
31
/* VCL Returns */
 
32
#define VCL_RET_DELIVER         0
 
33
#define VCL_RET_ERROR           1
 
34
#define VCL_RET_FETCH           2
 
35
#define VCL_RET_HASH            3
 
36
#define VCL_RET_HIT_FOR_PASS            4
 
37
#define VCL_RET_LOOKUP          5
 
38
#define VCL_RET_OK              6
 
39
#define VCL_RET_PASS            7
 
40
#define VCL_RET_PIPE            8
 
41
#define VCL_RET_RESTART         9
 
42
 
 
43
#define VCL_RET_MAX             10
 
44
 
 
45
struct VCL_conf {
 
46
        unsigned        magic;
 
47
#define VCL_CONF_MAGIC  0x7406c509      /* from /dev/random */
 
48
 
 
49
        struct director **director;
 
50
        unsigned        ndirector;
 
51
        struct vrt_ref  *ref;
 
52
        unsigned        nref;
 
53
        unsigned        busy;
 
54
        unsigned        discard;
 
55
 
 
56
        unsigned        nsrc;
 
57
        const char      **srcname;
 
58
        const char      **srcbody;
 
59
 
 
60
        vcl_init_f      *init_vcl;
 
61
        vcl_fini_f      *fini_vcl;
 
62
        vcl_func_f      *recv_func;
 
63
        vcl_func_f      *pipe_func;
 
64
        vcl_func_f      *pass_func;
 
65
        vcl_func_f      *hash_func;
 
66
        vcl_func_f      *miss_func;
 
67
        vcl_func_f      *hit_func;
 
68
        vcl_func_f      *fetch_func;
 
69
        vcl_func_f      *deliver_func;
 
70
        vcl_func_f      *error_func;
 
71
        vcl_func_f      *init_func;
 
72
        vcl_func_f      *fini_func;
 
73
 
 
74
};