Debian Codegraph @

vhditools/info_handle.h

raw symbols SCIP
1 /*
2 * Info handle
3 *
4 * Copyright (C) 2012-2025, 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( _INFO_HANDLE_H )
23 #define _INFO_HANDLE_H
24
25 #include <common.h>
26 #include <file_stream.h>
27 #include <types.h>
28
29 #include "vhditools_libcerror.h"
30 #include "vhditools_libcnotify.h"
31 #include "vhditools_libvhdi.h"
32
33 #if defined( __cplusplus )
34 extern "C" {
35 #endif
36
37 typedef struct info_handle info_handle_t;
38
39 struct info_handle
40 {
41 /* The input
42 */
43 libvhdi_file_t *input;
44
45 /* The notification output stream
46 */
47 FILE *notify_stream;
48 };
49
50 int info_handle_initialize(
51 info_handle_t **info_handle,
52 libcerror_error_t **error );
53
54 int info_handle_free(
55 info_handle_t **info_handle,
56 libcerror_error_t **error );
57
58 int info_handle_signal_abort(
59 info_handle_t *info_handle,
60 libcerror_error_t **error );
61
62 int info_handle_open_input(
63 info_handle_t *info_handle,
64 const system_character_t *filename,
65 libcerror_error_t **error );
66
67 int info_handle_close(
68 info_handle_t *info_handle,
69 libcerror_error_t **error );
70
71 int info_handle_input_fprint(
72 info_handle_t *info_handle,
73 libcerror_error_t **error );
74
75 #if defined( __cplusplus )
76 }
77 #endif
78
79 #endif /* !defined( _INFO_HANDLE_H ) */
80