]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/esi/Module.cc
2 * Copyright (C) 1996-2018 The Squid Software Foundation and contributors
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
10 #include "esi/CustomParser.h"
11 #include "esi/Libxml2Parser.h"
12 #include "esi/Module.h"
13 /* include for esi/ExpatParser.h must follow esi/Libxml2Parser.h */
14 /* do not remove this comment, as it acts as barrier for the autmatic sorting */
15 #include "esi/ExpatParser.h"
17 static ESIParser::Register
*prCustom
= 0;
19 static ESIParser::Register
*prLibxml
= 0;
22 static ESIParser::Register
*prExpat
= 0;
27 assert(!prCustom
); // we should be called once
29 prCustom
= new ESIParser::Register("custom", &ESICustomParser::NewParser
);
32 prLibxml
= new ESIParser::Register("libxml2", &ESILibxml2Parser::NewParser
);
36 prExpat
= new ESIParser::Register("expat", &ESIExpatParser::NewParser
);
42 assert(prCustom
); // we should be called once, and only after Init()