CR2RE Pipeline Reference Manual 1.6.7
hdrl_buffer.h
1/* $Id: hdrl_buffer.h,v 1.2 2013-10-23 09:42:14 jtaylor Exp $
2 *
3 * This file is part of the HDRL
4 * Copyright (C) 2013 European Southern Observatory
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
21/*
22 * $Author: jtaylor $
23 * $Date: 2013-10-23 09:42:14 $
24 * $Revision: 1.2 $
25 * $Name: not supported by cvs2svn $
26 */
27
28#ifndef HDRL_BUFFER_H
29#define HDRL_BUFFER_H
30
31#include <cpl.h>
32#include <stddef.h>
33
34CPL_BEGIN_DECLS
35
36/*-----------------------------------------------------------------------------
37 Experimental declarations - can be used, but no guarantees on api stability
38 -----------------------------------------------------------------------------*/
39#if defined HDRL_USE_EXPERIMENTAL || defined HDRL_USE_PRIVATE
40typedef struct _hdrl_buffer_ hdrl_buffer;
41
42hdrl_buffer * hdrl_buffer_new(void);
43void hdrl_buffer_readonly(hdrl_buffer * buf, cpl_boolean ro);
44size_t hdrl_buffer_set_malloc_threshold(hdrl_buffer * buf, size_t t);
45char * hdrl_buffer_allocate(hdrl_buffer *, size_t);
46void hdrl_buffer_free(hdrl_buffer *, char *);
47void hdrl_buffer_delete(hdrl_buffer *);
48#endif
49
50CPL_END_DECLS
51
52#endif