logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

libvsapm.h — Library to access the Apple Partition Map (APM) volume system format

Author

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

Bugs

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

Description

       The libvsapm_get_version() function is used to retrieve the library version.

Environment

       None

Files

       None

Name

       libvsapm.h — Library to access the Apple Partition Map (APM) volume system format

Notes

       libvsapm can be compiled with wide character support (wchar_t).

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

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

Return Values

       Most  of  the  functions return NULL or -1 on error, dependent on the return type.  For the actual return
       values see "libvsapm.h".

See Also

       the libvsapm.h include file

libvsapm                                        February 11, 2023                                    libvsapm(3)

Synopsis

#include<libvsapm.h>

       Support functions

       constchar*libvsapm_get_version(void);

       intlibvsapm_get_access_flags_read(void);

       intlibvsapm_get_access_flags_read_write(void);

       intlibvsapm_get_access_flags_write(void);

       intlibvsapm_get_codepage(int*codepage, libvsapm_error_t**error);

       intlibvsapm_set_codepage(intcodepage, libvsapm_error_t**error);

       intlibvsapm_check_volume_signature(constchar*filename, libvsapm_error_t**error);

       Available when compiled with wide character string support:

       intlibvsapm_check_volume_signature_wide(constwchar_t*filename, libvsapm_error_t**error);

       Available when compiled with libbfio support:

       intlibvsapm_check_volume_signature_file_io_handle(libbfio_handle_t*file_io_handle,
           libvsapm_error_t**error);

       Notify functions

       voidlibvsapm_notify_set_verbose(intverbose);

       intlibvsapm_notify_set_stream(FILE*stream, libvsapm_error_t**error);

       intlibvsapm_notify_stream_open(constchar*filename, libvsapm_error_t**error);

       intlibvsapm_notify_stream_close(libvsapm_error_t**error);

       Error functions

       voidlibvsapm_error_free(libvsapm_error_t**error);

       intlibvsapm_error_fprint(libvsapm_error_t*error, FILE*stream);

       intlibvsapm_error_sprint(libvsapm_error_t*error, char*string, size_tsize);

       intlibvsapm_error_backtrace_fprint(libvsapm_error_t*error, FILE*stream);

       intlibvsapm_error_backtrace_sprint(libvsapm_error_t*error, char*string, size_tsize);

       Volume functions

       intlibvsapm_volume_initialize(libvsapm_volume_t**volume, libvsapm_error_t**error);

       intlibvsapm_volume_free(libvsapm_volume_t**volume, libvsapm_error_t**error);

       intlibvsapm_volume_signal_abort(libvsapm_volume_t*volume, libvsapm_error_t**error);

       intlibvsapm_volume_open(libvsapm_volume_t*volume,    constchar*filename,    intaccess_flags,
           libvsapm_error_t**error);

       intlibvsapm_volume_close(libvsapm_volume_t*volume, libvsapm_error_t**error);

       intlibvsapm_volume_get_bytes_per_sector(libvsapm_volume_t*volume,      uint32_t*bytes_per_sector,
           libvsapm_error_t**error);

       intlibvsapm_volume_set_bytes_per_sector(libvsapm_volume_t*volume,      uint32_tbytes_per_sector,
           libvsapm_error_t**error);

       intlibvsapm_volume_get_number_of_partitions(libvsapm_volume_t*volume,     int*number_of_partitions,
           libvsapm_error_t**error);

       intlibvsapm_volume_get_partition_by_index(libvsapm_volume_t*volume,       intpartition_index,
           libvsapm_partition_t**partition, libvsapm_error_t**error);

       Available when compiled with wide character string support:

       intlibvsapm_volume_open_wide(libvsapm_volume_t*volume,   constwchar_t*filename,  intaccess_flags,
           libvsapm_error_t**error);

       Available when compiled with libbfio support:

       intlibvsapm_volume_open_file_io_handle(libvsapm_volume_t*volume,    libbfio_handle_t*file_io_handle,
           intaccess_flags, libvsapm_error_t**error);

       Partition functions

       intlibvsapm_partition_free(libvsapm_partition_t**partition, libvsapm_error_t**error);

       intlibvsapm_partition_get_name_string(libvsapm_partition_t*partition,  char*string,  size_tstring_size,
           libvsapm_error_t**error);

       intlibvsapm_partition_get_type_string(libvsapm_partition_t*partition,  char*string,  size_tstring_size,
           libvsapm_error_t**error);

       intlibvsapm_partition_get_status_flags(libvsapm_partition_t*partition,     uint32_t*status_flags,
           libvsapm_error_t**error);

       intlibvsapm_partition_get_volume_offset(libvsapm_partition_t*partition,     off64_t*volume_offset,
           libvsapm_error_t**error);

       ssize_tlibvsapm_partition_read_buffer(libvsapm_partition_t*partition,   void*buffer,  size_tbuffer_size,
           libvsapm_error_t**error);

       ssize_tlibvsapm_partition_read_buffer_at_offset(libvsapm_partition_t*partition,       void*buffer,
           size_tbuffer_size, off64_toffset, libvsapm_error_t**error);

       off64_tlibvsapm_partition_seek_offset(libvsapm_partition_t*partition,    off64_toffset,    intwhence,
           libvsapm_error_t**error);

       intlibvsapm_partition_get_offset(libvsapm_partition_t*partition,          off64_t*offset,
           libvsapm_error_t**error);

       intlibvsapm_partition_get_size(libvsapm_partition_t*partition, size64_t*size, libvsapm_error_t**error);

See Also