]> git.ipfire.org Git - thirdparty/squid.git/commit - src/cf.data.pre
Cleanup: Refactor external_acl_type format codes representation
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 7 May 2014 10:05:58 +0000 (03:05 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 7 May 2014 10:05:58 +0000 (03:05 -0700)
commit5aca9cf2e5a7c901386831bca92d0339c6e5e60e
tree064c2b0998b963f451d0544893012e97efa1eccb
parentfb93aaa47625d637f9523ea77f29b2871c1b8817
Cleanup: Refactor external_acl_type format codes representation

Removes enum_external_acl_format::format_type from external_acl.cc
by replacing it with enum Format::ByteCode_t.

Several missing logformat codes related to URL display have been added
to the logformat token set for general use.

Several of the external ACL format codes have been added to
Format::ByteCode_t without equivalent logformat TokenTableEntry's at
this stage as both desirable token naming and access to the data to
produce them generically is unclear.

The external_acl_type parser is updated to accept logformat tokens
wherever an equivalent exists and map directly to the ByteCode_t values.

The mgr:config report dumper is also updated to output the logformat
tokens. But as yet the official deprecation has not been done in
squid.conf.
src/cf.data.pre
src/external_acl.cc
src/format/ByteCode.h
src/format/Format.cc
src/format/Token.cc