1 /*
2  * The libbfio header wrapper
3  *
4  * Copyright (C) 2020-2021, Joachim Metz <joachim.metz@gmail.com>
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( _FSXFS_TEST_LIBBFIO_H )
23 #define _FSXFS_TEST_LIBBFIO_H
24 
25 #include <common.h>
26 
27 /* Define HAVE_LOCAL_LIBBFIO for local use of libbfio
28  */
29 #if defined( HAVE_LOCAL_LIBBFIO )
30 
31 #include <libbfio_definitions.h>
32 #include <libbfio_file.h>
33 #include <libbfio_file_pool.h>
34 #include <libbfio_file_range.h>
35 #include <libbfio_handle.h>
36 #include <libbfio_memory_range.h>
37 #include <libbfio_pool.h>
38 #include <libbfio_types.h>
39 
40 #else
41 
42 /* If libtool DLL support is enabled set LIBBFIO_DLL_IMPORT
43  * before including libbfio.h
44  */
45 #if defined( _WIN32 ) && defined( DLL_IMPORT )
46 #define LIBBFIO_DLL_IMPORT
47 #endif
48 
49 #include <libbfio.h>
50 
51 #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( LIBBFIO_HAVE_MULTI_THREAD_SUPPORT )
52 #error Multi-threading support requires libbfio with multi-threading support
53 #endif
54 
55 #endif /* defined( HAVE_LOCAL_LIBBFIO ) */
56 
57 #endif /* !defined( _FSXFS_TEST_LIBBFIO_H ) */
58 
59