From 71478fd62d8483483abb34609cdabb7f9cbadfd6 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 19 Dec 2015 14:18:43 +0000 Subject: Add hostTools from https://github.com/Noltari/cfe_bcm63xx --- hostTools/lzma/compress/7zapi.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 hostTools/lzma/compress/7zapi.cpp (limited to 'hostTools/lzma/compress/7zapi.cpp') diff --git a/hostTools/lzma/compress/7zapi.cpp b/hostTools/lzma/compress/7zapi.cpp new file mode 100644 index 0000000..cc6c908 --- /dev/null +++ b/hostTools/lzma/compress/7zapi.cpp @@ -0,0 +1,19 @@ +#include "7z.h" +/********************** APIs Definitions ************************************/ + +extern "C" { + +int compress_lzma_7zapi(const unsigned char* in_data, unsigned in_size, unsigned char* out_data, unsigned *out_size, unsigned algo, unsigned dictionary_size, unsigned num_fast_bytes); + +} + +int compress_lzma_7zapi(const unsigned char* in_data, unsigned in_size, unsigned char* out_data, unsigned *out_size, unsigned algo, unsigned dictionary_size, unsigned num_fast_bytes) +{ + bool ret; + //unsigned outsize = *out_size; + + ret = compress_lzma_7z(in_data, in_size, out_data, *out_size, algo, dictionary_size, num_fast_bytes); + + return (int)ret; +} + -- cgit v1.2.3