Changeset 6ff23ff in mainline for uspace/lib/usbhid/src/hidpath.c
- Timestamp:
- 2018-05-17T13:46:56Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4f8772d4
- Parents:
- 7c3fb9b
- git-author:
- Jiri Svoboda <jiri@…> (2018-05-16 18:44:36)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-05-17 13:46:56)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhid/src/hidpath.c
r7c3fb9b r6ff23ff 213 213 214 214 switch (flags) { 215 /* Path is somewhere in report_path */216 215 case USB_HID_PATH_COMPARE_ANYWHERE: 216 /* 217 * Path is somewhere in report_path 218 */ 217 219 if (path->depth != 1) { 218 220 return 1; … … 239 241 240 242 return 1; 241 break; 242 243 /* The paths must be identical */ 243 244 244 case USB_HID_PATH_COMPARE_STRICT: 245 /* 246 * The paths must be identical 247 */ 245 248 if (report_path->depth != path->depth) { 246 249 return 1; … … 248 251 /* Fallthrough */ 249 252 250 /* Path is prefix of the report_path */251 253 case USB_HID_PATH_COMPARE_BEGIN: 254 /* 255 * Path is prefix of the report_path 256 */ 252 257 report_link = report_path->items.head.next; 253 258 path_link = path->items.head.next; … … 283 288 break; 284 289 285 /* Path is suffix of report_path */286 290 case USB_HID_PATH_COMPARE_END: 291 /* 292 * Path is suffix of report_path 293 */ 287 294 report_link = report_path->items.head.prev; 288 295 path_link = path->items.head.prev;
Note:
See TracChangeset
for help on using the changeset viewer.