Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhid/include/usb/hid/hidpath.h

    r9d58539 r5b0cf63  
    3636#define LIBUSB_HIDPATH_H_
    3737
     38#include <errno.h>
    3839#include <usb/hid/hidparser.h>
    3940#include <stdint.h>
     
    4142
    4243
    43 /*---------------------------------------------------------------------------*/
     44
    4445/*
    4546 * Flags of usage paths comparison modes.
     
    7374#define USB_HID_PATH_COMPARE_ANYWHERE           8
    7475
    75 /*----------------------------------------------------------------------------*/
     76
    7677/**
    7778 * Item of usage path structure. Last item of linked list describes one item
     
    8283        /** Usage page of report item. Zero when usage page can be changed. */
    8384        uint32_t usage_page;
    84         /** Usage of report item. Zero when usage can be changed. */   
     85        /** Usage of report item. Zero when usage can be changed. */
    8586        uint32_t usage;
    8687
     
    9394
    9495
    95 /*---------------------------------------------------------------------------*/
     96
    9697/**
    9798 * USB HID usage path structure.
     
    112113} usb_hid_report_path_t;
    113114
    114 /*---------------------------------------------------------------------------*/
     115
    115116usb_hid_report_path_t *usb_hid_report_path(void);
    116117
    117118void usb_hid_report_path_free(usb_hid_report_path_t *path);
    118119
    119 int usb_hid_report_path_set_report_id(usb_hid_report_path_t *usage_path,
    120                 uint8_t report_id);
     120errno_t usb_hid_report_path_set_report_id(usb_hid_report_path_t *usage_path,
     121    uint8_t report_id);
    121122
    122 int usb_hid_report_path_append_item(usb_hid_report_path_t *usage_path,
    123                 int32_t usage_page, int32_t usage);
     123errno_t usb_hid_report_path_append_item(usb_hid_report_path_t *usage_path,
     124    int32_t usage_page, int32_t usage);
    124125
    125126void usb_hid_report_remove_last_item(usb_hid_report_path_t *usage_path);
     
    127128void usb_hid_report_null_last_item(usb_hid_report_path_t *usage_path);
    128129
    129 void usb_hid_report_set_last_item(usb_hid_report_path_t *usage_path, 
    130                 int32_t tag, int32_t data);
     130void usb_hid_report_set_last_item(usb_hid_report_path_t *usage_path,
     131    int32_t tag, int32_t data);
    131132
    132133int usb_hid_report_compare_usage_path(usb_hid_report_path_t *report_path,
    133                 usb_hid_report_path_t *path, int flags);
     134    usb_hid_report_path_t *path, int flags);
    134135
    135136usb_hid_report_path_t *usb_hid_report_path_clone(
    136                 usb_hid_report_path_t *usage_path);
     137    usb_hid_report_path_t *usage_path);
    137138
    138139void usb_hid_print_usage_path(usb_hid_report_path_t *path);
Note: See TracChangeset for help on using the changeset viewer.