Imported Upstream version 9.20
[platform/upstream/7zip.git] / CPP / 7zip / Archive / 7z / 7zRegister.cpp
1 // 7zRegister.cpp\r
2 \r
3 #include "StdAfx.h"\r
4 \r
5 #include "../../Common/RegisterArc.h"\r
6 \r
7 #include "7zHandler.h"\r
8 static IInArchive *CreateArc() { return new NArchive::N7z::CHandler; }\r
9 #ifndef EXTRACT_ONLY\r
10 static IOutArchive *CreateArcOut() { return new NArchive::N7z::CHandler; }\r
11 #else\r
12 #define CreateArcOut 0\r
13 #endif\r
14 \r
15 static CArcInfo g_ArcInfo =\r
16   { L"7z", L"7z", 0, 7, {'7', 'z', 0xBC, 0xAF, 0x27, 0x1C}, 6, false, CreateArc, CreateArcOut };\r
17 \r
18 REGISTER_ARC(7z)\r