table of contents
- Tumbleweed 20240505-1.3
- Leap-16.0
- Leap-15.6
| libodraw(3) | Library Functions Manual | libodraw(3) |
NAME¶
libodraw.h —
Library to access optical disc (split) RAW
formats
SYNOPSIS¶
#include
<libodraw.h>
Support functions
const char *
libodraw_get_version(void);
int
libodraw_get_access_flags_read(void);
int
libodraw_get_access_flags_read_write(void);
int
libodraw_get_access_flags_write(void);
int
libodraw_get_codepage(int
*codepage,
libodraw_error_t
**error);
int
libodraw_set_codepage(int
codepage,
libodraw_error_t
**error);
Notify functions
void
libodraw_notify_set_verbose(int
verbose);
int
libodraw_notify_set_stream(FILE
*stream, libodraw_error_t
**error);
int
libodraw_notify_stream_open(const
char *filename,
libodraw_error_t
**error);
int
libodraw_notify_stream_close(libodraw_error_t
**error);
Error functions
void
libodraw_error_free(libodraw_error_t
**error);
int
libodraw_error_fprint(libodraw_error_t
*error, FILE
*stream);
int
libodraw_error_sprint(libodraw_error_t
*error, char
*string, size_t
size);
int
libodraw_error_backtrace_fprint(libodraw_error_t
*error, FILE
*stream);
int
libodraw_error_backtrace_sprint(libodraw_error_t
*error, char
*string, size_t
size);
Handle functions
int
libodraw_handle_initialize(libodraw_handle_t
**handle,
libodraw_error_t
**error);
int
libodraw_handle_free(libodraw_handle_t
**handle,
libodraw_error_t
**error);
int
libodraw_handle_signal_abort(libodraw_handle_t
*handle, libodraw_error_t
**error);
int
libodraw_handle_open(libodraw_handle_t
*handle, const char
*filename, int
access_flags,
libodraw_error_t
**error);
int
libodraw_handle_open_data_files(libodraw_handle_t
*handle, libodraw_error_t
**error);
int
libodraw_handle_close(libodraw_handle_t
*handle, libodraw_error_t
**error);
ssize_t
libodraw_handle_read_buffer(libodraw_handle_t
*handle, void
*buffer, size_t
buffer_size,
libodraw_error_t
**error);
ssize_t
libodraw_handle_read_buffer_at_offset(libodraw_handle_t
*handle, void
*buffer, size_t
buffer_size, off64_t
offset, libodraw_error_t
**error);
off64_t
libodraw_handle_seek_offset(libodraw_handle_t
*handle, off64_t
offset, int whence,
libodraw_error_t
**error);
int
libodraw_handle_get_offset(libodraw_handle_t
*handle, off64_t
*offset, libodraw_error_t
**error);
int
libodraw_handle_set_maximum_number_of_open_handles(libodraw_handle_t
*handle, int
maximum_number_of_open_handles,
libodraw_error_t
**error);
int
libodraw_handle_get_ascii_codepage(libodraw_handle_t
*handle, int
*ascii_codepage,
libodraw_error_t
**error);
int
libodraw_handle_set_ascii_codepage(libodraw_handle_t
*handle, int
ascii_codepage,
libodraw_error_t
**error);
int
libodraw_handle_get_number_of_data_files(libodraw_handle_t
*handle, int
*number_of_data_files,
libodraw_error_t
**error);
int
libodraw_handle_get_data_file(libodraw_handle_t
*handle, int index,
libodraw_data_file_t
**data_file,
libodraw_error_t
**error);
int
libodraw_handle_append_data_file(libodraw_handle_t
*handle, const char
*name, size_t
name_length, uint8_t
type, libodraw_error_t
**error);
Available when compiled with wide character string support:
int
libodraw_handle_open_wide(libodraw_handle_t
*handle, const wchar_t
*filename, int
access_flags,
libodraw_error_t
**error);
int
libodraw_handle_append_data_file_wide(libodraw_handle_t
*handle, const wchar_t
*name, size_t
name_length, uint8_t
type, libodraw_error_t
**error);
Available when compiled with libbfio support:
int
libodraw_handle_open_handle_io_handle(libodraw_handle_t
*handle, libbfio_handle_t
*file_io_handle, int
access_flags,
libodraw_error_t
**error);
int
libodraw_handle_open_data_files_file_io_pool(libodraw_handle_t
*handle, libbfio_pool_t
*file_io_pool,
libodraw_error_t
**error);
Meta data functions
int
libodraw_handle_get_media_size(libodraw_handle_t
*handle, size64_t
*media_size,
libodraw_error_t
**error);
int
libodraw_handle_get_bytes_per_sector(libodraw_handle_t
*handle, uint32_t
*bytes_per_sector,
libodraw_error_t
**error);
int
libodraw_handle_set_bytes_per_sector(libodraw_handle_t
*handle, uint32_t
bytes_per_sector,
libodraw_error_t
**error);
int
libodraw_handle_get_number_of_sectors(libodraw_handle_t
*handle, uint64_t
*number_of_sectors,
libodraw_error_t
**error);
int
libodraw_handle_get_number_of_sessions(libodraw_handle_t
*handle, int
*number_of_sessions,
libodraw_error_t
**error);
int
libodraw_handle_get_session(libodraw_handle_t
*handle, int index,
uint64_t *start_sector,
uint64_t
*number_of_sectors,
libodraw_error_t
**error);
int
libodraw_handle_append_session(libodraw_handle_t
*handle, uint64_t
first_sector, uint64_t
number_of_sectors,
libodraw_error_t
**error);
int
libodraw_handle_get_number_of_lead_outs(libodraw_handle_t
*handle, int
*number_of_lead_outs,
libodraw_error_t
**error);
int
libodraw_handle_get_lead_out(libodraw_handle_t
*handle, int index,
uint64_t *start_sector,
uint64_t
*number_of_sectors,
libodraw_error_t
**error);
int
libodraw_handle_append_lead_out(libodraw_handle_t
*handle, uint64_t
first_sector, uint64_t
number_of_sectors,
libodraw_error_t
**error);
int
libodraw_handle_get_number_of_tracks(libodraw_handle_t
*handle, int
*number_of_tracks,
libodraw_error_t
**error);
int
libodraw_handle_get_track(libodraw_handle_t
*handle, int index,
uint64_t *start_sector,
uint64_t
*number_of_sectors,
uint8_t *type,
int *data_file_index,
uint64_t
*data_file_start_sector,
libodraw_error_t
**error);
int
libodraw_handle_append_track(libodraw_handle_t
*handle, uint64_t
start_sector, uint64_t
number_of_sectors,
uint8_t type,
int data_file_index,
uint64_t
data_file_start_sector,
libodraw_error_t
**error);
Data file functions
int
libodraw_data_file_free(libodraw_data_file_t
**data_file,
libodraw_error_t
**error);
int
libodraw_data_file_get_filename_size(libodraw_data_file_t
*data_file, size_t
*filename_size,
libodraw_error_t
**error);
int
libodraw_data_file_get_filename(libodraw_data_file_t
*data_file, char
*filename, size_t
filename_size,
libodraw_error_t
**error);
int
libodraw_data_file_set_filename(libodraw_data_file_t
*data_file, const char
*filename, size_t
filename_length,
libodraw_error_t
**error);
int
libodraw_data_file_get_type(libodraw_data_file_t
*data_file, uint8_t
*type, libodraw_error_t
**error);
Available when compiled with wide character string support:
int
libodraw_data_file_get_filename_size_wide(libodraw_data_file_t
*data_file, size_t
*filename_size,
libodraw_error_t
**error);
int
libodraw_data_file_get_filename_wide(libodraw_data_file_t
*data_file, wchar_t
*filename, size_t
filename_size,
libodraw_error_t
**error);
int
libodraw_data_file_set_filename_wide(libodraw_data_file_t
*data_file, const wchar_t
*filename, size_t
filename_length,
libodraw_error_t
**error);
DESCRIPTION¶
The
libodraw_get_version()
function is used to retrieve the library version.
RETURN VALUES¶
Most of the functions return NULL or -1 on error, dependent on the return type. For the actual return values see "libodraw.h".
ENVIRONMENT¶
None
FILES¶
None
NOTES¶
libodraw can be compiled with wide character support (wchar_t).
To compile libodraw with wide character support use:
./configure --enable-wide-character-type=yes
or define: _UNICODE
or UNICODE
during compilation.
LIBODRAW_WIDE_CHARACTER_TYPE
in libodraw/features.h can be used to determine if libodraw was compiled with
wide character support.
BUGS¶
Please report bugs of any kind on the project issue tracker: https://github.com/libyal/libodraw/issues
AUTHOR¶
These man pages are generated from "libodraw.h".
COPYRIGHT¶
Copyright (C) 2010-2024, Joachim Metz <joachim.metz@gmail.com>.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
SEE ALSO¶
the libodraw.h include file
| October 3, 2019 | libodraw |