-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathlibewf_read_io_handle.h
executable file
·82 lines (68 loc) · 2.25 KB
/
libewf_read_io_handle.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/*
* Low level reading functions
*
* Copyright (c) 2006-2013, Joachim Metz <[email protected]>
*
* Refer to AUTHORS for acknowledgements.
*
* This software is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this software. If not, see <http://www.gnu.org/licenses/>.
*/
#if !defined( _LIBEWF_READ_IO_HANDLE_H )
#define _LIBEWF_READ_IO_HANDLE_H
#include <common.h>
#include <types.h>
#include "libewf_chunk_data.h"
#include "libewf_libbfio.h"
#include "libewf_libcdata.h"
#include "libewf_libcerror.h"
#include "libewf_libfcache.h"
#include "libewf_libmfdata.h"
#include "libewf_media_values.h"
#if defined( __cplusplus )
extern "C" {
#endif
typedef struct libewf_read_io_handle libewf_read_io_handle_t;
struct libewf_read_io_handle
{
/* The sectors with checksum errors
*/
libcdata_range_list_t *checksum_errors;
/* A value to indicate if the chunk data should be zeroed on error
*/
uint8_t zero_on_error;
};
int libewf_read_io_handle_initialize(
libewf_read_io_handle_t **read_io_handle,
libcerror_error_t **error );
int libewf_read_io_handle_free(
libewf_read_io_handle_t **read_io_handle,
libcerror_error_t **error );
int libewf_read_io_handle_clone(
libewf_read_io_handle_t **destination_read_io_handle,
libewf_read_io_handle_t *source_read_io_handle,
libcerror_error_t **error );
int libewf_read_io_handle_read_chunk_data(
libewf_read_io_handle_t *read_io_handle,
libbfio_pool_t *file_io_pool,
libewf_media_values_t *media_values,
libmfdata_list_t *chunk_table_list,
libfcache_cache_t *chunk_table_cache,
int chunk_index,
off64_t chunk_offset,
libewf_chunk_data_t **chunk_data,
libcerror_error_t **error );
#if defined( __cplusplus )
}
#endif
#endif