File: //home/django/libpff/pfftools/info_handle.h
/*
* Info handle
*
* Copyright (C) 2008-2024, Joachim Metz <joachim.metz@gmail.com>
*
* 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 <https://www.gnu.org/licenses/>.
*/
#if !defined( _INFO_HANDLE_H )
#define _INFO_HANDLE_H
#include <common.h>
#include <file_stream.h>
#include <types.h>
#include "pfftools_libcerror.h"
#include "pfftools_libpff.h"
#if defined( __cplusplus )
extern "C" {
#endif
typedef struct info_handle info_handle_t;
struct info_handle
{
/* The libpff input file
*/
libpff_file_t *input_file;
/* The libpff root item
*/
libpff_item_t *root_item;
/* The ascii codepage
*/
int ascii_codepage;
/* The notification output stream
*/
FILE *notify_stream;
};
int info_handle_initialize(
info_handle_t **info_handle,
libcerror_error_t **error );
int info_handle_free(
info_handle_t **info_handle,
libcerror_error_t **error );
int info_handle_signal_abort(
info_handle_t *info_handle,
libcerror_error_t **error );
int info_handle_set_ascii_codepage(
info_handle_t *info_handle,
const system_character_t *string,
libcerror_error_t **error );
int info_handle_open_input(
info_handle_t *info_handle,
const system_character_t *filename,
libcerror_error_t **error );
int info_handle_close(
info_handle_t *info_handle,
libcerror_error_t **error );
int info_handle_file_fprint(
info_handle_t *info_handle,
libcerror_error_t **error );
int info_handle_message_store_fprint(
info_handle_t *info_handle,
libcerror_error_t **error );
int info_handle_item_fprint(
info_handle_t *info_handle,
libpff_item_t *item,
int indentation_level,
libcerror_error_t **error );
int info_handle_unallocated_blocks_fprint(
info_handle_t *info_handle,
libcerror_error_t **error );
#if defined( __cplusplus )
}
#endif
#endif /* !defined( _INFO_HANDLE_H ) */