From f791f02b89efc984b40b922ed53ff6cb76e3e829 Mon Sep 17 00:00:00 2001 From: Manuel Traut Date: Tue, 29 May 2012 02:10:20 +0200 Subject: 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 --- interfaces/common.idl | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) (limited to 'interfaces/common.idl') 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 -- cgit v1.2.3