view src/win32/7zip/7z/CPP/7zip/Compress/LzmaRegister.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 // LzmaRegister.cpp
3 #include "StdAfx.h"
5 #include "../Common/RegisterCodec.h"
7 #include "LzmaDecoder.h"
9 static void *CreateCodec() { return (void *)(ICompressCoder *)(new NCompress::NLzma::CDecoder); }
10 #ifndef EXTRACT_ONLY
11 #include "LzmaEncoder.h"
12 static void *CreateCodecOut() { return (void *)(ICompressCoder *)(new NCompress::NLzma::CEncoder); }
13 #else
14 #define CreateCodecOut 0
15 #endif
17 static CCodecInfo g_CodecInfo =
18 { CreateCodec, CreateCodecOut, 0x030101, L"LZMA", 1, false };
20 REGISTER_CODEC(LZMA)