summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-07 22:37:39 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-16 01:38:19 -0800
commitda4cb3c029e7f271ee4fa7165ceefbef04d45e49 (patch)
treec36cbb9fdc3186df8beac9ba7f84c99422d56ac6 /src
parent51cd370b396d19555158c1eb913e7c8386d92a0f (diff)
downloadopenocd_libswd-da4cb3c029e7f271ee4fa7165ceefbef04d45e49.tar.gz
openocd_libswd-da4cb3c029e7f271ee4fa7165ceefbef04d45e49.tar.bz2
openocd_libswd-da4cb3c029e7f271ee4fa7165ceefbef04d45e49.tar.xz
openocd_libswd-da4cb3c029e7f271ee4fa7165ceefbef04d45e49.zip
Add FILEIO_NONE access mode.
In some cases, the FILEIO_NONE access mode may be useful as a parameter to indicate that file access should be disabled. High-level routines can use it to skip file access calls, as 'fileio_open' will fail presently if called to open a file using this mode.
Diffstat (limited to 'src')
-rw-r--r--src/helper/fileio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/helper/fileio.h b/src/helper/fileio.h
index 024ad083..8cba926a 100644
--- a/src/helper/fileio.h
+++ b/src/helper/fileio.h
@@ -38,6 +38,7 @@ enum fileio_type
enum fileio_access
{
+ FILEIO_NONE, /* open without any access (invalid mode) */
FILEIO_READ, /* open for reading, position at beginning */
FILEIO_WRITE, /* open for writing, position at beginning */
FILEIO_READWRITE, /* open for writing, position at beginning, allow reading */