Changes in uspace/srv/kbd/generic/kbd.c [3f29834:47a350f] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/kbd/generic/kbd.c
r3f29834 r47a350f 60 60 #define NAMESPACE "hid_in" 61 61 62 int client_phone= -1;62 int phone2cons = -1; 63 63 64 64 /** Currently active modifiers. */ … … 164 164 ev.c = layout[active_layout]->parse_ev(&ev); 165 165 166 async_msg_4( client_phone, KBD_EVENT, ev.type, ev.key, ev.mods, ev.c);167 } 168 169 static void c lient_connection(ipc_callid_t iid, ipc_call_t *icall)166 async_msg_4(phone2cons, KBD_EVENT, ev.type, ev.key, ev.mods, ev.c); 167 } 168 169 static void console_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 ( client_phone!= -1) {182 ipc_hangup( client_phone);183 client_phone= -1;181 if (phone2cons != -1) { 182 ipc_hangup(phone2cons); 183 phone2cons = -1; 184 184 } 185 185 … … 187 187 return; 188 188 case IPC_M_CONNECT_TO_ME: 189 if ( client_phone!= -1) {189 if (phone2cons != -1) { 190 190 retval = ELIMIT; 191 191 break; 192 192 } 193 client_phone= IPC_GET_ARG5(call);193 phone2cons = 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 lient_connection);240 int rc = devmap_driver_register(NAME, console_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.