Changeset 2b96463 in mainline for uspace/srv/hid/console/console.c
- Timestamp:
- 2011-01-28T15:15:11Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3ee48f2, 7a51d75
- Parents:
- ef8d655 (diff), ae0300b5 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/console/console.c
ref8d655 r2b96463 727 727 /* NB: The callback connection is slotted for removal */ 728 728 sysarg_t phonehash; 729 sysarg_t taskhash; 729 730 int rc = async_req_3_5(phone, IPC_M_CONNECT_TO_ME, SERVICE_CONSOLE, 730 0, 0, NULL, NULL, NULL, NULL, &phonehash);731 0, 0, NULL, NULL, NULL, &taskhash, &phonehash); 731 732 if (rc != EOK) { 732 733 printf(NAME ": Failed to create callback from input device\n"); … … 734 735 } 735 736 736 async_new_connection( phonehash, 0, NULL, keyboard_events);737 async_new_connection(taskhash, phonehash, 0, NULL, keyboard_events); 737 738 738 739 printf(NAME ": we got a hit (new keyboard \"%s\").\n", path); … … 784 785 /* NB: The callback connection is slotted for removal */ 785 786 sysarg_t phonehash; 787 sysarg_t taskhash; 786 788 int rc = async_req_3_5(phone, IPC_M_CONNECT_TO_ME, SERVICE_CONSOLE, 787 0, 0, NULL, NULL, NULL, NULL, &phonehash);789 0, 0, NULL, NULL, NULL, &taskhash, &phonehash); 788 790 if (rc != EOK) { 789 791 printf(NAME ": Failed to create callback from input device\n"); … … 791 793 } 792 794 793 async_new_connection( phonehash, 0, NULL, keyboard_events);795 async_new_connection(taskhash, phonehash, 0, NULL, keyboard_events); 794 796 795 797 printf(NAME ": we got a hit (new keyboard \"/dev/%s\").\n", … … 862 864 } 863 865 866 sysarg_t taskhash; 864 867 sysarg_t phonehash; 865 if (ipc_connect_to_me(mouse_phone, SERVICE_CONSOLE, 0, 0, &phonehash) != 0) { 868 if (ipc_connect_to_me(mouse_phone, SERVICE_CONSOLE, 0, 0, &taskhash, 869 &phonehash) != 0) { 866 870 printf(NAME ": Failed to create callback from mouse device\n"); 867 871 mouse_phone = -1; … … 869 873 } 870 874 871 async_new_connection( phonehash, 0, NULL, mouse_events);875 async_new_connection(taskhash, phonehash, 0, NULL, mouse_events); 872 876 skip_mouse: 873 877
Note:
See TracChangeset
for help on using the changeset viewer.