summaryrefslogtreecommitdiffstats
path: root/depends/lzma/wrapper/common_internal.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-09-28 18:43:30 +0200
committerPetr Mrázek <peterix@gmail.com>2013-09-28 18:43:30 +0200
commitd267d86f6e24c4f947c30c1a3642d57b82f8addd (patch)
treea0c0cc7ced7f8d38ea5c12108ded83c762fba2f9 /depends/lzma/wrapper/common_internal.h
parentd903b0f0ea4bbeb6a20771575295ea28795dc5d7 (diff)
downloadMultiMC-d267d86f6e24c4f947c30c1a3642d57b82f8addd.tar
MultiMC-d267d86f6e24c4f947c30c1a3642d57b82f8addd.tar.gz
MultiMC-d267d86f6e24c4f947c30c1a3642d57b82f8addd.tar.lz
MultiMC-d267d86f6e24c4f947c30c1a3642d57b82f8addd.tar.xz
MultiMC-d267d86f6e24c4f947c30c1a3642d57b82f8addd.zip
Replace lzma with xz. Tweaks to fix debug builds.
Diffstat (limited to 'depends/lzma/wrapper/common_internal.h')
-rw-r--r--depends/lzma/wrapper/common_internal.h60
1 files changed, 0 insertions, 60 deletions
diff --git a/depends/lzma/wrapper/common_internal.h b/depends/lzma/wrapper/common_internal.h
deleted file mode 100644
index 2c46fadf..00000000
--- a/depends/lzma/wrapper/common_internal.h
+++ /dev/null
@@ -1,60 +0,0 @@
-#ifndef __ELZMA_COMMON_INTERNAL_H__
-#define __ELZMA_COMMON_INTERNAL_H__
-
-#include "common.h"
-
-/** a structure which may be cast and passed into Igor's allocate
- * routines */
-struct elzma_alloc_struct
-{
- void *(*Alloc)(void *p, size_t size);
- void (*Free)(void *p, void *address); /* address can be 0 */
-
- elzma_malloc clientMallocFunc;
- void *clientMallocContext;
-
- elzma_free clientFreeFunc;
- void *clientFreeContext;
-};
-
-/* initialize an allocation structure, may be called safely multiple
- * times */
-void init_alloc_struct(struct elzma_alloc_struct *allocStruct, elzma_malloc clientMallocFunc,
- void *clientMallocContext, elzma_free clientFreeFunc,
- void *clientFreeContext);
-
-/** superset representation of a compressed file header */
-struct elzma_file_header
-{
- unsigned char pb;
- unsigned char lp;
- unsigned char lc;
- unsigned char isStreamed;
- long long unsigned int uncompressedSize;
- unsigned int dictSize;
-};
-
-/** superset representation of a compressed file footer */
-struct elzma_file_footer
-{
- unsigned int crc32;
- long long unsigned int uncompressedSize;
-};
-
-/** a structure which encapsulates information about the particular
- * file header and footer in use (lzip vs lzma vs (eventually) xz.
- * The intention of this structure is to simplify compression and
- * decompression logic by abstracting the file format details a bit. */
-struct elzma_format_handler
-{
- unsigned int header_size;
- void (*init_header)(struct elzma_file_header *hdr);
- int (*parse_header)(const unsigned char *hdrBuf, struct elzma_file_header *hdr);
- int (*serialize_header)(unsigned char *hdrBuf, const struct elzma_file_header *hdr);
-
- unsigned int footer_size;
- int (*serialize_footer)(struct elzma_file_footer *ftr, unsigned char *ftrBuf);
- int (*parse_footer)(const unsigned char *ftrBuf, struct elzma_file_footer *ftr);
-};
-
-#endif