forked from karalabe/hid
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/no-dummy-go-files'
- Loading branch information
Showing
38 changed files
with
80 additions
and
15,458 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
//go:build !ios && cgo | ||
|
||
package hid | ||
|
||
import ( | ||
_ "github.com/bearsh/hid/hidapi" | ||
_ "github.com/bearsh/hid/hidapi/mac" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
//go:build hidraw && cgo | ||
|
||
package hid | ||
|
||
import ( | ||
_ "github.com/bearsh/hid/hidapi" | ||
_ "github.com/bearsh/hid/hidapi/linux" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
//go:build !hidraw && cgo | ||
|
||
package hid | ||
|
||
import ( | ||
_ "github.com/bearsh/hid/hidapi" | ||
_ "github.com/bearsh/hid/hidapi/libusb" | ||
_ "github.com/bearsh/hid/libusb/libusb" | ||
_ "github.com/bearsh/hid/libusb/libusb/os" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1 @@ | ||
//go:build dummy | ||
|
||
// This Go file is part of a workaround for `go mod vendor`. | ||
// Please see the file `c_deps.go` at the root for more information. | ||
|
||
package hidapi |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
//go:build dummy | ||
|
||
// This Go file is part of a workaround for `go mod vendor`. | ||
// Please see the file `c_deps.go` at the root for more information. | ||
//go:build !hidraw && linux && cgo | ||
|
||
package libusb | ||
|
||
/* | ||
#cgo CFLAGS: -I../. -I../../libusb/libusb | ||
*/ | ||
import "C" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
//go:build dummy | ||
|
||
// This Go file is part of a workaround for `go mod vendor`. | ||
// Please see the file `c_deps.go` at the root for more information. | ||
//go:build hidraw && linux | ||
|
||
package linux | ||
|
||
/* | ||
#cgo CFLAGS: -I../. -DHIDRAW | ||
*/ | ||
import "C" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
//go:build dummy | ||
|
||
// This Go file is part of a workaround for `go mod vendor`. | ||
// Please see the file `c_deps.go` at the root for more information. | ||
//go:build darwin && !ios | ||
|
||
package mac | ||
|
||
/* | ||
#cgo CFLAGS: -I../. -DOS_DARWIN | ||
*/ | ||
import "C" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
//go:build dummy | ||
|
||
// This Go file is part of a workaround for `go mod vendor`. | ||
// Please see the file `c_deps.go` at the root for more information. | ||
//go:build windows | ||
|
||
package windows | ||
|
||
/* | ||
#cgo CFLAGS: -I../. -DOS_WINDOWS -Dhidapi_winapi_EXPORTS | ||
*/ | ||
import "C" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1 @@ | ||
//go:build dummy | ||
|
||
// This Go file is part of a workaround for `go mod vendor`. | ||
// Please see the file `c_deps.go` at the root for more information. | ||
|
||
package libusb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,15 @@ | ||
//go:build dummy | ||
|
||
// This Go file is part of a workaround for `go mod vendor`. | ||
// Please see the file `c_deps.go` at the root for more information. | ||
//go:build !hidraw && linux && cgo | ||
|
||
package libusb | ||
|
||
/* | ||
#cgo CFLAGS: -I../.. -DDEFAULT_VISIBILITY="" -DOS_LINUX -D_GNU_SOURCE -DPLATFORM_POSIX | ||
#cgo !hidraw,linux,noiconv CFLAGS: -DNO_ICONV | ||
//#include "os/events_posix.c" | ||
//#include "os/threads_posix.c" | ||
//#include "os/linux_usbfs.c" | ||
//#include "os/linux_netlink.c" | ||
*/ | ||
import "C" |
Oops, something went wrong.