From 379492ff3c10eef6479fd85418b797f97889d3f9 Mon Sep 17 00:00:00 2001 From: Manuel Traut Date: Mon, 28 May 2012 17:03:11 +0200 Subject: interfaces first draft first idea of an interface description to control io s Signed-off-by: Manuel Traut --- interfaces/common.idl | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 interfaces/common.idl (limited to 'interfaces/common.idl') 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; + }; +}; -- cgit v1.2.3