/* * Leak values functions * * Copyright (C) 2009-2021, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see . */ #if !defined( _LIBMSIECF_LEAK_VALUES_H ) #define _LIBMSIECF_LEAK_VALUES_H #include #include #include "libmsiecf_libbfio.h" #include "libmsiecf_libcerror.h" #include "libmsiecf_libfvalue.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libmsiecf_leak_values libmsiecf_leak_values_t; struct libmsiecf_leak_values { /* The cached file size */ uint32_t cached_file_size; /* The cache directory index */ uint8_t cache_directory_index; /* The filename value */ libfvalue_value_t *filename; }; int libmsiecf_leak_values_initialize( libmsiecf_leak_values_t **leak_values, libcerror_error_t **error ); int libmsiecf_leak_values_free( libmsiecf_leak_values_t **leak_values, libcerror_error_t **error ); int libmsiecf_leak_values_read_data( libmsiecf_leak_values_t *leak_values, const uint8_t *data, size_t data_size, int ascii_codepage, uint8_t item_flags, libcerror_error_t **error ); int libmsiecf_leak_values_read_file_io_handle( libmsiecf_leak_values_t *leak_values, libbfio_handle_t *file_io_handle, off64_t leak_record_offset, size32_t record_size, int ascii_codepage, uint8_t item_flags, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBMSIECF_LEAK_VALUES_H ) */