Ignore:
File:
1 edited

Legend:

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

    r64d2b10 r9476f4f  
    2929
    3030#include <str.h>
     31#include <ipc/ipc.h>
    3132#include <ipc/services.h>
    32 #include <ipc/ns.h>
    3333#include <ipc/devmap.h>
    3434#include <devmap.h>
     
    5050               
    5151                if (flags & IPC_FLAG_BLOCKING)
    52                         devmap_phone_driver = service_connect_blocking(SERVICE_DEVMAP,
    53                             DEVMAP_DRIVER, 0);
     52                        devmap_phone_driver = ipc_connect_me_to_blocking(PHONE_NS,
     53                            SERVICE_DEVMAP, DEVMAP_DRIVER, 0);
    5454                else
    55                         devmap_phone_driver = service_connect(SERVICE_DEVMAP,
    56                             DEVMAP_DRIVER, 0);
     55                        devmap_phone_driver = ipc_connect_me_to(PHONE_NS,
     56                            SERVICE_DEVMAP, DEVMAP_DRIVER, 0);
    5757               
    5858                return devmap_phone_driver;
     
    6262               
    6363                if (flags & IPC_FLAG_BLOCKING)
    64                         devmap_phone_client = service_connect_blocking(SERVICE_DEVMAP,
    65                             DEVMAP_CLIENT, 0);
     64                        devmap_phone_client = ipc_connect_me_to_blocking(PHONE_NS,
     65                            SERVICE_DEVMAP, DEVMAP_CLIENT, 0);
    6666                else
    67                         devmap_phone_client = service_connect(SERVICE_DEVMAP,
    68                             DEVMAP_CLIENT, 0);
     67                        devmap_phone_client = ipc_connect_me_to(PHONE_NS,
     68                            SERVICE_DEVMAP, DEVMAP_CLIENT, 0);
    6969               
    7070                return devmap_phone_client;
     
    7979        case DEVMAP_DRIVER:
    8080                if (devmap_phone_driver >= 0) {
    81                         async_hangup(devmap_phone_driver);
     81                        ipc_hangup(devmap_phone_driver);
    8282                        devmap_phone_driver = -1;
    8383                }
     
    8585        case DEVMAP_CLIENT:
    8686                if (devmap_phone_client >= 0) {
    87                         async_hangup(devmap_phone_client);
     87                        ipc_hangup(devmap_phone_client);
    8888                        devmap_phone_client = -1;
    8989                }
     
    116116        async_set_client_connection(conn);
    117117       
    118         async_connect_to_me(phone, 0, 0, 0, NULL);
     118        sysarg_t callback_phonehash;
     119        ipc_connect_to_me(phone, 0, 0, 0, &callback_phonehash);
    119120        async_wait_for(req, &retval);
    120121       
Note: See TracChangeset for help on using the changeset viewer.