Pollfd的 struct 是:
struct pollfd {
int fd; /* file descriptor */
short events; /* requested events */
short revents; /* returned events */
}
Libus_pollfd的 struct 为:
struct libusb_pollfd {
int fd; /* Numeric file descriptor. */
short events;
}
轮询函数的 struct 是:
int poll(struct pollfd *fds, nfds_t nfds, int timeout);
轮询libusb_pollfd struct 列表的正确方式是什么?您是否在使用民意调查功能时进行了某种修改?或者,是否有应该使用的libus函数?