diff options
| author | Manuel Traut <manut@mecka.net> | 2012-05-29 02:10:20 +0200 |
|---|---|---|
| committer | Manuel Traut <manut@mecka.net> | 2012-05-29 02:10:20 +0200 |
| commit | f791f02b89efc984b40b922ed53ff6cb76e3e829 (patch) | |
| tree | 0eaa04c79c493d7815dc2de9a3c4eefb18e85081 /interfaces/common.idl | |
| parent | 379492ff3c10eef6479fd85418b797f97889d3f9 (diff) | |
improve interfaces and fix typos
- added timestamp for error
- added log function to collect errors in controller
- merged device.idl into io.idl
- fixed typos in io
- added callbacks to digital/analog io
Signed-off-by: Manuel Traut <manut@mecka.net>
Diffstat (limited to 'interfaces/common.idl')
| -rw-r--r-- | interfaces/common.idl | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/interfaces/common.idl b/interfaces/common.idl index c3ca769..7e6266c 100644 --- a/interfaces/common.idl +++ b/interfaces/common.idl @@ -1,12 +1,15 @@ -module common { +#ifndef DISTIO_COMMON_IDL +#define DISTIO_COMMON_IDL - enum error_code { +module Common { + + enum Error_code { SUCCESS, EINVAL, ENOTSUPPORTED }; - enum error_level { + enum Error_level { DEBUG, INFO, WARNING, @@ -14,9 +17,19 @@ module common { CRITICAL }; - struct error { - error_code code; - error_level level; + struct Error_timestamp { + longlong seconds; + long nanoseconds; + }; + + struct Error { + Error_code code; + Error_level level; + Error_timestamp time; + long module_id; string description; }; + }; + +#endif |
