source:
mainline/contrib/arch/uspace/srv/kbd/kbd.adl
Last change on this file was f1380b7, checked in by , 7 years ago | |
---|---|
|
|
File size: 601 bytes |
Rev | Line | |
---|---|---|
[ea5f46d] | 1 | interface kbd extends service { |
2 | /* Callback connection */ | |
[96b02eb9] | 3 | sysarg_t ipc_m_connect_to_me(void); |
[f1380b7] | 4 | |
[ea5f46d] | 5 | /* Yield hardware */ |
[96b02eb9] | 6 | sysarg_t yield(void); |
[f1380b7] | 7 | |
[ea5f46d] | 8 | /* Reclaim hardware */ |
[96b02eb9] | 9 | sysarg_t reclaim(void); |
[ea5f46d] | 10 | protocol: |
11 | [kbd.bp] | |
12 | }; | |
13 | ||
14 | interface event { | |
15 | /* Send keyboard event */ | |
[96b02eb9] | 16 | sysarg_t event(in sysarg_t type, in sysarg_t key, in sysarg_t mods, in sysarg_t char); |
[ea5f46d] | 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.