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