Changeset 241f1985 in mainline for uspace/lib/c/generic/ns.c


Ignore:
Timestamp:
2019-08-31T10:45:17Z (6 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
102f641
Parents:
f92b315
git-author:
Matthieu Riolo <matthieu.riolo@…> (2019-08-23 22:04:34)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-08-31 10:45:17)
Message:

Correcting failure from previous merge

The commits from Michal Koutný from the branch system-daemon
where built on a old version of Helenos. Because of this
many types and API functions have changed. This commit
upgrades the merge code

File:
1 edited

Legend:

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

    rf92b315 r241f1985  
    5959}
    6060
    61 /*
    62  * XXX ns does not know about session_primary, so we create an extra session for
    63  * actual communicaton
    64  */
    65 static async_sess_t *sess_primary = NULL;
    66 
    6761errno_t service_register(service_t service, iface_t iface,
    6862    async_port_handler_t handler, void *data)
     
    9690        async_set_fallback_port_handler(handler, data);
    9791
    98         async_sess_t *sess = get_session_primary();
    99         if (sess == NULL)
    100                 return EIO;
    101 
    102         async_exch_t *exch = async_exchange_begin(sess);
     92        async_exch_t *exch = ns_exchange_begin();
    10393
    10494        ipc_call_t answer;
     
    10696        errno_t rc = async_connect_to_me(exch, INTERFACE_ANY, service, 0);
    10797
    108         async_exchange_end(exch);
     98        ns_exchange_end(exch);
    10999
    110100        if (rc != EOK) {
     
    138128        async_sess_args_set(sess, iface, arg3, 0);
    139129
    140         return csess;
     130        return sess;
    141131}
    142132
     
    164154errno_t ns_ping(void)
    165155{
    166         async_exch_t *exch = ns_exchange_begin(sess);
     156        async_exch_t *exch = ns_exchange_begin();
    167157        errno_t rc = async_req_0_0(exch, NS_PING);
    168158        ns_exchange_end(exch);
Note: See TracChangeset for help on using the changeset viewer.