1 /*
2  * Memory range functions
3  *
4  * Copyright (C) 2009-2020, 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( _LIBBFIO_MEMORY_RANGE_H )
23 #define _LIBBFIO_MEMORY_RANGE_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_memory_range_initialize(
38      libbfio_handle_t **handle,
39      libcerror_error_t **error );
40 
41 LIBBFIO_EXTERN \
42 int libbfio_memory_range_get(
43      libbfio_handle_t *handle,
44      uint8_t **range_start,
45      size_t *range_size,
46      libcerror_error_t **error );
47 
48 LIBBFIO_EXTERN \
49 int libbfio_memory_range_set(
50      libbfio_handle_t *handle,
51      uint8_t *range_start,
52      size_t range_size,
53      libcerror_error_t **error );
54 
55 #if defined( __cplusplus )
56 }
57 #endif
58 
59 #endif /* !defined( _LIBBFIO_MEMORY_RANGE_H ) */
60 
61