Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F7713172
libsmraw_information_file.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Size
2 KB
Referenced Files
None
Subscribers
None
libsmraw_information_file.h
View Options
/*
* Information file functions
*
* Copyright (c) 2010-2012, Joachim Metz <jbmetz@users.sourceforge.net>
*
* Refer to AUTHORS for acknowledgements.
*
* This software 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 software 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 software. If not, see <http://www.gnu.org/licenses/>.
*/
#if !defined( _LIBSMRAW_INFORMATION_FILE_H )
#define _LIBSMRAW_INFORMATION_FILE_H
#include <common.h>
#include <file_stream.h>
#include <types.h>
#include <libcstring.h>
#include <liberror.h>
#include "libsmraw_libfvalue.h"
#if defined( __cplusplus )
extern "C" {
#endif
typedef struct libsmraw_information_file libsmraw_information_file_t;
struct libsmraw_information_file
{
/* The filename
*/
libcstring_system_character_t *name;
/* The size of the filename
*/
size_t name_size;
/* The file stream
*/
FILE *file_stream;
};
int libsmraw_information_file_initialize(
libsmraw_information_file_t **information_file,
liberror_error_t **error );
int libsmraw_information_file_free(
libsmraw_information_file_t **information_file,
liberror_error_t **error );
int libsmraw_information_file_set_name(
libsmraw_information_file_t *information_file,
const libcstring_system_character_t *name,
size_t name_length,
liberror_error_t **error );
int libsmraw_information_file_open(
libsmraw_information_file_t *information_file,
const libcstring_system_character_t *mode,
liberror_error_t **error );
int libsmraw_information_file_close(
libsmraw_information_file_t *information_file,
liberror_error_t **error );
int libsmraw_information_file_read_section(
libsmraw_information_file_t *information_file,
const uint8_t *section_identifier,
size_t section_identifier_length,
libfvalue_table_t *values_table,
liberror_error_t **error );
int libsmraw_information_file_write_section(
libsmraw_information_file_t *information_file,
const uint8_t *section_identifier,
size_t section_identifier_length,
libfvalue_table_t *values_table,
liberror_error_t **error );
#if defined( __cplusplus )
}
#endif
#endif
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Fri, Nov 21, 7:14 PM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1361381
Default Alt Text
libsmraw_information_file.h (2 KB)
Attached To
Mode
rXMOUNT xmount
Attached
Detach File
Event Timeline
Log In to Comment