Add support for specialized session interfaces

This patch introduces principal support for extending session interfaces
with specialized functionality in a clean way. For example, an 'Uart'
interface may implement the 'Terminal' interface but also offers
additional functions for setting the baud rate. A service that
implements the 'Uart' service will then automatically announce both the
'Uart' and 'Terminal' services.
This commit is contained in:
Norman Feske
2012-10-29 12:18:24 +01:00
parent cb8910b40c
commit 0c76bc9cfd
3 changed files with 198 additions and 114 deletions

View File

@@ -637,6 +637,11 @@ namespace Genode {
Overload_selector() { }
};
/**
* Convert boolean value to type
*/
template <bool VALUE> struct Bool_to_type { enum { V = VALUE }; };
} /* namespace Meta */
}