Changeset f9b2cb4c in mainline for uspace/lib/c/generic/async.c


Ignore:
Timestamp:
2015-08-23T12:50:23Z (9 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9ef495f
Parents:
0dd16778
Message:

unify interface API

  • introduce new interfaces
  • unify location service clients to always expect service ID as the second argument
  • remove obsolete methods that take explicit exchange management arguments (first phase)
  • use interfaces in device drivers, devman, location service, logger, inet
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/async.c

    r0dd16778 rf9b2cb4c  
    21052105 * @param arg2            User defined argument.
    21062106 * @param arg3            User defined argument.
    2107  * @param client_receiver Connection handing routine.
    21082107 *
    21092108 * @return Zero on success or a negative error code.
     
    21112110 */
    21122111int async_connect_to_me(async_exch_t *exch, sysarg_t arg1, sysarg_t arg2,
    2113     sysarg_t arg3, async_port_handler_t client_receiver, void *data)
     2112    sysarg_t arg3)
    21142113{
    21152114        if (exch == NULL)
    21162115                return ENOENT;
    21172116       
    2118         sysarg_t phone_hash;
     2117        ipc_call_t answer;
     2118        aid_t req = async_send_3(exch, IPC_M_CONNECT_TO_ME, arg1, arg2, arg3,
     2119            &answer);
     2120       
    21192121        sysarg_t rc;
    2120 
    2121         aid_t req;
    2122         ipc_call_t answer;
    2123         req = async_send_3(exch, IPC_M_CONNECT_TO_ME, arg1, arg2, arg3,
    2124             &answer);
    21252122        async_wait_for(req, &rc);
    21262123        if (rc != EOK)
    21272124                return (int) rc;
    2128 
    2129         phone_hash = IPC_GET_ARG5(answer);
    2130 
    2131         if (client_receiver != NULL)
    2132                 async_new_connection(answer.in_task_id, phone_hash, 0, NULL,
    2133                     client_receiver, data);
    21342125       
    21352126        return EOK;
     
    22612252        int phone = async_connect_me_to_internal(exch->phone, arg1, arg2, arg3,
    22622253            0);
    2263        
    22642254        if (phone < 0) {
    22652255                errno = phone;
Note: See TracChangeset for help on using the changeset viewer.