Changeset 566992e1 in mainline for uspace/lib/c/generic/ns.c


Ignore:
Timestamp:
2015-08-22T05:01:24Z (9 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d9e68d0
Parents:
57dea62
Message:

extremely rudimentary support for interfaces and ports
(does not do much, but it is backward and forward compatible)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/ns.c

    r57dea62 r566992e1  
    4040#include "private/ns.h"
    4141
    42 int service_register(sysarg_t service)
     42int service_register(service_t service)
    4343{
    4444        async_exch_t *exch = async_exchange_begin(session_ns);
     
    119119}
    120120
     121async_sess_t *service_connect_blocking_iface_extended(service_t service,
     122    iface_t iface, sysarg_t arg3)
     123{
     124        async_exch_t *exch = async_exchange_begin(session_ns);
     125        async_sess_t *sess =
     126            async_connect_me_to_blocking_iface(exch, iface, service, arg3);
     127        async_exchange_end(exch);
     128       
     129        if (!sess)
     130                return NULL;
     131       
     132        /*
     133         * FIXME Ugly hack to work around limitation of implementing
     134         * parallel exchanges using multiple connections. Shift out
     135         * first argument for non-initial connections.
     136         */
     137        async_sess_args_set(sess, iface, arg3, 0);
     138       
     139        return sess;
     140}
     141
    121142async_sess_t *service_connect_blocking(exch_mgmt_t mgmt, service_t service,
    122143    sysarg_t arg3)
    123144{
    124145        async_exch_t *exch = async_exchange_begin(session_ns);
    125         if (!exch)
    126                 return NULL;
    127146        async_sess_t *sess =
    128147            async_connect_me_to_blocking(mgmt, exch, 0, service, arg3);
Note: See TracChangeset for help on using the changeset viewer.