Ignore:
File:
1 edited

Legend:

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

    r5b0cf63 r9d58539  
    3636#define LIBUSB_HIDPATH_H_
    3737
    38 #include <errno.h>
    3938#include <usb/hid/hidparser.h>
    4039#include <stdint.h>
     
    4241
    4342
    44 
     43/*---------------------------------------------------------------------------*/
    4544/*
    4645 * Flags of usage paths comparison modes.
     
    7473#define USB_HID_PATH_COMPARE_ANYWHERE           8
    7574
    76 
     75/*----------------------------------------------------------------------------*/
    7776/**
    7877 * Item of usage path structure. Last item of linked list describes one item
     
    8382        /** Usage page of report item. Zero when usage page can be changed. */
    8483        uint32_t usage_page;
    85         /** Usage of report item. Zero when usage can be changed. */
     84        /** Usage of report item. Zero when usage can be changed. */   
    8685        uint32_t usage;
    8786
     
    9493
    9594
    96 
     95/*---------------------------------------------------------------------------*/
    9796/**
    9897 * USB HID usage path structure.
     
    113112} usb_hid_report_path_t;
    114113
    115 
     114/*---------------------------------------------------------------------------*/
    116115usb_hid_report_path_t *usb_hid_report_path(void);
    117116
    118117void usb_hid_report_path_free(usb_hid_report_path_t *path);
    119118
    120 errno_t usb_hid_report_path_set_report_id(usb_hid_report_path_t *usage_path,
    121     uint8_t report_id);
     119int usb_hid_report_path_set_report_id(usb_hid_report_path_t *usage_path,
     120                uint8_t report_id);
    122121
    123 errno_t usb_hid_report_path_append_item(usb_hid_report_path_t *usage_path,
    124     int32_t usage_page, int32_t usage);
     122int usb_hid_report_path_append_item(usb_hid_report_path_t *usage_path,
     123                int32_t usage_page, int32_t usage);
    125124
    126125void usb_hid_report_remove_last_item(usb_hid_report_path_t *usage_path);
     
    128127void usb_hid_report_null_last_item(usb_hid_report_path_t *usage_path);
    129128
    130 void usb_hid_report_set_last_item(usb_hid_report_path_t *usage_path,
    131     int32_t tag, int32_t data);
     129void usb_hid_report_set_last_item(usb_hid_report_path_t *usage_path, 
     130                int32_t tag, int32_t data);
    132131
    133132int usb_hid_report_compare_usage_path(usb_hid_report_path_t *report_path,
    134     usb_hid_report_path_t *path, int flags);
     133                usb_hid_report_path_t *path, int flags);
    135134
    136135usb_hid_report_path_t *usb_hid_report_path_clone(
    137     usb_hid_report_path_t *usage_path);
     136                usb_hid_report_path_t *usage_path);
    138137
    139138void usb_hid_print_usage_path(usb_hid_report_path_t *path);
Note: See TracChangeset for help on using the changeset viewer.