Changeset b6a088f in mainline for uspace/srv/hid/input/input.c
- Timestamp:
- 2012-08-16T19:14:03Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c9d011e4
- Parents:
- 9f5cf68
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/input/input.c
r9f5cf68 rb6a088f 54 54 #include <io/keycode.h> 55 55 #include <loc.h> 56 #include <input.h>57 #include <kbd.h>58 #include <kbd_port.h>59 #include <kbd_ctl.h>60 #include <mouse_proto.h>61 #include <layout.h>62 #include <mouse.h>56 #include "layout.h" 57 #include "kbd.h" 58 #include "kbd_port.h" 59 #include "kbd_ctl.h" 60 #include "mouse.h" 61 #include "mouse_proto.h" 62 #include "input.h" 63 63 64 64 #define NUM_LAYOUTS 3 … … 646 646 } 647 647 648 static void usage(char *name) 649 { 650 printf("Usage: %s <service_name>\n", name); 651 } 652 648 653 int main(int argc, char **argv) 649 654 { 655 if (argc < 2) { 656 usage(argv[0]); 657 return 1; 658 } 659 650 660 printf("%s: HelenOS input service\n", NAME); 651 661 … … 682 692 683 693 service_id_t service_id; 684 rc = loc_service_register( kbd, &service_id);685 if (rc != EOK) { 686 printf("%s: Unable to register service %s\n", NAME, kbd);694 rc = loc_service_register(argv[1], &service_id); 695 if (rc != EOK) { 696 printf("%s: Unable to register service %s\n", NAME, argv[1]); 687 697 return rc; 688 698 } … … 692 702 693 703 printf("%s: Accepting connections\n", NAME); 704 task_retval(0); 694 705 async_manager(); 695 706
Note:
See TracChangeset
for help on using the changeset viewer.