Corrected disabled file management.g
This commit is contained in:
parent
ecd210b077
commit
53c4718075
|
@ -71,11 +71,17 @@ extern const char *g1m_error_strings[];
|
|||
/* ************************************************************************** */
|
||||
/* Main functions */
|
||||
/* ************************************************************************** */
|
||||
/* open handles */
|
||||
/* open a handle */
|
||||
int g1m_decode(g1m_t *handle, const char *path, g1m_buffer_t *buffer,
|
||||
g1m_type_t expected_type);
|
||||
|
||||
/* open a handle using FILEs */
|
||||
#ifndef G1M_DISABLED_FILE
|
||||
int g1m_open(g1m_t **handle, const char *path,
|
||||
g1m_type_t expected_type);
|
||||
int g1m_fopen(g1m_t **handle, const char *path, FILE *stream,
|
||||
g1m_type_t expected_type);
|
||||
#endif
|
||||
|
||||
/* open MCS head/file */
|
||||
int g1m_decode_mcsfile_head(g1m_mcshead_t *head,
|
||||
|
|
|
@ -125,10 +125,6 @@ G1M_PROTOTYPE_PIX(16bits)
|
|||
/* ************************************************************************** */
|
||||
/* Utilities */
|
||||
/* ************************************************************************** */
|
||||
/* Parsing */
|
||||
int g1m_decode(g1m_t *handle, const char *path, g1m_buffer_t *buffer,
|
||||
g1m_type_t expected_type);
|
||||
|
||||
/* Making */
|
||||
int g1m_make_mcs(g1m_t **h);
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* *****************************************************************************
|
||||
* user/open.c -- open a file.
|
||||
* core/open.c -- open a file and decode it.
|
||||
* Copyright (C) 2017 Thomas "Cakeisalie5" Touhey <thomas@touhey.fr>
|
||||
*
|
||||
* This file is part of libg1m.
|
||||
|
@ -19,6 +19,7 @@
|
|||
#include <libg1m/internals.h>
|
||||
#include <libg1m/internals/stdio_ext.h>
|
||||
#include <stdlib.h>
|
||||
#ifndef G1M_DISABLED_FILE
|
||||
|
||||
/**
|
||||
* g1m_open:
|
||||
|
@ -26,7 +27,7 @@
|
|||
*
|
||||
* @arg handle the handle to create.
|
||||
* @arg path the path of the file to open.
|
||||
* @arg expected the expected type - 0 if none
|
||||
* @arg expected the expected types (0 if none).
|
||||
* @return the error code (0 if ok).
|
||||
*/
|
||||
|
||||
|
@ -54,7 +55,7 @@ int g1m_open(g1m_t **handle, const char *path,
|
|||
* @arg handle the handle to create.
|
||||
* @arg path the file path.
|
||||
* @arg stream the stream.
|
||||
* @arg expected the expected type.
|
||||
* @arg expected the expected types (0 if none).
|
||||
* @return the error code (0 if ok)
|
||||
*/
|
||||
|
||||
|
@ -87,3 +88,5 @@ int g1m_fopen(g1m_t **handle, const char *path, FILE *stream,
|
|||
/* everything ok */
|
||||
return (0);
|
||||
}
|
||||
|
||||
#endif
|
Reference in New Issue