File: libvshadow.3

package info (click to toggle)
libvshadow 20240504-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 11,904 kB
  • sloc: ansic: 168,675; sh: 6,302; makefile: 1,148; python: 742; cpp: 88; sed: 16
file content (161 lines) | stat: -rw-r--r-- 7,230 bytes parent folder | download
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
.Dd March  5, 2019
.Dt libvshadow 3
.Os libvshadow
.Sh NAME
.Nm libvshadow.h
.Nd Library to access the Windows NT Volume Shadow Snapshot (VSS) format
.Sh SYNOPSIS
.In libvshadow.h
.Pp
Support functions
.Ft const char *
.Fn libvshadow_get_version "void"
.Ft int
.Fn libvshadow_get_access_flags_read "void"
.Ft int
.Fn libvshadow_get_codepage "int *codepage" "libvshadow_error_t **error"
.Ft int
.Fn libvshadow_set_codepage "int codepage" "libvshadow_error_t **error"
.Ft int
.Fn libvshadow_check_volume_signature "const char *filename" "libvshadow_error_t **error"
.Pp
Available when compiled with wide character string support:
.Ft int
.Fn libvshadow_check_volume_signature_wide "const wchar_t *filename" "libvshadow_error_t **error"
.Pp
Available when compiled with libbfio support:
.Ft int
.Fn libvshadow_check_volume_signature_file_io_handle "libbfio_handle_t *file_io_handle" "libvshadow_error_t **error"
.Pp
Notify functions
.Ft void
.Fn libvshadow_notify_set_verbose "int verbose"
.Ft int
.Fn libvshadow_notify_set_stream "FILE *stream" "libvshadow_error_t **error"
.Ft int
.Fn libvshadow_notify_stream_open "const char *filename" "libvshadow_error_t **error"
.Ft int
.Fn libvshadow_notify_stream_close "libvshadow_error_t **error"
.Pp
Error functions
.Ft void
.Fn libvshadow_error_free "libvshadow_error_t **error"
.Ft int
.Fn libvshadow_error_fprint "libvshadow_error_t *error" "FILE *stream"
.Ft int
.Fn libvshadow_error_sprint "libvshadow_error_t *error" "char *string" "size_t size"
.Ft int
.Fn libvshadow_error_backtrace_fprint "libvshadow_error_t *error" "FILE *stream"
.Ft int
.Fn libvshadow_error_backtrace_sprint "libvshadow_error_t *error" "char *string" "size_t size"
.Pp
Volume functions
.Ft int
.Fn libvshadow_volume_initialize "libvshadow_volume_t **volume" "libvshadow_error_t **error"
.Ft int
.Fn libvshadow_volume_free "libvshadow_volume_t **volume" "libvshadow_error_t **error"
.Ft int
.Fn libvshadow_volume_signal_abort "libvshadow_volume_t *volume" "libvshadow_error_t **error"
.Ft int
.Fn libvshadow_volume_open "libvshadow_volume_t *volume" "const char *filename" "int access_flags" "libvshadow_error_t **error"
.Ft int
.Fn libvshadow_volume_close "libvshadow_volume_t *volume" "libvshadow_error_t **error"
.Ft int
.Fn libvshadow_volume_get_size "libvshadow_volume_t *volume" "size64_t *size" "libvshadow_error_t **error"
.Ft int
.Fn libvshadow_volume_get_number_of_stores "libvshadow_volume_t *volume" "int *number_of_stores" "libvshadow_error_t **error"
.Ft int
.Fn libvshadow_volume_get_store "libvshadow_volume_t *volume" "int store_index" "libvshadow_store_t **store" "libvshadow_error_t **error"
.Ft int
.Fn libvshadow_volume_get_store_identifier "libvshadow_volume_t *volume" "int store_index" "uint8_t *guid" "size_t size" "libvshadow_error_t **error"
.Pp
Available when compiled with wide character string support:
.Ft int
.Fn libvshadow_volume_open_wide "libvshadow_volume_t *volume" "const wchar_t *filename" "int access_flags" "libvshadow_error_t **error"
.Pp
Available when compiled with libbfio support:
.Ft int
.Fn libvshadow_volume_open_file_io_handle "libvshadow_volume_t *volume" "libbfio_handle_t *file_io_handle" "int access_flags" "libvshadow_error_t **error"
.Pp
Store functions
.Ft int
.Fn libvshadow_store_free "libvshadow_store_t **store" "libvshadow_error_t **error"
.Ft int
.Fn libvshadow_store_has_in_volume_data "libvshadow_store_t *store" "libvshadow_error_t **error"
.Ft ssize_t
.Fn libvshadow_store_read_buffer "libvshadow_store_t *store" "void *buffer" "size_t buffer_size" "libvshadow_error_t **error"
.Ft ssize_t
.Fn libvshadow_store_read_buffer_at_offset "libvshadow_store_t *store" "void *buffer" "size_t buffer_size" "off64_t offset" "libvshadow_error_t **error"
.Ft off64_t
.Fn libvshadow_store_seek_offset "libvshadow_store_t *store" "off64_t offset" "int whence" "libvshadow_error_t **error"
.Ft int
.Fn libvshadow_store_get_offset "libvshadow_store_t *store" "off64_t *offset" "libvshadow_error_t **error"
.Ft int
.Fn libvshadow_store_get_size "libvshadow_store_t *store" "size64_t *size" "libvshadow_error_t **error"
.Ft int
.Fn libvshadow_store_get_volume_size "libvshadow_store_t *store" "size64_t *volume_size" "libvshadow_error_t **error"
.Ft int
.Fn libvshadow_store_get_identifier "libvshadow_store_t *store" "uint8_t *guid" "size_t size" "libvshadow_error_t **error"
.Ft int
.Fn libvshadow_store_get_creation_time "libvshadow_store_t *store" "uint64_t *filetime" "libvshadow_error_t **error"
.Ft int
.Fn libvshadow_store_get_copy_identifier "libvshadow_store_t *store" "uint8_t *guid" "size_t size" "libvshadow_error_t **error"
.Ft int
.Fn libvshadow_store_get_copy_set_identifier "libvshadow_store_t *store" "uint8_t *guid" "size_t size" "libvshadow_error_t **error"
.Ft int
.Fn libvshadow_store_get_attribute_flags "libvshadow_store_t *store" "uint32_t *attribute_flags" "libvshadow_error_t **error"
.Ft int
.Fn libvshadow_store_get_number_of_blocks "libvshadow_store_t *store" "int *number_of_blocks" "libvshadow_error_t **error"
.Ft int
.Fn libvshadow_store_get_block_by_index "libvshadow_store_t *store" "int block_index" "libvshadow_block_t **block" "libvshadow_error_t **error"
.Pp
Available when compiled with libbfio support:
.Ft ssize_t
.Fn libvshadow_store_read_buffer_from_file_io_handle "libvshadow_store_t *store" "libbfio_handle_t *file_io_handle" "void *buffer" "size_t buffer_size" "libvshadow_error_t **error"
.Pp
Block functions
.Ft int
.Fn libvshadow_block_free "libvshadow_block_t **block" "libvshadow_error_t **error"
.Ft int
.Fn libvshadow_block_get_original_offset "libvshadow_block_t *block" "off64_t *original_offset" "libvshadow_error_t **error"
.Ft int
.Fn libvshadow_block_get_relative_offset "libvshadow_block_t *block" "off64_t *relative_offset" "libvshadow_error_t **error"
.Ft int
.Fn libvshadow_block_get_offset "libvshadow_block_t *block" "off64_t *offset" "libvshadow_error_t **error"
.Ft int
.Fn libvshadow_block_get_values "libvshadow_block_t *block" "off64_t *original_offset" "off64_t *relative_offset" "off64_t *offset" "uint32_t *flags" "uint32_t *bitmap" "libvshadow_error_t **error"
.Sh DESCRIPTION
The
.Fn libvshadow_get_version
function is used to retrieve the library version.
.Sh RETURN VALUES
Most of the functions return NULL or \-1 on error, dependent on the return type.
For the actual return values see "libvshadow.h".
.Sh ENVIRONMENT
None
.Sh FILES
None
.Sh NOTES
libvshadow can be compiled with wide character support (wchar_t).
.sp
To compile libvshadow with wide character support use:
.Ar ./configure --enable-wide-character-type=yes
 or define:
.Ar _UNICODE
 or
.Ar UNICODE
 during compilation.
.sp
.Ar LIBVSHADOW_WIDE_CHARACTER_TYPE
 in libvshadow/features.h can be used to determine if libvshadow was compiled with wide character support.
.Sh BUGS
Please report bugs of any kind on the project issue tracker: https://github.com/libyal/libvshadow/issues
.Sh AUTHOR
These man pages are generated from "libvshadow.h".
.Sh COPYRIGHT
Copyright (C) 2011-2024, Joachim Metz <joachim.metz@gmail.com>.
.sp
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
.Sh SEE ALSO
the libvshadow.h include file