forked from gregkh/lsusb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlsusb.h
32 lines (24 loc) · 961 Bytes
/
lsusb.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef _LSUSB_H
#define _LSUSB_H
/* From the kernel file, include/linux/stringify.h */
#define __stringify_1(x...) #x
#define __stringify(x...) __stringify_1(x)
/* Functions in the core */
void *robust_malloc(size_t size);
char *get_dev_string(struct udev_device *device, const char *name);
extern struct udev *udev;
/* device.c */
void create_usb_device(struct udev_device *device);
void free_usb_devices(void);
void sort_usb_devices(void);
void print_usb_devices(void);
/* interface.c */
void create_usb_interface(struct udev_device *device, struct usb_device *usb_device);
void free_usb_interface(struct usb_interface *usb_intf);
/* endpoint.c */
struct usb_endpoint *create_usb_endpoint(struct udev_device *device,
const char *endpoint_name);
void free_usb_endpoint(struct usb_endpoint *usb_endpoint);
/* raw.c */
void read_raw_usb_descriptor(struct udev_device *device, struct usb_device *usb_device);
#endif /* define _LSUSB_H */