helper/fileio: Remove nested struct
Change-Id: I1a3afbddcf950689da58e0df8850a05f558d7879 Signed-off-by: Marc Schink <openocd-dev@marcschink.de> Reviewed-on: http://openocd.zylin.com/3222 Tested-by: jenkins Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
This commit is contained in:
committed by
Andreas Fritiofson
parent
7c957b601f
commit
73b676c2fd
@@ -43,13 +43,10 @@ enum fileio_access {
|
||||
FILEIO_APPENDREAD, /* open for writing, position at end, allow reading */
|
||||
};
|
||||
|
||||
struct fileio {
|
||||
/* The structure is opaque */
|
||||
struct fileio_internal *fp;
|
||||
};
|
||||
struct fileio;
|
||||
|
||||
int fileio_open(struct fileio *fileio,
|
||||
const char *url, enum fileio_access access_type, enum fileio_type type);
|
||||
int fileio_open(struct fileio **fileio, const char *url,
|
||||
enum fileio_access access_type, enum fileio_type type);
|
||||
int fileio_close(struct fileio *fileio);
|
||||
|
||||
int fileio_seek(struct fileio *fileio, size_t position);
|
||||
|
||||
Reference in New Issue
Block a user