blob: df72c84590222d2252f70e7679f316657d69a541 [file] [log] [blame]
Miroslav Zagorac70230c62020-12-09 16:54:31 +01001/***
2 * Copyright 2020 HAProxy Technologies
3 *
4 * This file is part of the HAProxy OpenTracing filter.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (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 Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 */
20#ifndef _OPENTRACING_POOL_H_
21#define _OPENTRACING_POOL_H_
22
23void *flt_ot_pool_alloc(struct pool_head *pool, size_t size, bool flag_clear, char **err);
24void *flt_ot_pool_strndup(struct pool_head *pool, const char *s, size_t size, char **err);
25void flt_ot_pool_free(struct pool_head *pool, void **ptr);
26
27struct buffer *flt_ot_trash_alloc(bool flag_clear, char **err);
28void flt_ot_trash_free(struct buffer **ptr);
29
30#endif /* _OPENTRACING_POOL_H_ */
31
32/*
33 * Local variables:
34 * c-indent-level: 8
35 * c-basic-offset: 8
36 * End:
37 *
38 * vi: noexpandtab shiftwidth=8 tabstop=8
39 */