36 lines
1.3 KiB
C
36 lines
1.3 KiB
C
/* ************************************************************************** */
|
|
/* _____ _ */
|
|
/* parse/storage.c |_ _|__ _ _| |__ ___ _ _ */
|
|
/* | Project: libg1m | |/ _ \| | | | '_ \ / _ \ | | | */
|
|
/* | | (_) | |_| | | | | __/ |_| | */
|
|
/* By: thomas <thomas@touhey.fr> |_|\___/ \__,_|_| |_|\___|\__, |.fr */
|
|
/* Last updated: 2016/12/25 13:38:52 |___/ */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
#include <libg1m/internals.h>
|
|
|
|
/**
|
|
* g1m_parse_storage:
|
|
* Parse storage files.
|
|
*
|
|
* @arg handle the libg1m handle.
|
|
* @arg stream the stream to read from.
|
|
* @arg std the standard header.
|
|
* @return the error code (0 if ok).
|
|
*/
|
|
|
|
int g1m_parse_storage(g1m_t *handle, FILE *stream,
|
|
struct standard_header *std)
|
|
{
|
|
(void)std;
|
|
/* skip the first 0x270000 - 0x20 bytes */
|
|
SKIP(0x270000 - sizeof(struct standard_header))
|
|
|
|
/* then read and stuff... not yet. */
|
|
log_error("Storage files are not managed yet.");
|
|
handle->type = 0x00;
|
|
|
|
/* no error */
|
|
return (0);
|
|
}
|