Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/vhc/conndev.c

    rbc1c6fb r0b31409  
    7676/** Default handler for IPC methods not handled by DDF.
    7777 *
    78  * @param fun Device handling the call.
     78 * @param dev Device handling the call.
    7979 * @param icallid Call id.
    8080 * @param icall Call data.
    8181 */
    82 void default_connection_handler(ddf_fun_t *fun,
     82void default_connection_handler(device_t *dev,
    8383    ipc_callid_t icallid, ipc_call_t *icall)
    8484{
     
    9090                    = virtdev_add_device(callback, (sysarg_t)fibril_get_id());
    9191                if (!dev) {
    92                         async_answer_0(icallid, EEXISTS);
    93                         async_hangup(callback);
     92                        ipc_answer_0(icallid, EEXISTS);
     93                        ipc_hangup(callback);
    9494                        return;
    9595                }
    96                 async_answer_0(icallid, EOK);
     96                ipc_answer_0(icallid, EOK);
    9797
    9898                char devname[DEVICE_NAME_MAXLENGTH + 1];
     
    105105        }
    106106
    107         async_answer_0(icallid, EINVAL);
     107        ipc_answer_0(icallid, EINVAL);
    108108}
    109109
    110110/** Callback for DDF when client disconnects.
    111111 *
    112  * @param fun Device function the client was connected to.
     112 * @param d Device the client was connected to.
    113113 */
    114 void on_client_close(ddf_fun_t *fun)
     114void on_client_close(device_t *d)
    115115{
    116116        /*
Note: See TracChangeset for help on using the changeset viewer.