Changeset 3f29834 in mainline
- Timestamp:
- 2009-12-26T13:03:53Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9f51afc
- Parents:
- bb2dbf8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/kbd/generic/kbd.c
rbb2dbf8 r3f29834 60 60 #define NAMESPACE "hid_in" 61 61 62 int phone2cons= -1;62 int client_phone = -1; 63 63 64 64 /** Currently active modifiers. */ … … 164 164 ev.c = layout[active_layout]->parse_ev(&ev); 165 165 166 async_msg_4( phone2cons, KBD_EVENT, ev.type, ev.key, ev.mods, ev.c);167 } 168 169 static void c onsole_connection(ipc_callid_t iid, ipc_call_t *icall)166 async_msg_4(client_phone, KBD_EVENT, ev.type, ev.key, ev.mods, ev.c); 167 } 168 169 static void client_connection(ipc_callid_t iid, ipc_call_t *icall) 170 170 { 171 171 ipc_callid_t callid; … … 179 179 switch (IPC_GET_METHOD(call)) { 180 180 case IPC_M_PHONE_HUNGUP: 181 if ( phone2cons!= -1) {182 ipc_hangup( phone2cons);183 phone2cons= -1;181 if (client_phone != -1) { 182 ipc_hangup(client_phone); 183 client_phone = -1; 184 184 } 185 185 … … 187 187 return; 188 188 case IPC_M_CONNECT_TO_ME: 189 if ( phone2cons!= -1) {189 if (client_phone != -1) { 190 190 retval = ELIMIT; 191 191 break; 192 192 } 193 phone2cons= IPC_GET_ARG5(call);193 client_phone = IPC_GET_ARG5(call); 194 194 retval = 0; 195 195 break; … … 238 238 239 239 /* Register driver */ 240 int rc = devmap_driver_register(NAME, c onsole_connection);240 int rc = devmap_driver_register(NAME, client_connection); 241 241 if (rc < 0) { 242 242 printf(NAME ": Unable to register driver (%d)\n", rc);
Note:
See TracChangeset
for help on using the changeset viewer.