Changeset 58563585 in mainline for uspace/app/usbinfo/usbinfo.h


Ignore:
Timestamp:
2016-08-31T11:15:39Z (8 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
10cb47e
Parents:
7a67416
Message:

code review and cstyle cleanup (no change in functionality)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/usbinfo/usbinfo.h

    r7a67416 r58563585  
    4444typedef struct {
    4545        int opt;
    46         void (*action)(usb_device_t *usb_dev);
     46        void (*action)(usb_device_t *);
    4747        bool active;
    4848} usbinfo_action_t;
     
    5151#define NAME "usbinfo"
    5252
    53 void dump_buffer(const char *, size_t, const uint8_t *, size_t);
    54 const char *get_indent(size_t);
    55 void dump_match_ids(match_id_list_t *, const char *);
    56 void dump_usb_descriptor(uint8_t *, size_t);
    57 void dump_descriptor_tree(uint8_t *, size_t);
     53extern void dump_buffer(const char *, size_t, const uint8_t *, size_t);
     54extern const char *get_indent(size_t);
     55extern void dump_match_ids(match_id_list_t *, const char *);
     56extern void dump_usb_descriptor(uint8_t *, size_t);
     57extern void dump_descriptor_tree(uint8_t *, size_t);
    5858
    5959static inline void internal_error(int err)
     
    6363
    6464typedef void (*dump_descriptor_in_tree_t)(const uint8_t *, size_t, void *);
    65 void browse_descriptor_tree(uint8_t *, size_t, usb_dp_descriptor_nesting_t *,
    66     dump_descriptor_in_tree_t, size_t, void *);
    6765
    68 void list(void);
     66extern void browse_descriptor_tree(uint8_t *, size_t,
     67    usb_dp_descriptor_nesting_t *, dump_descriptor_in_tree_t, size_t, void *);
    6968
    70 void dump_short_device_identification(usb_device_t *);
    71 void dump_device_match_ids(usb_device_t *);
    72 void dump_descriptor_tree_brief(usb_device_t *);
    73 void dump_descriptor_tree_full(usb_device_t *);
    74 void dump_strings(usb_device_t *);
    75 void dump_status(usb_device_t *);
    76 void dump_hidreport_raw(usb_device_t *);
    77 void dump_hidreport_usages(usb_device_t *);
     69extern void list(void);
     70
     71extern void dump_short_device_identification(usb_device_t *);
     72extern void dump_device_match_ids(usb_device_t *);
     73extern void dump_descriptor_tree_brief(usb_device_t *);
     74extern void dump_descriptor_tree_full(usb_device_t *);
     75extern void dump_strings(usb_device_t *);
     76extern void dump_status(usb_device_t *);
     77extern void dump_hidreport_raw(usb_device_t *);
     78extern void dump_hidreport_usages(usb_device_t *);
    7879
    7980#endif
Note: See TracChangeset for help on using the changeset viewer.