usb.go no longer needs "C"
This commit is contained in:
@@ -23,6 +23,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
#cgo pkg-config: libusb-1.0
|
||||||
#include <libusb.h>
|
#include <libusb.h>
|
||||||
|
|
||||||
int compact_iso_data(struct libusb_transfer *xfer, unsigned char *status);
|
int compact_iso_data(struct libusb_transfer *xfer, unsigned char *status);
|
||||||
|
@@ -16,10 +16,6 @@
|
|||||||
// Package usb provides a wrapper around libusb-1.0.
|
// Package usb provides a wrapper around libusb-1.0.
|
||||||
package usb
|
package usb
|
||||||
|
|
||||||
// #cgo pkg-config: libusb-1.0
|
|
||||||
// #include <libusb.h>
|
|
||||||
import "C"
|
|
||||||
|
|
||||||
type Context struct {
|
type Context struct {
|
||||||
ctx *libusbContext
|
ctx *libusbContext
|
||||||
done chan struct{}
|
done chan struct{}
|
||||||
|
Reference in New Issue
Block a user