diff options
author | Jerome Guiban | 2013-06-17 16:07:39 +0000 |
---|---|---|
committer | Eugene Tarassov | 2013-06-19 17:34:37 +0000 |
commit | d3015bf20f1ca18eb438d1377ceb334cd3dc8c68 (patch) | |
tree | 17db2bc3d8c1f0b10f18a9e29413bbf204c57b0c /agent/tcf/services/filesystem.h | |
parent | bb73e4d940391f4decae90027a92236cd4055e6c (diff) | |
download | org.eclipse.tcf.agent-d3015bf20f1ca18eb438d1377ceb334cd3dc8c68.tar.gz org.eclipse.tcf.agent-d3015bf20f1ca18eb438d1377ceb334cd3dc8c68.tar.xz org.eclipse.tcf.agent-d3015bf20f1ca18eb438d1377ceb334cd3dc8c68.zip |
filesystem: prevent extra channel close listener
This commit:
- Prevents multiple registrations of channel close listener for the filesystem service.
- move few constants definitions from source file to header.
Diffstat (limited to 'agent/tcf/services/filesystem.h')
-rw-r--r-- | agent/tcf/services/filesystem.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/agent/tcf/services/filesystem.h b/agent/tcf/services/filesystem.h index 3f63c372..979a7a24 100644 --- a/agent/tcf/services/filesystem.h +++ b/agent/tcf/services/filesystem.h @@ -21,6 +21,26 @@ #define D_filesystem #include <tcf/framework/protocol.h> + +/* + * Open modes + */ +static const int + TCF_O_READ = 0x00000001, + TCF_O_WRITE = 0x00000002, + TCF_O_APPEND = 0x00000004, + TCF_O_CREAT = 0x00000008, + TCF_O_TRUNC = 0x00000010, + TCF_O_EXCL = 0x00000020; + +/* + * Error codes + */ +static const int + FSERR_EOF = 0x10001, + FSERR_NO_SUCH_FILE = 0x10002, + FSERR_PERMISSION_DENIED = 0x10003; + /* * Initialize file system service. */ |