Changeset 9934f7d in mainline for uspace/srv/hid/adb_mouse/adb_dev.c


Ignore:
Timestamp:
2011-06-13T19:53:48Z (14 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/adb_mouse/adb_dev.c

    r43ac0cc r9934f7d  
    4848#include "adb_dev.h"
    4949
    50 static void adb_dev_events(ipc_callid_t iid, ipc_call_t *icall);
     50static void adb_dev_events(ipc_callid_t iid, ipc_call_t *icall, void *arg);
    5151
    5252int adb_dev_init(void)
     
    6868       
    6969        /* NB: The callback connection is slotted for removal */
    70         if (async_obsolete_connect_to_me(dev_phone, 0, 0, 0, adb_dev_events) != 0) {
     70        if (async_obsolete_connect_to_me(dev_phone, 0, 0, 0, adb_dev_events,
     71            NULL) != 0) {
    7172                printf(NAME ": Failed to create callback from device\n");
    7273                return false;
     
    7677}
    7778
    78 static void adb_dev_events(ipc_callid_t iid, ipc_call_t *icall)
     79static void adb_dev_events(ipc_callid_t iid, ipc_call_t *icall, void *arg)
    7980{
    8081        /* Ignore parameters, the connection is already opened */
Note: See TracChangeset for help on using the changeset viewer.