Changeset 9b1baac in mainline for uspace/lib/c/generic/async/server.c


Ignore:
Timestamp:
2018-07-18T08:35:42Z (6 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0b05082
Parents:
edc64c0
Message:

ns: register service interfaces individually

Each service interface is now registered individually with the naming
service. This adds a degree of type safety, potentially allows the
individual interfaces to be implemented by independent tasks and moves
the code slightly closer to the full-fledged ports design.

Broker services (e.g. the location service) can still register a
fallback port for receiving connections to all interface types
explicitly using service_register_broker().

File:
1 edited

Legend:

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

    redc64c0 r9b1baac  
    13171317 * Ask through phone for a new connection to some service.
    13181318 *
    1319  * @param exch Exchange for sending the message.
    1320  * @param arg1 User defined argument.
    1321  * @param arg2 User defined argument.
    1322  * @param arg3 User defined argument.
     1319 * @param exch  Exchange for sending the message.
     1320 * @param iface Callback interface.
     1321 * @param arg2  User defined argument.
     1322 * @param arg3  User defined argument.
    13231323 *
    13241324 * @return Zero on success or an error code.
    13251325 *
    13261326 */
    1327 errno_t async_connect_to_me(async_exch_t *exch, sysarg_t arg1, sysarg_t arg2,
     1327errno_t async_connect_to_me(async_exch_t *exch, iface_t iface, sysarg_t arg2,
    13281328    sysarg_t arg3)
    13291329{
     
    13321332
    13331333        ipc_call_t answer;
    1334         aid_t req = async_send_3(exch, IPC_M_CONNECT_TO_ME, arg1, arg2, arg3,
     1334        aid_t req = async_send_3(exch, IPC_M_CONNECT_TO_ME, iface, arg2, arg3,
    13351335            &answer);
    13361336
Note: See TracChangeset for help on using the changeset viewer.