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

    r76f566d r984a9ba  
    6161        errno_t (*read)(chardev_srv_t *, void *, size_t, size_t *);
    6262        errno_t (*write)(chardev_srv_t *, const void *, size_t, size_t *);
    63         void (*def_handler)(chardev_srv_t *, cap_call_handle_t, ipc_call_t *);
     63        void (*def_handler)(chardev_srv_t *, ipc_call_t *);
    6464};
    6565
    6666extern void chardev_srvs_init(chardev_srvs_t *);
    6767
    68 extern errno_t chardev_conn(cap_call_handle_t, ipc_call_t *, chardev_srvs_t *);
     68extern errno_t chardev_conn(ipc_call_t *, chardev_srvs_t *);
    6969
    7070#endif
Note: See TracChangeset for help on using the changeset viewer.