xref: /freebsd-src/sys/contrib/xz-embedded/freebsd/xz_malloc.h (revision 38f1b189cd839bd8aa122ae06cc084810ca1e395)
1*e11f2b82SAleksandr Rybalko /*-
2*e11f2b82SAleksandr Rybalko  * Copyright (c) 2010-2012 Aleksandr Rybalko
3*e11f2b82SAleksandr Rybalko  * All rights reserved.
4*e11f2b82SAleksandr Rybalko  *
5*e11f2b82SAleksandr Rybalko  * Redistribution and use in source and binary forms, with or without
6*e11f2b82SAleksandr Rybalko  * modification, are permitted provided that the following conditions
7*e11f2b82SAleksandr Rybalko  * are met:
8*e11f2b82SAleksandr Rybalko  * 1. Redistributions of source code must retain the above copyright
9*e11f2b82SAleksandr Rybalko  *    notice, this list of conditions and the following disclaimer.
10*e11f2b82SAleksandr Rybalko  * 2. Redistributions in binary form must reproduce the above copyright
11*e11f2b82SAleksandr Rybalko  *    notice, this list of conditions and the following disclaimer in the
12*e11f2b82SAleksandr Rybalko  *    documentation and/or other materials provided with the distribution.
13*e11f2b82SAleksandr Rybalko  *
14*e11f2b82SAleksandr Rybalko  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15*e11f2b82SAleksandr Rybalko  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16*e11f2b82SAleksandr Rybalko  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17*e11f2b82SAleksandr Rybalko  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18*e11f2b82SAleksandr Rybalko  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19*e11f2b82SAleksandr Rybalko  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20*e11f2b82SAleksandr Rybalko  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21*e11f2b82SAleksandr Rybalko  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22*e11f2b82SAleksandr Rybalko  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23*e11f2b82SAleksandr Rybalko  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24*e11f2b82SAleksandr Rybalko  * SUCH DAMAGE.
25*e11f2b82SAleksandr Rybalko  */
26*e11f2b82SAleksandr Rybalko 
27*e11f2b82SAleksandr Rybalko #ifndef __XZ_MALLOC_H__
28*e11f2b82SAleksandr Rybalko #define __XZ_MALLOC_H__
29*e11f2b82SAleksandr Rybalko 
30*e11f2b82SAleksandr Rybalko extern void *xz_malloc(unsigned long size);
31*e11f2b82SAleksandr Rybalko extern void xz_free(void *addr);
32*e11f2b82SAleksandr Rybalko 
33*e11f2b82SAleksandr Rybalko #endif /* __XZ_MALLOC_H__ */
34*e11f2b82SAleksandr Rybalko 
35