Rev 1445 | Rev 1451 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1445 | Rev 1447 | ||
---|---|---|---|
Line 37... | Line 37... | ||
37 | #include <kbd.h> |
37 | #include <kbd.h> |
38 | #include <libadt/fifo.h> |
38 | #include <libadt/fifo.h> |
39 | #include <key_buffer.h> |
39 | #include <key_buffer.h> |
40 | 40 | ||
41 | #define NAME "KBD" |
41 | #define NAME "KBD" |
42 | void hello(void *private, int retval, ipc_call_t *data) { |
- | |
43 | printf("%s: got answer from console with retval %d.\n", NAME, retval); |
- | |
44 | } |
42 | |
45 | int main(int argc, char **argv) |
43 | int main(int argc, char **argv) |
46 | { |
44 | { |
47 | ipc_call_t call; |
45 | ipc_call_t call; |
48 | ipc_callid_t callid; |
46 | ipc_callid_t callid; |
49 | int res; |
47 | int res; |
Line 112... | Line 110... | ||
112 | if (!key_buffer_pop((char *)&arg1)) { |
110 | if (!key_buffer_pop((char *)&arg1)) { |
113 | printf("%s: KeyBuffer is empty but it should not be.\n"); |
111 | printf("%s: KeyBuffer is empty but it should not be.\n"); |
114 | break; |
112 | break; |
115 | } |
113 | } |
116 | /*FIXME: detection of closed connection */ |
114 | /*FIXME: detection of closed connection */ |
117 | ipc_call_async(phoneid, KBD_PUSHCHAR, arg1, 0, &hello); |
115 | ipc_call_async(phoneid, KBD_PUSHCHAR, arg1, 0, NULL); |
118 | } |
116 | } |
119 | 117 | ||
120 | } |
118 | } |
121 | printf("%s: Interrupt processed.\n", NAME); |
119 | printf("%s: Interrupt processed.\n", NAME); |
122 | break; |
120 | break; |