Debian Codegraph @

libbfio/libbfio_file_pool.h

raw symbols SCIP
1 /*
2 * File pool functions
3 *
4 * Copyright (C) 2009-2024, Joachim Metz <[email protected]>
5 *
6 * Refer to AUTHORS for acknowledgements.
7 *
8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU Lesser General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with this program. If not, see <https://www.gnu.org/licenses/>.
20 */
21
22 #if !defined( _LIBBFIO_FILE_POOL_H )
23 #define _LIBBFIO_FILE_POOL_H
24
25 #include <common.h>
26 #include <types.h>
27
28 #include "libbfio_extern.h"
29 #include "libbfio_libcerror.h"
30 #include "libbfio_types.h"
31
32 #if defined( __cplusplus )
33 extern "C" {
34 #endif
35
36 LIBBFIO_EXTERN \
37 int libbfio_file_pool_open(
38 libbfio_pool_t *pool,
39 int entry,
40 const char *name,
41 int access_flags,
42 libcerror_error_t **error );
43
44 #if defined( HAVE_WIDE_CHARACTER_TYPE )
45
46 LIBBFIO_EXTERN \
47 int libbfio_file_pool_open_wide(
48 libbfio_pool_t *pool,
49 int entry,
50 const wchar_t *name,
51 int access_flags,
52 libcerror_error_t **error );
53
54 #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */
55
56 LIBBFIO_EXTERN \
57 int libbfio_file_pool_append_handles_for_names(
58 libbfio_pool_t *pool,
59 char * const names[],
60 int number_of_names,
61 int access_flags,
62 libcerror_error_t **error );
63
64 #if defined( HAVE_WIDE_CHARACTER_TYPE )
65
66 LIBBFIO_EXTERN \
67 int libbfio_file_pool_append_handles_for_names_wide(
68 libbfio_pool_t *pool,
69 wchar_t * const names[],
70 int number_of_names,
71 int access_flags,
72 libcerror_error_t **error );
73
74 #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */
75
76 #if defined( __cplusplus )
77 }
78 #endif
79
80 #endif /* !defined( _LIBBFIO_FILE_POOL_H ) */
81