Changeset 984a9ba in mainline for uspace/lib/c/generic/async/ports.c


Ignore:
Timestamp:
2018-07-05T09:34:09Z (6 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
63d46341
Parents:
76f566d
Message:

do not expose the call capability handler from the async framework

Keep the call capability handler encapsulated within the async framework
and do not expose it explicitly via its API. Use the pointer to
ipc_call_t as the sole object identifying an IPC call in the code that
uses the async framework.

This plugs a major leak in the abstraction and also simplifies both the
async framework (slightly) and all IPC servers.

File:
1 edited

Legend:

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

    r76f566d r984a9ba  
    8585 * not have a specific handler defined.
    8686 *
    87  * @param chandle  Handle of the incoming call.
    88  * @param call     Data of the incoming call.
    89  * @param arg      Local argument
     87 * @param call Data of the incoming call.
     88 * @param arg  Local argument
    9089 *
    9190 */
    92 static void default_fallback_port_handler(cap_call_handle_t chandle,
    93     ipc_call_t *call, void *arg)
    94 {
    95         ipc_answer_0(chandle, ENOENT);
     91static void default_fallback_port_handler(ipc_call_t *call, void *arg)
     92{
     93        async_answer_0(call, ENOENT);
    9694}
    9795
Note: See TracChangeset for help on using the changeset viewer.