summaryrefslogtreecommitdiff
path: root/src/helper/fileio.h
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-02-29 11:42:37 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-02-29 11:42:37 +0000
commit219b7f30b99c8af9f94fa1b10537bb0e2dc6209f (patch)
tree874aab8c13879634f20cb61534c7d3609d1b1e6a /src/helper/fileio.h
parent3a3fc300141d9e0e6b71729d7fd604aa28447116 (diff)
downloadopenocd+libswd-219b7f30b99c8af9f94fa1b10537bb0e2dc6209f.tar.gz
openocd+libswd-219b7f30b99c8af9f94fa1b10537bb0e2dc6209f.tar.bz2
openocd+libswd-219b7f30b99c8af9f94fa1b10537bb0e2dc6209f.tar.xz
openocd+libswd-219b7f30b99c8af9f94fa1b10537bb0e2dc6209f.zip
- image.c and fileio.c now uses logging to propagate error strings.
More precise, less code. - removed unused code in fileio.c - Windows should now find debug_handler.bin git-svn-id: svn://svn.berlios.de/openocd/trunk@390 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/helper/fileio.h')
-rw-r--r--src/helper/fileio.h21
1 files changed, 1 insertions, 20 deletions
diff --git a/src/helper/fileio.h b/src/helper/fileio.h
index c67be2c7..5f6241d0 100644
--- a/src/helper/fileio.h
+++ b/src/helper/fileio.h
@@ -38,18 +38,6 @@ enum fileio_type
FILEIO_BINARY,
};
-enum fileio_location
-{
- FILEIO_LOCAL,
-/*
- * Possible future enhancements:
- * FILEIO_NFS,
- * FILEIO_BOOTP,
- * FILEIO_[XYZ]MODEM,
- * FILEIO_HTTP,
- * FILEIO_FTP,
- */
-};
enum fileio_access
{
@@ -63,18 +51,11 @@ enum fileio_access
typedef struct fileio_s
{
char *url;
- char error_str[FILEIO_MAX_ERROR_STRING];
long long size;
enum fileio_type type;
- enum fileio_location location;
enum fileio_access access;
- void *location_private;
-} fileio_t;
-
-typedef struct fileio_local_s
-{
FILE *file;
-} fileio_local_t;
+} fileio_t;
extern int fileio_write(fileio_t *fileio, u32 size, u8 *buffer, u32 *size_written);
extern int fileio_read(fileio_t *fileio, u32 size, u8 *buffer, u32 *size_read);