Fix header file compliancy with libusb 1.0 from sourceforge.
Reported by: Xiaofan Chen Submitted by: Hans Petter Selasky
This commit is contained in:
parent
85e7bb81e9
commit
9c087c5a19
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=208020
@ -178,7 +178,7 @@ enum libusb_debug_level {
|
|||||||
struct libusb_context;
|
struct libusb_context;
|
||||||
struct libusb_device;
|
struct libusb_device;
|
||||||
struct libusb_transfer;
|
struct libusb_transfer;
|
||||||
struct libusb20_device;
|
struct libusb_device_handle;
|
||||||
|
|
||||||
struct libusb_pollfd {
|
struct libusb_pollfd {
|
||||||
int fd;
|
int fd;
|
||||||
@ -187,7 +187,7 @@ struct libusb_pollfd {
|
|||||||
|
|
||||||
typedef struct libusb_context libusb_context;
|
typedef struct libusb_context libusb_context;
|
||||||
typedef struct libusb_device libusb_device;
|
typedef struct libusb_device libusb_device;
|
||||||
typedef struct libusb20_device libusb_device_handle;
|
typedef struct libusb_device_handle libusb_device_handle;
|
||||||
typedef struct libusb_pollfd libusb_pollfd;
|
typedef struct libusb_pollfd libusb_pollfd;
|
||||||
typedef void (*libusb_pollfd_added_cb) (int fd, short events, void *user_data);
|
typedef void (*libusb_pollfd_added_cb) (int fd, short events, void *user_data);
|
||||||
typedef void (*libusb_pollfd_removed_cb) (int fd, void *user_data);
|
typedef void (*libusb_pollfd_removed_cb) (int fd, void *user_data);
|
||||||
|
@ -37,6 +37,8 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
#define libusb_device_handle libusb20_device
|
||||||
|
|
||||||
#include "libusb20.h"
|
#include "libusb20.h"
|
||||||
#include "libusb20_desc.h"
|
#include "libusb20_desc.h"
|
||||||
#include "libusb20_int.h"
|
#include "libusb20_int.h"
|
||||||
|
@ -29,6 +29,8 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
#define libusb_device_handle libusb20_device
|
||||||
|
|
||||||
#include "libusb20.h"
|
#include "libusb20.h"
|
||||||
#include "libusb20_desc.h"
|
#include "libusb20_desc.h"
|
||||||
#include "libusb20_int.h"
|
#include "libusb20_int.h"
|
||||||
|
@ -34,6 +34,8 @@
|
|||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
#define libusb_device_handle libusb20_device
|
||||||
|
|
||||||
#include "libusb20.h"
|
#include "libusb20.h"
|
||||||
#include "libusb20_desc.h"
|
#include "libusb20_desc.h"
|
||||||
#include "libusb20_int.h"
|
#include "libusb20_int.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user