Provided by: libvhdi-dev_20160108-1_amd64 bug

NAME

       libvhdi.h — Library to access the Virtual Hard Disk (VHD) image format

LIBRARY

       library “libvhdi”

SYNOPSIS

       #include <libvhdi.h>

       Support functions

       const char *
       libvhdi_get_version(void);

       int
       libvhdi_get_access_flags_read(void);

       int
       libvhdi_get_access_flags_read_write(void);

       int
       libvhdi_get_access_flags_write(void);

       int
       libvhdi_get_codepage(int *codepage, libvhdi_error_t **error);

       int
       libvhdi_set_codepage(int codepage, libvhdi_error_t **error);

       int
       libvhdi_check_file_signature(const char *filename, libvhdi_error_t **error);

       Available when compiled with wide character string support:

       int
       libvhdi_check_file_signature_wide(const wchar_t *filename, libvhdi_error_t **error);

       Available when compiled with libbfio support:

       int
       libvhdi_check_file_signature_file_io_handle(libbfio_handle_t *file_io_handle, libvhdi_error_t **error);

       Notify functions

       void
       libvhdi_notify_set_verbose(int verbose);

       int
       libvhdi_notify_set_stream(FILE *stream, libvhdi_error_t **error);

       int
       libvhdi_notify_stream_open(const char *filename, libvhdi_error_t **error);

       int
       libvhdi_notify_stream_close(libvhdi_error_t **error);

       Error functions

       void
       libvhdi_error_free(libvhdi_error_t **error);

       int
       libvhdi_error_fprint(libvhdi_error_t *error, FILE *stream);

       int
       libvhdi_error_sprint(libvhdi_error_t *error, char *string, size_t size);

       int
       libvhdi_error_backtrace_fprint(libvhdi_error_t *error, FILE *stream);

       int
       libvhdi_error_backtrace_sprint(libvhdi_error_t *error, char *string, size_t size);

       File functions

       int
       libvhdi_file_initialize(libvhdi_file_t **file, libvhdi_error_t **error);

       int
       libvhdi_file_free(libvhdi_file_t **file, libvhdi_error_t **error);

       int
       libvhdi_file_signal_abort(libvhdi_file_t *file, libvhdi_error_t **error);

       int
       libvhdi_file_open(libvhdi_file_t *file, const char *filename, int access_flags, libvhdi_error_t **error);

       int
       libvhdi_file_close(libvhdi_file_t *file, libvhdi_error_t **error);

       ssize_t
       libvhdi_file_read_buffer(libvhdi_file_t*file, void *buffer, size_t buffer_size, libvhdi_error_t **error);

       ssize_t
       libvhdi_file_read_buffer_at_offset(libvhdi_file_tfilev,oi*dbuffers,ize_tuffer_sizeo,ff64_tffsetl,ibvhdi_error_t*error);

       ssize_t
       libvhdi_file_write_buffer(libvhdi_file_t*file,constvoid*buffer,size_tbuffer_size,libvhdi_error_t**error);

       ssize_t
       libvhdi_file_write_buffer_add_offset(libvhdi_file_tfilec,onsvtoi*dbuffers,izeb_tffer_sizoef,f64o_tfselti,bvhdi_error*_terror);

       off64_t
       libvhdi_file_seek_offset(libvhdi_file_t *file, off64_t offset, int whence, libvhdi_error_t **error);

       int
       libvhdi_file_get_offset(libvhdi_file_t *file, off64_t *offset, libvhdi_error_t **error);

       Available when compiled with wide character string support:

       int
       libvhdi_file_open_wide(libvhdi_file_t*file,constwchar_t*filename,intaccess_flags,libvhdi_error_t**error);

       Available when compiled with libbfio support:

       int
       libvhdi_file_open_file_io_handle(libvhdi_file_tfillei,bbfio_handle*_tile_io_handliaenc,tcess_flaglsi,bvhdi_error*_terror);

       Meta data functions

       int
       libvhdi_file_get_format_version(libvhdi_file*_tiluei,nt16*_tajor_versionu,int16_tminor_versionl,ibvhdi_error_t*error);

       int
       libvhdi_file_get_disk_type(libvhdi_file_t *file, uint32_t *disk_type, libvhdi_error_t **error);

       int
       libvhdi_file_get_media_size(libvhdi_file_t *file, size64_t *media_size, libvhdi_error_t **error);

       int
       libvhdi_file_get_identifier(libvhdi_file_t *file, uint8_t *guid, size_t size, libvhdi_error_t **error);

       int
       libvhdi_file_get_parent_identifier(libvhdi_file_t *file, uint8_t*guid,size_tsize,libvhdi_error_t**error);

       int
       libvhdi_file_get_utf8_parent_filename_size(libvhdi_file_tfile,size_t*utf8_string_size,libvhdi_error_t**error);

       int
       libvhdi_file_get_utf8_parent_filename(libvhdi_file_tfiluei,nt8*_ttf8_strinsgi,zeu_tf8_string_sizlei,bvhdi_error*_terror);

       int
       libvhdi_file_get_utf16_parent_filename_size(libvhdi_file_tfiles,ize_tutf16_string_size,libvhdi_error_t**error);

       int
       libvhdi_file_get_utf16_parent_filename(libvhdi_file*_tiluei,nt16*_ttf16_strinsgi,zuet_t16_string_silzieb,vhdi_erro*r*_trror);

DESCRIPTION

       The libvhdi_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 "libvhdi.h".

ENVIRONMENT

       None

FILES

       None libvhdi allows to be compiled with wide character support (wchar_t).

       To compile libvhdi with wide character support use: ./configure --enable-wide-character-type=yes
        or define: _UNICODE
        or UNICODE
        during compilation.

       LIBVHDI_WIDE_CHARACTER_TYPE
        in libvhdi/features.h can be used to determine if libvhdi was compiled with wide character support.

BUGS

       Please report bugs of any kind on the project issue tracker: https://github.com/libyal/libvhdi/issues

AUTHOR

       These man pages are generated from "libvhdi.h".

COPYRIGHT

       Copyright (C) 2012-2016, 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 libvhdi.h include file

libvhdi                                          January 5, 2015                                      libvhdi(3)

Powered by the Ubuntu Manpage Operator, file bugs in GitHub

© 2025 Canonical. Ubuntu and Canonical are registered trademarks of Canonical Ltd.