Scroll to navigation

libfsclfs(3) Library Functions Manual libfsclfs(3)

NAME

libfsclfs.hLibrary to access the Common Log File System (CLFS) format

SYNOPSIS

#include <libfsclfs.h>

Support functions
const char *
libfsclfs_get_version(void);

int
libfsclfs_get_access_flags_read(void);

int
libfsclfs_get_codepage(int *codepage, libfsclfs_error_t **error);

int
libfsclfs_set_codepage(int codepage, libfsclfs_error_t **error);

Notify functions
void
libfsclfs_notify_set_verbose(int verbose);

int
libfsclfs_notify_set_stream(FILE *stream, libfsclfs_error_t **error);

int
libfsclfs_notify_stream_open(const char *filename, libfsclfs_error_t **error);

int
libfsclfs_notify_stream_close(libfsclfs_error_t **error);

Error functions
void
libfsclfs_error_free(libfsclfs_error_t **error);

int
libfsclfs_error_fprint(libfsclfs_error_t *error, FILE *stream);

int
libfsclfs_error_sprint(libfsclfs_error_t *error, char *string, size_t size);

int
libfsclfs_error_backtrace_fprint(libfsclfs_error_t *error, FILE *stream);

int
libfsclfs_error_backtrace_sprint(libfsclfs_error_t *error, char *string, size_t size);

Store functions
int
libfsclfs_store_initialize(libfsclfs_store_t **store, libfsclfs_error_t **error);

int
libfsclfs_store_free(libfsclfs_store_t **store, libfsclfs_error_t **error);

int
libfsclfs_store_signal_abort(libfsclfs_store_t *store, libfsclfs_error_t **error);

int
libfsclfs_store_open(libfsclfs_store_t *store, const char *filename, int access_flags, libfsclfs_error_t **error);

int
libfsclfs_store_open_containers(libfsclfs_store_t *store, libfsclfs_error_t **error);

int
libfsclfs_store_close(libfsclfs_store_t *store, libfsclfs_error_t **error);

int
libfsclfs_store_get_number_of_containers(libfsclfs_store_t *store, int *number_of_containers, libfsclfs_error_t **error);

int
libfsclfs_store_get_container(libfsclfs_store_t *store, int container_index, libfsclfs_container_t **container, libfsclfs_error_t **error);

int
libfsclfs_store_get_number_of_streams(libfsclfs_store_t *store, int *number_of_streams, libfsclfs_error_t **error);

int
libfsclfs_store_get_stream(libfsclfs_store_t *store, int stream_index, libfsclfs_stream_t **stream, libfsclfs_error_t **error);

Available when compiled with wide character string support:
int
libfsclfs_store_open_wide(libfsclfs_store_t *store, const wchar_t *filename, int access_flags, libfsclfs_error_t **error);

Available when compiled with libbfio support:
int
libfsclfs_store_open_file_io_handle(libfsclfs_store_t *store, libbfio_handle_t *file_io_handle, int access_flags, libfsclfs_error_t **error);

Container functions
int
libfsclfs_container_free(libfsclfs_container_t **container, libfsclfs_error_t **error);

int
libfsclfs_container_get_size(libfsclfs_container_t *container, size64_t *size, libfsclfs_error_t **error);

int
libfsclfs_container_get_utf8_name_size(libfsclfs_container_t *container, size_t *utf8_string_size, libfsclfs_error_t **error);

int
libfsclfs_container_get_utf8_name(libfsclfs_container_t *container, uint8_t *utf8_string, size_t utf8_string_size, libfsclfs_error_t **error);

int
libfsclfs_container_get_utf16_name_size(libfsclfs_container_t *container, size_t *utf16_string_size, libfsclfs_error_t **error);

int
libfsclfs_container_get_utf16_name(libfsclfs_container_t *container, uint16_t *utf16_string, size_t utf16_string_size, libfsclfs_error_t **error);

Stream functions
int
libfsclfs_stream_free(libfsclfs_stream_t **stream, libfsclfs_error_t **error);

int
libfsclfs_stream_get_utf8_name_size(libfsclfs_stream_t *stream, size_t *utf8_string_size, libfsclfs_error_t **error);

int
libfsclfs_stream_get_utf8_name(libfsclfs_stream_t *stream, uint8_t *utf8_string, size_t utf8_string_size, libfsclfs_error_t **error);

int
libfsclfs_stream_get_utf16_name_size(libfsclfs_stream_t *stream, size_t *utf16_string_size, libfsclfs_error_t **error);

int
libfsclfs_stream_get_utf16_name(libfsclfs_stream_t *stream, uint16_t *utf16_string, size_t utf16_string_size, libfsclfs_error_t **error);

int
libfsclfs_stream_get_base_lsn(libfsclfs_stream_t *stream, uint64_t *base_lsn, libfsclfs_error_t **error);

int
libfsclfs_stream_get_last_lsn(libfsclfs_stream_t *stream, uint64_t *last_lsn, libfsclfs_error_t **error);

int
libfsclfs_stream_get_record_by_lsn(libfsclfs_stream_t *stream, uint64_t record_lsn, libfsclfs_record_t **record, libfsclfs_error_t **error);

Record functions
int
libfsclfs_record_free(libfsclfs_record_t **record, libfsclfs_error_t **error);

int
libfsclfs_record_get_type(libfsclfs_record_t *record, uint32_t *record_type, libfsclfs_error_t **error);

int
libfsclfs_record_get_flags(libfsclfs_record_t *record, uint16_t *record_flags, libfsclfs_error_t **error);

int
libfsclfs_record_get_previous_lsn(libfsclfs_record_t *record, uint64_t *previous_lsn, libfsclfs_error_t **error);

int
libfsclfs_record_get_undo_next_lsn(libfsclfs_record_t *record, uint64_t *undo_next_lsn, libfsclfs_error_t **error);

int
libfsclfs_record_get_data(libfsclfs_record_t *record, uint8_t **data, size_t *data_size, libfsclfs_error_t **error);

DESCRIPTION

The () 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 "libfsclfs.h".

ENVIRONMENT

None

FILES

None

NOTES

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

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

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

BUGS

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

AUTHOR

These man pages are generated from "libfsclfs.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 libfsclfs.h include file

October 15, 2019 libfsclfs