Changeset 4c53333 in mainline for uspace/srv/hid/input/proto/mousedev.c
- Timestamp:
- 2013-07-11T08:21:10Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 64e63ce1
- Parents:
- 80445cf (diff), c8bb1633 (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
-
uspace/srv/hid/input/proto/mousedev.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/input/proto/mousedev.c
r80445cf r4c53333 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.
