view src/win32/7zip/7z/CPP/7zip/Archive/Zip/ZipRegister.cpp @ 1:f9f4f1b99eed

importing src directory
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:31:27 -0600
parents
children
line wrap: on
line source
1 // ZipRegister.cpp
3 #include "StdAfx.h"
5 #include "../../Common/RegisterArc.h"
7 #include "ZipHandler.h"
8 static IInArchive *CreateArc() { return new NArchive::NZip::CHandler; }
9 #ifndef EXTRACT_ONLY
10 static IOutArchive *CreateArcOut() { return new NArchive::NZip::CHandler; }
11 #else
12 #define CreateArcOut 0
13 #endif
15 static CArcInfo g_ArcInfo = { L"Zip", L"zip jar xpi zsg", 0, 1, { 0x50, 0x4B, 0x03, 0x04 }, 4, false, CreateArc, CreateArcOut };
16 static CArcInfo g_ArcInfo2 = { L"Zip", L"zip jar xpi zsg", 0, 1, { 0x50, 0x4B, 0x01, 0x02 }, 4, false, CreateArc, CreateArcOut };
17 static CArcInfo g_ArcInfo3 = { L"Zip", L"zip jar xpi zsg", 0, 1, { 0x50, 0x4B, 0x05, 0x06 }, 4, false, CreateArc, CreateArcOut };
19 REGISTER_ARC(Zip)
20 REGISTER_ARCN(Zip,2)
21 REGISTER_ARCN(Zip,3)