Changeset 3c22f70 in mainline for uspace/srv/hid/console/console.c


Ignore:
Timestamp:
2011-01-24T00:14:13Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8c9b742
Parents:
11bb813
Message:

Pass client task hash into async_new_connection().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/console/console.c

    r11bb813 r3c22f70  
    726726       
    727727        /* NB: The callback connection is slotted for removal */
     728        sysarg_t taskhash;
    728729        sysarg_t phonehash;
    729         if (ipc_connect_to_me(kbd_phone, SERVICE_CONSOLE, 0, 0, NULL,
     730        if (ipc_connect_to_me(kbd_phone, SERVICE_CONSOLE, 0, 0, &taskhash,
    730731            &phonehash) != 0) {
    731732                printf(NAME ": Failed to create callback from input device\n");
     
    733734        }
    734735       
    735         async_new_connection(phonehash, 0, NULL, keyboard_events);
     736        async_new_connection(taskhash, phonehash, 0, NULL, keyboard_events);
    736737       
    737738        /* Connect to mouse device */
     
    750751        }
    751752       
    752         if (ipc_connect_to_me(mouse_phone, SERVICE_CONSOLE, 0, 0, NULL,
     753        if (ipc_connect_to_me(mouse_phone, SERVICE_CONSOLE, 0, 0, &taskhash,
    753754            &phonehash) != 0) {
    754755                printf(NAME ": Failed to create callback from mouse device\n");
     
    757758        }
    758759       
    759         async_new_connection(phonehash, 0, NULL, mouse_events);
     760        async_new_connection(taskhash, phonehash, 0, NULL, mouse_events);
    760761skip_mouse:
    761762       
Note: See TracChangeset for help on using the changeset viewer.