Changeset 9934f7d in mainline for uspace/lib/usbvirt/src/device.c


Ignore:
Timestamp:
2011-06-13T19:53:48Z (13 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a07a454
Parents:
43ac0cc
Message:

Add extra argument to async connection handlers that can be used for passing
information from async_connect_to_me() to the handler.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbvirt/src/device.c

    r43ac0cc r9934f7d  
    4949/** Main IPC call handling from virtual host controller.
    5050 *
    51  * @param iid Caller identification.
    52  * @param icall Initial incoming call.
     51 * @param iid           Caller identification
     52 * @param icall         Initial incoming call
     53 * @param arg           Local argument
    5354 */
    54 static void callback_connection(ipc_callid_t iid, ipc_call_t *icall)
     55static void callback_connection(ipc_callid_t iid, ipc_call_t *icall, void *arg)
    5556{
    5657        assert(DEV != NULL);
     
    99100       
    100101        async_exch_t *exch = async_exchange_begin(hcd_sess);
    101         rc = async_connect_to_me(exch, 0, 0, 0, callback_connection);
     102        rc = async_connect_to_me(exch, 0, 0, 0, callback_connection, NULL);
    102103        async_exchange_end(exch);
    103104       
Note: See TracChangeset for help on using the changeset viewer.