diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/win32/7zip/7z/CPP/7zip/Archive/Zip/ZipRegister.cpp	Sat Mar 03 10:31:27 2012 -0600
     1.3 @@ -0,0 +1,21 @@
     1.4 +// ZipRegister.cpp
     1.5 +
     1.6 +#include "StdAfx.h"
     1.7 +
     1.8 +#include "../../Common/RegisterArc.h"
     1.9 +
    1.10 +#include "ZipHandler.h"
    1.11 +static IInArchive *CreateArc() { return new NArchive::NZip::CHandler;  }
    1.12 +#ifndef EXTRACT_ONLY
    1.13 +static IOutArchive *CreateArcOut() { return new NArchive::NZip::CHandler;  }
    1.14 +#else
    1.15 +#define CreateArcOut 0
    1.16 +#endif
    1.17 +
    1.18 +static CArcInfo g_ArcInfo  = { L"Zip", L"zip jar xpi zsg", 0, 1, { 0x50, 0x4B, 0x03, 0x04 }, 4, false, CreateArc, CreateArcOut };
    1.19 +static CArcInfo g_ArcInfo2 = { L"Zip", L"zip jar xpi zsg", 0, 1, { 0x50, 0x4B, 0x01, 0x02 }, 4, false, CreateArc, CreateArcOut };
    1.20 +static CArcInfo g_ArcInfo3 = { L"Zip", L"zip jar xpi zsg", 0, 1, { 0x50, 0x4B, 0x05, 0x06 }, 4, false, CreateArc, CreateArcOut };
    1.21 +
    1.22 +REGISTER_ARC(Zip)
    1.23 +REGISTER_ARCN(Zip,2)
    1.24 +REGISTER_ARCN(Zip,3)