Changes in uspace/srv/hid/input/proto/mousedev.c [b6a088f:edb3cf2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/input/proto/mousedev.c
rb6a088f redb3cf2 43 43 #include <errno.h> 44 44 #include <ipc/mouseev.h> 45 #include <input.h> 45 46 #include <loc.h> 47 #include <mouse.h> 48 #include <mouse_port.h> 49 #include <mouse_proto.h> 46 50 #include <sys/typefmt.h> 47 #include "../mouse.h"48 #include "../mouse_port.h"49 #include "../mouse_proto.h"50 #include "../input.h"51 51 52 52 /** Mousedev softstate */ … … 96 96 retval = EOK; 97 97 break; 98 case MOUSEEV_ABS_MOVE_EVENT:99 mouse_push_event_abs_move(mousedev->mouse_dev,100 IPC_GET_ARG1(call), IPC_GET_ARG2(call),101 IPC_GET_ARG3(call), IPC_GET_ARG4(call));102 retval = EOK;103 break;104 98 case MOUSEEV_BUTTON_EVENT: 105 99 mouse_push_event_button(mousedev->mouse_dev, … … 123 117 printf("%s: Failed starting session with '%s'\n", NAME, 124 118 mdev->svc_name); 125 return ENOENT;119 return -1; 126 120 } 127 121 … … 131 125 NAME, mdev->svc_name); 132 126 async_hangup(sess); 133 return ENOMEM;127 return -1; 134 128 } 135 129 … … 140 134 mousedev_destroy(mousedev); 141 135 async_hangup(sess); 142 return ENOENT;136 return -1; 143 137 } 144 138 … … 151 145 NAME, mdev->svc_name); 152 146 mousedev_destroy(mousedev); 153 return rc;147 return -1; 154 148 } 155 149 156 return EOK;150 return 0; 157 151 } 158 152
Note:
See TracChangeset
for help on using the changeset viewer.