1 // Lzma2Register.cpp
2 
3 #include "StdAfx.h"
4 
5 #include "../Common/RegisterCodec.h"
6 
7 #include "Lzma2Decoder.h"
8 
CreateCodec()9 static void *CreateCodec() { return (void *)(ICompressCoder *)(new NCompress::NLzma2::CDecoder); }
10 #ifndef EXTRACT_ONLY
11 #include "Lzma2Encoder.h"
CreateCodecOut()12 static void *CreateCodecOut() { return (void *)(ICompressCoder *)(new NCompress::NLzma2::CEncoder);  }
13 #else
14 #define CreateCodecOut 0
15 #endif
16 
17 static CCodecInfo g_CodecInfo =
18   { CreateCodec, CreateCodecOut, 0x21, L"LZMA2", 1, false };
19 
20 REGISTER_CODEC(LZMA2)
21