Changeset 2133e02 in mainline for uspace/lib/c/generic/loc.c


Ignore:
Timestamp:
2015-08-18T20:14:05Z (9 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1a522e5
Parents:
84dc30c
Message:

canonically reserve the first argument of IPC_M_CONNECT_ME_TO for interface type
naming service: service handle in IPC_M_CONNECT_ME_TO needs to be shifted to the second argument
service connections that use the untyped (fallback) port can only provide one additional argument now

File:
1 edited

Legend:

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

    r84dc30c r2133e02  
    147147                        if (loc_supp_block_sess == NULL)
    148148                                loc_supp_block_sess =
    149                                     service_connect_blocking(EXCHANGE_SERIALIZE,
    150                                     SERVICE_LOC, LOC_PORT_SUPPLIER, 0);
     149                                    service_connect_blocking_iface(EXCHANGE_SERIALIZE,
     150                                    LOC_PORT_SUPPLIER, SERVICE_LOC, 0);
    151151                }
    152152               
     
    166166                        if (loc_cons_block_sess == NULL)
    167167                                loc_cons_block_sess =
    168                                     service_connect_blocking(EXCHANGE_SERIALIZE,
    169                                     SERVICE_LOC, LOC_PORT_CONSUMER, 0);
     168                                    service_connect_blocking_iface(EXCHANGE_SERIALIZE,
     169                                    LOC_PORT_CONSUMER, SERVICE_LOC, 0);
    170170                }
    171171               
     
    196196                if (loc_supplier_sess == NULL)
    197197                        loc_supplier_sess =
    198                             service_connect(EXCHANGE_SERIALIZE, SERVICE_LOC,
    199                             LOC_PORT_SUPPLIER, 0);
     198                            service_connect_iface(EXCHANGE_SERIALIZE, LOC_PORT_SUPPLIER,
     199                            SERVICE_LOC, 0);
    200200               
    201201                fibril_mutex_unlock(&loc_supplier_mutex);
     
    210210                if (loc_consumer_sess == NULL)
    211211                        loc_consumer_sess =
    212                             service_connect(EXCHANGE_SERIALIZE, SERVICE_LOC,
    213                             LOC_PORT_CONSUMER, 0);
     212                            service_connect_iface(EXCHANGE_SERIALIZE, LOC_PORT_CONSUMER,
     213                            SERVICE_LOC, 0);
    214214               
    215215                fibril_mutex_unlock(&loc_consumer_mutex);
     
    575575       
    576576        if (flags & IPC_FLAG_BLOCKING)
    577                 sess = service_connect_blocking(mgmt, SERVICE_LOC,
    578                     LOC_CONNECT_TO_SERVICE, handle);
     577                sess = service_connect_blocking_iface(mgmt, LOC_CONNECT_TO_SERVICE,
     578                    SERVICE_LOC, handle);
    579579        else
    580                 sess = service_connect(mgmt, SERVICE_LOC,
    581                     LOC_CONNECT_TO_SERVICE, handle);
     580                sess = service_connect_iface(mgmt, LOC_CONNECT_TO_SERVICE,
     581                    SERVICE_LOC, handle);
    582582       
    583583        return sess;
Note: See TracChangeset for help on using the changeset viewer.