functions are used to get the values of the flags for read and/or write.
.Pp
The
.Fn libewf_check_file_signature
and
.Fn libewf_check_file_signature_wide
functions are used to test if the EWF file signature is present within a certain
.Ar filename.
.Pp
The
.Fn libewf_glob
and
.Fn libewf_glob_wide
functions glob
.Ar filenames
using the
.Ar filename
and the
.Ar format
according to the EWF segment file naming schema.
If the
.Ar format
is known the filename should contain the base of the filename otherwise the function will try to determine the format based on the extension.
.Pp
The
.Fn libewf_handle_signal_abort
function signals the handle to aborts it current activity.
.Pp
The
.Fn libewf_handle_open ,
.Fn libewf_handle_open_wide ,
.Fn libewf_handle_close ,
.Fn libewf_handle_read_buffer ,
.Fn libewf_handle_read_random ,
.Fn libewf_handle_write_buffer ,
.Fn libewf_handle_write_random ,
.Fn libewf_handle_seek_offset
functions can be used to open, seek in, read from, write to and close a set of EWF files.
.Pp
The
.Fn libewf_handle_write_finalize
function needs to be called after writing a set of EWF files without knowing the input size upfront, e.g. reading from a pipe.
.Fn libewf_handle_write_finalize
will the necessary correction to the set of EWF files.
.Pp
The
.Fn libewf_handle_prepare_read_chunk ,
.Fn libewf_handle_read_chunk
functions can be used to read chunks to a set of EWF files.
.Pp
The
.Fn libewf_handle_prepare_write_chunk ,
.Fn libewf_handle_write_chunk
functions can be used to write chunks to a set of EWF files.
.Pp
The
.Fn libewf_handle_get_*
functions can be used to retrieve information from the
.Ar handle.
This information is read from a set of EWF files when
.Fn libewf_handle_open
or
.Fn libewf_handle_open_wide
is used.
.Pp
The
.Fn libewf_handle_set_*
functions can be used to set information in the
.Ar handle.
This information is written to a set of EWF files when
.Fn libewf_handle_write_buffer
is used.
.Pp
The
.Fn libewf_handle_append_acquiry_error
function can be used to append an acquiry error (a read error during acquiry) to be written into a set of EWF files.
.Pp
The
.Fn libewf_handle_append_checksum_error
function can be used to append an Adler-32 checksum error (a validation error in a chunk in a set of EWF files) to be set in the handle.
.Pp
The
.Fn libewf_handle_append_session
function can be used to append a sesssion to be written into a set of EWF files. Note that the only the start offset is stored in a set of EWF files. Libewf ignores the number of sectors on write and determines the session sizes using the available session and media information on read.
.Pp
The
.Fn libewf_handle_copy_*
functions copy information from the
.Ar source_handle
to the
.Ar destination_handle.
.Pp
The
.Fn libewf_notify_set_verbose ,
.Fn libewf_notify_set_stream
functions can be used to direct the warning, verbose and debug output from the library.
.Sh RETURN VALUES
.Pp
Most of the functions return NULL or \-1 on error, dependent on the return type. For the actual return values refer to libewf.h
.Pp
To determine the cause of an error pass a reference to libewf_error_t *error = NULL. libewf will create an error object that must be freed with the libewf_error_free function. If the error reference is NULL libewf will not create an error object.
.Sh ENVIRONMENT
None
.Sh FILES
None
.Sh NOTES
libewf supports both UTF-8 and UTF-16 encoded strings except for filenames.
Some platforms like WINAPI require wide character support for Unicode filenames.
To compile libewf with wide character support use
.Ar ./configure --enable-wide-character-type=yes
or pass the definition
.Ar _UNICODE
or
.Ar UNICODE
to the compiler (i.e. in case of Microsoft Visual Studio (MSVS) C++).
To have other code to determine if libewf was compiled with wide character support it defines
.Ar LIBEWF_HAVE_WIDE_CHARACTER_TYPE
in libewf/features.h.
The header in a set of EWF files contains an extended ASCII string using the codepage of the system it was created on. The function
.Ar libewf_handle_set_header_codepage
allows to set the required codepage for reading and writing. The default codepage is ASCII and replaces all extended characters to the Unicode replacement character (U+fffd) when reading and the ASCII substitude character (0x1a) when writing.
The header2 contains UTF-16 little endian stream and the xheader and xhash contain a UTF-8 stream without or with byte order mark (as of version 20080903).
libewf allows to be compiled with chained IO support using libbfio.
libewf will automatically detect if a compatible version of libbfio is available.
To have other code to determine if libewf was compiled with libbfio support it defines
.Ar LIBEWF_HAVE_BFIO
in libewf/features.h.
.Sh BUGS
Please report bugs of any kind to <jbmetz@users.sourceforge.net> or on the project website:
http://libewf.sourceforge.net/
.Sh AUTHOR
These man pages were written by Joachim Metz.
.Sh COPYRIGHT
Copyright 2006-2012 Joachim Metz <jbmetz@users.sourceforge.net>.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.