diff options
| author | Manuel Traut <manut@mecka.net> | 2012-05-28 17:03:11 +0200 |
|---|---|---|
| committer | Manuel Traut <manut@mecka.net> | 2012-05-28 17:03:11 +0200 |
| commit | 379492ff3c10eef6479fd85418b797f97889d3f9 (patch) | |
| tree | 6ec8ee28aec613377fab4d9e75bc5afab152e1f5 /interfaces/common.idl | |
interfaces first draft
first idea of an interface description to control io s
Signed-off-by: Manuel Traut <manut@mecka.net>
Diffstat (limited to 'interfaces/common.idl')
| -rw-r--r-- | interfaces/common.idl | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/interfaces/common.idl b/interfaces/common.idl new file mode 100644 index 0000000..c3ca769 --- /dev/null +++ b/interfaces/common.idl @@ -0,0 +1,22 @@ +module common { + + enum error_code { + SUCCESS, + EINVAL, + ENOTSUPPORTED + }; + + enum error_level { + DEBUG, + INFO, + WARNING, + NORMAL, + CRITICAL + }; + + struct error { + error_code code; + error_level level; + string description; + }; +}; |
