diff options
author | Alex Auvolat <alex.auvolat@ens.fr> | 2015-03-08 13:46:41 +0100 |
---|---|---|
committer | Alex Auvolat <alex.auvolat@ens.fr> | 2015-03-08 13:46:41 +0100 |
commit | 93af9a589980403f9887936963a6ce4f189dc020 (patch) | |
tree | c2e967e0d3b97ec6a6a3a6c0831e599ddca3f196 /src/common | |
parent | 5e3d036d3a10d919e54035b1365005f26886ed75 (diff) | |
download | kogata-93af9a589980403f9887936963a6ce4f189dc020.tar.gz kogata-93af9a589980403f9887936963a6ce4f189dc020.zip |
Channels.
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/include/fs.h | 2 | ||||
-rw-r--r-- | src/common/include/token.h | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/src/common/include/fs.h b/src/common/include/fs.h index 880202b..431c16f 100644 --- a/src/common/include/fs.h +++ b/src/common/include/fs.h @@ -8,7 +8,7 @@ #define FT_DEV (0x02) #define FT_BLOCKDEV (0x04) #define FT_CHARDEV (0x08) -#define FT_FIFO (0x10) +#define FT_CHANNEL (0x10) // dual-pipe // #define FT_SOCKET (0x20) // Not yet! Semantics not defined. (TODO) // FM_* enum describes modes for opening a file as well as authorized operations in stat_t diff --git a/src/common/include/token.h b/src/common/include/token.h new file mode 100644 index 0000000..9ec1aff --- /dev/null +++ b/src/common/include/token.h @@ -0,0 +1,11 @@ +#pragma once + +#include <stdint.h> +#include <stddef.h> + +#define TOKEN_LENGTH 16 +typedef struct { + char bytes[TOKEN_LENGTH]; +} token_t; + +/* vim: set ts=4 sw=4 tw=0 noet :*/ |