Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
5e03b60d
Commit
5e03b60d
authored
Feb 04, 2021
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make generate.py emit struct vrt_type
parent
a0e0b0d2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
9 deletions
+13
-9
vrt.h
include/vrt.h
+2
-9
generate.py
lib/libvcc/generate.py
+11
-0
No files found.
include/vrt.h
View file @
5e03b60d
...
...
@@ -53,6 +53,8 @@
* binary/load-time compatible, increment MAJOR version
*
* 13.0 (2021-03-15)
* struct vrt_type now produced by generate.py
* VRT_acl_log() moved to VPI_acl_log()
* VRT_Endpoint_Clone() added.
* Calling convention for VDP implementation changed
* VRT_ValidHdr() added.
...
...
@@ -286,15 +288,6 @@ typedef vtim_real VCL_TIME;
typedef
struct
vcl
*
VCL_VCL
;
typedef
void
VCL_VOID
;
struct
vrt_type
{
unsigned
magic
;
#define VRT_TYPE_MAGIC 0xa943bc32
const
char
*
lname
;
const
char
*
uname
;
const
char
*
ctype
;
size_t
szof
;
};
enum
lbody_e
{
LBODY_SET
,
LBODY_ADD
,
...
...
lib/libvcc/generate.py
View file @
5e03b60d
...
...
@@ -646,6 +646,17 @@ for i in sorted(rets.keys()):
fo
.
write
(
"
\n
"
+
tbl40
(
"#define VCL_RET_MAX"
,
"
%
d
\n
"
%
n
))
fo
.
write
(
"
\n
/* VCL Types */
\n
"
)
fo
.
write
(
'''
struct vrt_type {
\t
unsigned
\t\t
magic;
#define VRT_TYPE_MAGIC
\t\t
0xa943bc32
\t
const char
\t\t
*lname;
\t
const char
\t\t
*uname;
\t
const char
\t\t
*ctype;
\t
size_t
\t\t\t
szof;
};
'''
)
for
vcltype
in
sorted
(
vcltypes
.
keys
()):
fo
.
write
(
"extern const struct vrt_type VCL_TYPE_
%
s[1];
\n
"
%
vcltype
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment