Ignore:
Timestamp:
2015-08-23T12:50:23Z (9 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9ef495f
Parents:
0dd16778
Message:

unify interface API

  • introduce new interfaces
  • unify location service clients to always expect service ID as the second argument
  • remove obsolete methods that take explicit exchange management arguments (first phase)
  • use interfaces in device drivers, devman, location service, logger, inet
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/input/proto/mousedev.c

    r0dd16778 rf9b2cb4c  
    118118static int mousedev_proto_init(mouse_dev_t *mdev)
    119119{
    120         async_sess_t *sess = loc_service_connect(EXCHANGE_SERIALIZE,
    121             mdev->svc_id, 0);
     120        async_sess_t *sess = loc_service_connect(mdev->svc_id, INTERFACE_DDF, 0);
    122121        if (sess == NULL) {
    123122                printf("%s: Failed starting session with '%s'\n", NAME,
     
    143142        }
    144143       
    145         int rc = async_connect_to_me(exch, 0, 0, 0, mousedev_callback_conn, mousedev);
     144        port_id_t port;
     145        int rc = async_create_callback_port(exch, INTERFACE_MOUSE_CB, 0, 0,
     146            mousedev_callback_conn, mousedev, &port);
     147       
    146148        async_exchange_end(exch);
    147149        async_hangup(sess);
Note: See TracChangeset for help on using the changeset viewer.