2003-05-09 16:01:21 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
* Copyright (C) 2002 by Linus Nielsen Feltzing
|
|
|
|
*
|
2008-06-28 18:10:04 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2003-05-09 16:01:21 +00:00
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
#ifndef BUFFER_H
|
|
|
|
#define BUFFER_H
|
|
|
|
|
2010-03-03 23:20:32 +00:00
|
|
|
#include "config.h"
|
2003-05-09 16:01:21 +00:00
|
|
|
|
2010-03-03 23:20:32 +00:00
|
|
|
void buffer_init(void) INIT_ATTR;
|
2011-08-14 15:13:00 +00:00
|
|
|
|
|
|
|
void* buffer_get_buffer(size_t *size);
|
|
|
|
void buffer_release_buffer(size_t size);
|
|
|
|
size_t buffer_available(void);
|
|
|
|
|
2003-05-09 16:01:21 +00:00
|
|
|
void *buffer_alloc(size_t size);
|
|
|
|
|
2010-09-26 12:05:42 +00:00
|
|
|
#ifdef BUFFER_ALLOC_DEBUG
|
|
|
|
void buffer_alloc_check(char *name);
|
|
|
|
#endif
|
|
|
|
|
2003-05-09 16:01:21 +00:00
|
|
|
#endif
|