/
githubmirror
/
flashrom
Обзор
Документация
Войти
/
githubmirror
/
flashrom
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v1.5.1
include/usbdev.h
27 строк
1019 B
Antonio Vázquez Blanco
Extract usbdev declarations to a separate header.
08 ноя 2024, 15:06
08 ноя 2024, 15:06
69a03a3
Код
Авторство
О чём код?
/* * This file is part of the flashrom project. * * Copyright (C) 2024 Antonio Vázquez Blanco <antoniovazquezblanco@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #ifndef __USBDEV_H__ #define __USBDEV_H__ 1 #include <libusb.h> struct libusb_device_handle *usb_dev_get_by_vid_pid_serial( struct libusb_context *usb_ctx, uint16_t vid, uint16_t pid, const char *serialno); struct libusb_device_handle *usb_dev_get_by_vid_pid_number( struct libusb_context *usb_ctx, uint16_t vid, uint16_t pid, unsigned int num); #endif /* __USBDEV_H__ */