Changeset 9934f7d in mainline for uspace/srv/hid/char_mouse/chardev.c


Ignore:
Timestamp:
2011-06-13T19:53:48Z (13 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a07a454
Parents:
43ac0cc
Message:

Add extra argument to async connection handlers that can be used for passing
information from async_connect_to_me() to the handler.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/char_mouse/chardev.c

    r43ac0cc r9934f7d  
    4545#include <mouse_port.h>
    4646
    47 static void chardev_events(ipc_callid_t iid, ipc_call_t *icall);
     47static void chardev_events(ipc_callid_t iid, ipc_call_t *icall, void *arg);
    4848
    4949static int dev_phone;
     
    6969       
    7070        /* NB: The callback connection is slotted for removal */
    71         if (async_obsolete_connect_to_me(dev_phone, 0, 0, 0, chardev_events) != 0) {
     71        if (async_obsolete_connect_to_me(dev_phone, 0, 0, 0, chardev_events,
     72            NULL) != 0) {
    7273                printf(NAME ": Failed to create callback from device\n");
    7374                return false;
     
    9091}
    9192
    92 static void chardev_events(ipc_callid_t iid, ipc_call_t *icall)
     93static void chardev_events(ipc_callid_t iid, ipc_call_t *icall, void *arg)
    9394{
    9495        /* Ignore parameters, the connection is already opened */
Note: See TracChangeset for help on using the changeset viewer.