diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2008-09-06 15:14:30 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2008-09-06 15:14:30 +0300 |
commit | 0a31ed9d5e3cde4feb094b66f3a8b2c074605d84 (patch) | |
tree | 571b741cc155767f3c5e0ee0a0a686995568b16a /src/liblzma/api/lzma/check.h | |
parent | Added support for raw encoding and decoding to the command (diff) | |
download | xz-0a31ed9d5e3cde4feb094b66f3a8b2c074605d84.tar.xz |
Some API cleanups
Diffstat (limited to '')
-rw-r--r-- | src/liblzma/api/lzma/check.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/liblzma/api/lzma/check.h b/src/liblzma/api/lzma/check.h index 18394a86..5cba362e 100644 --- a/src/liblzma/api/lzma/check.h +++ b/src/liblzma/api/lzma/check.h @@ -137,3 +137,13 @@ extern uint64_t lzma_crc64(const uint8_t *buf, size_t size, uint64_t crc) * SHA256 functions are currently not exported to public API. * Contact the author if you think it should be. */ + + +/** + * \brief Get the type of the integrity check + * + * This function can be called only immediatelly after lzma_code() has + * returned LZMA_NO_CHECK, LZMA_UNSUPPORTED_CHECK, or LZMA_GET_CHECK. + * Calling this function in any other situation has undefined behavior. + */ +extern lzma_check lzma_get_check(const lzma_stream *strm); |