lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
Last change
on this file since 554debd was 6d4c549, checked in by Martin Decky <martin@…>, 16 years ago |
streamline the behavior protocols
add support for initialization and finalization phase of protocols in ADL
|
-
Property mode
set to
100644
|
File size:
605 bytes
|
Rev | Line | |
---|
[ea5f46d] | 1 | interface kbd extends service {
|
---|
| 2 | /* Callback connection */
|
---|
| 3 | ipcarg_t ipc_m_connect_to_me(void);
|
---|
| 4 |
|
---|
| 5 | /* Yield hardware */
|
---|
| 6 | ipcarg_t yield(void);
|
---|
| 7 |
|
---|
| 8 | /* Reclaim hardware */
|
---|
| 9 | ipcarg_t reclaim(void);
|
---|
| 10 | protocol:
|
---|
| 11 | [kbd.bp]
|
---|
| 12 | };
|
---|
| 13 |
|
---|
| 14 | interface event {
|
---|
| 15 | /* Send keyboard event */
|
---|
| 16 | ipcarg_t event(in ipcarg_t type, in ipcarg_t key, in ipcarg_t mods, in ipcarg_t char);
|
---|
| 17 | protocol:
|
---|
| 18 | [event.bp]
|
---|
| 19 | };
|
---|
| 20 |
|
---|
| 21 | frame kbd {
|
---|
| 22 | provides:
|
---|
| 23 | kbd kbd;
|
---|
| 24 | requires:
|
---|
[2a70672] | 25 | [/uspace/lib/libc/requires]
|
---|
[ea5f46d] | 26 | event event;
|
---|
| 27 | ns ns;
|
---|
[6d4c549] | 28 | initialization:
|
---|
| 29 | !ns.ipc_m_connect_to_me /* kbd */ ;
|
---|
| 30 | !event.event*
|
---|
[ea5f46d] | 31 | protocol:
|
---|
[6d4c549] | 32 | [/uspace/lib/libc/protocol]
|
---|
[ea5f46d] | 33 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.