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


Ignore:
Timestamp:
2015-08-17T18:54:56Z (9 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
abf2dfd
Parents:
b10460a
Message:

gradually introduce async ports, initial phase

The initial phase is to reimplement the traditional async client connections as an untyped fallback port. This creates the possibility to introduce ports typed by interface type gradually in later changesets.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/async.h

    rb10460a rb688fd8  
    5454typedef void (*async_client_data_dtor_t)(void *);
    5555
    56 /** Client connection handler
     56/** Port connection handler
    5757 *
    5858 * @param callid ID of incoming call or 0 if connection initiated from
     
    6262 *               async_connect_to_me()
    6363 */
    64 typedef void (*async_client_conn_t)(ipc_callid_t, ipc_call_t *, void *);
     64typedef void (*async_port_handler_t)(ipc_callid_t, ipc_call_t *, void *);
    6565
    6666/** Notification handler */
     
    148148
    149149extern fid_t async_new_connection(task_id_t, sysarg_t, ipc_callid_t,
    150     ipc_call_t *, async_client_conn_t, void *);
     150    ipc_call_t *, async_port_handler_t, void *);
    151151
    152152extern void async_usleep(suseconds_t);
     
    160160extern void async_put_client_data_by_id(task_id_t);
    161161
    162 extern void async_set_client_connection(async_client_conn_t);
     162extern void async_set_fallback_port_handler(async_port_handler_t, void *);
    163163extern void async_set_notification_handler_stack_size(size_t);
    164164
     
    348348
    349349extern int async_connect_to_me(async_exch_t *, sysarg_t, sysarg_t, sysarg_t,
    350     async_client_conn_t, void *);
     350    async_port_handler_t, void *);
    351351
    352352extern int async_hangup(async_sess_t *);
Note: See TracChangeset for help on using the changeset viewer.