Changeset f9b2cb4c in mainline for uspace/lib/c/include/async.h


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/include/async.h

    r0dd16778 rf9b2cb4c  
    5959 *
    6060 * @param callid ID of incoming call or 0 if connection initiated from
    61  *               inside using async_connect_to_me()
     61 *               inside using async_create_callback_port()
    6262 * @param call   Incoming call or 0 if connection initiated from inside
    63  * @param arg    Local argument passed from async_new_connection() or
    64  *               async_connect_to_me()
     63 *               using async_create_callback_port()
     64 * @param arg    Local argument.
     65 *
    6566 */
    6667typedef void (*async_port_handler_t)(ipc_callid_t, ipc_call_t *, void *);
     
    8283        EXCHANGE_ATOMIC = 0,
    8384       
     85        /** Exchange management via mutual exclusion
     86         *
     87         * Suitable for any kind of client/server communication,
     88         * but can limit parallelism.
     89         *
     90         */
     91        EXCHANGE_SERIALIZE = 1,
     92       
    8493        /** Exchange management via phone cloning
    8594         *
     
    8998         *
    9099         */
    91         EXCHANGE_PARALLEL = 1,
    92        
    93         /** Exchange management via mutual exclusion
    94          *
    95          * Suitable for any kind of client/server communication,
    96          * but can limit parallelism.
    97          *
    98          */
    99         EXCHANGE_SERIALIZE = 2
     100        EXCHANGE_PARALLEL = 2
    100101} exch_mgmt_t;
    101102
     
    358359extern async_sess_t *async_connect_kbox(task_id_t);
    359360
    360 extern int async_connect_to_me(async_exch_t *, sysarg_t, sysarg_t, sysarg_t,
    361     async_port_handler_t, void *);
     361extern int async_connect_to_me(async_exch_t *, sysarg_t, sysarg_t, sysarg_t);
    362362
    363363extern int async_hangup(async_sess_t *);
Note: See TracChangeset for help on using the changeset viewer.