Changes in uspace/drv/vhc/conndev.c [bc1c6fb:0b31409] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/vhc/conndev.c
rbc1c6fb r0b31409 76 76 /** Default handler for IPC methods not handled by DDF. 77 77 * 78 * @param funDevice handling the call.78 * @param dev Device handling the call. 79 79 * @param icallid Call id. 80 80 * @param icall Call data. 81 81 */ 82 void default_connection_handler(d df_fun_t *fun,82 void default_connection_handler(device_t *dev, 83 83 ipc_callid_t icallid, ipc_call_t *icall) 84 84 { … … 90 90 = virtdev_add_device(callback, (sysarg_t)fibril_get_id()); 91 91 if (!dev) { 92 async_answer_0(icallid, EEXISTS);93 async_hangup(callback);92 ipc_answer_0(icallid, EEXISTS); 93 ipc_hangup(callback); 94 94 return; 95 95 } 96 async_answer_0(icallid, EOK);96 ipc_answer_0(icallid, EOK); 97 97 98 98 char devname[DEVICE_NAME_MAXLENGTH + 1]; … … 105 105 } 106 106 107 async_answer_0(icallid, EINVAL);107 ipc_answer_0(icallid, EINVAL); 108 108 } 109 109 110 110 /** Callback for DDF when client disconnects. 111 111 * 112 * @param fun Device functionthe client was connected to.112 * @param d Device the client was connected to. 113 113 */ 114 void on_client_close(d df_fun_t *fun)114 void on_client_close(device_t *d) 115 115 { 116 116 /*
Note:
See TracChangeset
for help on using the changeset viewer.