]> icculus.org git repositories - icculus/xz.git/commit
Add lzma_physmem().
authorLasse Collin <lasse.collin@tukaani.org>
Sun, 15 Nov 2009 10:40:17 +0000 (12:40 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Sun, 15 Nov 2009 10:40:17 +0000 (12:40 +0200)
commit93e418562cf127a9171e87bcd4e9af8e1bfcdae4
treeed57e18edfa1758f3763d7b85c370a8926861ccb
parentcf39faca59083d38422058c6c97aa757ea7797d0
Add lzma_physmem().

I had hoped to keep liblzma as purely a compression
library as possible (e.g. file I/O will go into
a different library), but it seems that applications
linking agaisnt liblzma need some way to determine
the memory usage limit, and knowing the amount of RAM
is one reasonable way to help making such decisions.

Thanks to Jonathan Nieder for the original patch.
src/liblzma/Makefile.am
src/liblzma/api/Makefile.am
src/liblzma/api/lzma.h
src/liblzma/api/lzma/hardware.h [new file with mode: 0644]
src/liblzma/common/Makefile.inc
src/liblzma/common/hardware_physmem.c [new file with mode: 0644]
src/xz/Makefile.am
src/xz/hardware.c
src/xzdec/Makefile.am
src/xzdec/xzdec.c