1e499793eSToomas Soome /* 2e499793eSToomas Soome * LZ4 - Fast LZ compression algorithm 3e499793eSToomas Soome * Header File 4e499793eSToomas Soome * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) 5e499793eSToomas Soome * 6e499793eSToomas Soome * Redistribution and use in source and binary forms, with or without 7e499793eSToomas Soome * modification, are permitted provided that the following conditions are 8e499793eSToomas Soome * met: 9e499793eSToomas Soome * 10e499793eSToomas Soome * * Redistributions of source code must retain the above copyright 11e499793eSToomas Soome * notice, this list of conditions and the following disclaimer. 12e499793eSToomas Soome * * Redistributions in binary form must reproduce the above 13e499793eSToomas Soome * copyright notice, this list of conditions and the following disclaimer 14e499793eSToomas Soome * in the documentation and/or other materials provided with the 15e499793eSToomas Soome * distribution. 16e499793eSToomas Soome * 17e499793eSToomas Soome * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 18e499793eSToomas Soome * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 19e499793eSToomas Soome * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 20e499793eSToomas Soome * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 21e499793eSToomas Soome * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 22e499793eSToomas Soome * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23e499793eSToomas Soome * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24e499793eSToomas Soome * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25e499793eSToomas Soome * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26e499793eSToomas Soome * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27e499793eSToomas Soome * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28e499793eSToomas Soome * 29e499793eSToomas Soome * You can contact the author at : 30e499793eSToomas Soome * - LZ4 homepage : http://fastcompression.blogspot.com/p/lz4.html 31e499793eSToomas Soome * - LZ4 source repository : http://code.google.com/p/lz4/ 32e499793eSToomas Soome */ 33e499793eSToomas Soome 34e499793eSToomas Soome #ifndef _LZ4_H 35e499793eSToomas Soome #define _LZ4_H 36e499793eSToomas Soome 37e499793eSToomas Soome #include <sys/types.h> 38e499793eSToomas Soome 39e499793eSToomas Soome #ifdef __cplusplus 40e499793eSToomas Soome extern "C" { 41e499793eSToomas Soome #endif 42e499793eSToomas Soome 43e499793eSToomas Soome extern size_t lz4_compress(void *, void *, size_t, size_t, int); 44e499793eSToomas Soome extern int lz4_decompress(void *, void *, size_t, size_t, int); 45e499793eSToomas Soome 46*975e1c1cSAdrian Chadd #if defined(_KERNEL) || defined(_FAKE_KERNEL) 47*975e1c1cSAdrian Chadd extern void lz4_init(void); 48*975e1c1cSAdrian Chadd extern void lz4_fini(void); 49*975e1c1cSAdrian Chadd #endif 50*975e1c1cSAdrian Chadd 51e499793eSToomas Soome #ifdef __cplusplus 52e499793eSToomas Soome } 53e499793eSToomas Soome #endif 54e499793eSToomas Soome 55e499793eSToomas Soome #endif /* _LZ4_H */ 56