Debian Codegraph @

include/usbdev.h

raw
1 /*
2 * This file is part of the flashrom project.
3 *
4 * Copyright (C) 2024 Antonio Vázquez Blanco <[email protected]>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 */
16
17 #ifndef __USBDEV_H__
18 #define __USBDEV_H__ 1
19
20 #include <libusb.h>
21
22 struct libusb_device_handle *usb_dev_get_by_vid_pid_serial(
23 struct libusb_context *usb_ctx, uint16_t vid, uint16_t pid, const char *serialno);
24 struct libusb_device_handle *usb_dev_get_by_vid_pid_number(
25 struct libusb_context *usb_ctx, uint16_t vid, uint16_t pid, unsigned int num);
26
27 #endif /* __USBDEV_H__ */