]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/esi/Module.cc
16d1bc9aa2afca16472a8f657b8eec664ea67b44
2 #include "esi/Module.h"
3 #include "esi/CustomParser.h"
4 #include "esi/Libxml2Parser.h"
5 #include "esi/ExpatParser.h" /* must follow esi/Libxml2Parser.h */
7 static ESIParser::Register
*prCustom
= 0;
9 static ESIParser::Register
*prLibxml
= 0;
12 static ESIParser::Register
*prExpat
= 0;
17 assert(!prCustom
); // we should be called once
19 prCustom
= new ESIParser::Register("custom", &ESICustomParser::NewParser
);
22 prLibxml
= new ESIParser::Register("libxml2", &ESILibxml2Parser::NewParser
);
26 prExpat
= new ESIParser::Register("expat", &ESIExpatParser::NewParser
);
32 assert(prCustom
); // we should be called once, and only after Init()