Changeset 2133e02 in mainline for uspace/srv/ns/ns.c


Ignore:
Timestamp:
2015-08-18T20:14:05Z (10 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/srv/ns/ns.c

    r84dc30c r2133e02  
    3939#include <ipc/ns.h>
    4040#include <ipc/services.h>
     41#include <abi/ipc/interfaces.h>
    4142#include <stdio.h>
    4243#include <errno.h>
     
    7475                sysarg_t retval;
    7576               
     77                iface_t iface;
    7678                service_t service;
    7779                sysarg_t phone;
     
    8284                        break;
    8385                case IPC_M_CONNECT_TO_ME:
    84                         service = IPC_GET_ARG1(call);
     86                        iface = IPC_GET_ARG1(call);
     87                        service = IPC_GET_ARG2(call);
    8588                        phone = IPC_GET_ARG5(call);
     89                       
     90                        (void) iface;
    8691                       
    8792                        /*
     
    96101                        break;
    97102                case IPC_M_CONNECT_ME_TO:
    98                         service = IPC_GET_ARG1(call);
     103                        iface = IPC_GET_ARG1(call);
     104                        service = IPC_GET_ARG2(call);
     105                       
     106                        (void) iface;
    99107                       
    100108                        /*
Note: See TracChangeset for help on using the changeset viewer.