peerplays-fc/vendor/easylzma/src/lzma_c.h

35 lines
901 B
C
Raw Normal View History

2014-01-22 13:28:21 +00:00
#ifndef __LZMA_C_H__
#define __LZMA_C_H__
#include <stdlib.h>
#include "easylzma/compress.h"
#include "easylzma/decompress.h"
#ifdef __cplusplus
extern "C" {
#endif
/* compress a chunk of memory and return a dynamically allocated buffer
* if successful. return value is an easylzma error code */
int simpleCompress(elzma_file_format format,
const unsigned char * inData,
size_t inLen,
unsigned char ** outData,
size_t * outLen);
/* decompress a chunk of memory and return a dynamically allocated buffer
* if successful. return value is an easylzma error code */
int simpleDecompress(elzma_file_format format,
const unsigned char * inData,
size_t inLen,
unsigned char ** outData,
size_t * outLen);
#ifdef __cplusplus
};
#endif
#endif