Changeset f9b2cb4c in mainline for uspace/srv/hid/input/ctl/kbdev.c


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/ctl/kbdev.c

    r0dd16778 rf9b2cb4c  
    9494static int kbdev_ctl_init(kbd_dev_t *kdev)
    9595{
    96         async_sess_t *sess = loc_service_connect(EXCHANGE_SERIALIZE,
    97             kdev->svc_id, 0);
     96        async_sess_t *sess = loc_service_connect(kdev->svc_id,
     97            INTERFACE_DDF, 0);
    9898        if (sess == NULL) {
    9999                printf("%s: Failed starting session with '%s.'\n", NAME,
     
    120120        }
    121121       
    122         int rc = async_connect_to_me(exch, 0, 0, 0, kbdev_callback_conn, kbdev);
     122        port_id_t port;
     123        int rc = async_create_callback_port(exch, INTERFACE_KBD_CB, 0, 0,
     124            kbdev_callback_conn, kbdev, &port);
     125       
    123126        if (rc != EOK) {
    124127                printf("%s: Failed creating callback connection from '%s'.\n",
Note: See TracChangeset for help on using the changeset viewer.