[master] 3790d27 Add table of (future) object attributes
Poul-Henning Kamp
phk at FreeBSD.org
Wed Jul 30 11:11:51 CEST 2014
commit 3790d27321381919ea78ccabd955ac131704857d
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Wed Jul 30 09:11:22 2014 +0000
Add table of (future) object attributes
diff --git a/include/Makefile.am b/include/Makefile.am
index 2091ab5..766eb9a 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -13,6 +13,7 @@ nobase_pkginclude_HEADERS = \
tbl/http_headers.h \
tbl/http_response.h \
tbl/locks.h \
+ tbl/obj_attr.h \
tbl/req_body.h \
tbl/sess_close.h \
tbl/steps.h \
diff --git a/include/tbl/obj_attr.h b/include/tbl/obj_attr.h
new file mode 100644
index 0000000..c1f2d10
--- /dev/null
+++ b/include/tbl/obj_attr.h
@@ -0,0 +1,42 @@
+/*-
+ * Copyright (c) 2014 Varnish Software AS
+ * All rights reserved.
+ *
+ * Author: Poul-Henning Kamp <phk at phk.freebsd.dk>
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ */
+
+/*lint -save -e525 -e539 */
+
+/* upper, lower */
+OBJ_ATTR(VXID, vxid)
+OBJ_ATTR(EXP, exp)
+OBJ_ATTR(VARY, vary)
+OBJ_ATTR(HEADERS, headers)
+OBJ_ATTR(GZIPED, gziped)
+OBJ_ATTR(CHGGZIPED, chggziped)
+OBJ_ATTR(GZIPBITS, gzipbits)
+OBJ_ATTR(ESIDATA, esidata)
+
+/*lint -restore */
More information about the varnish-commit
mailing list