Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
c52390d0
Unverified
Commit
c52390d0
authored
Jun 06, 2019
by
Péter Szilágyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vendor: pull fixed usb library for nocgo builds
parent
30c2b1b0
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
31 additions
and
28 deletions
+31
-28
AUTHORS
vendor/github.com/karalabe/usb/AUTHORS
+1
-0
appveyor.yml
vendor/github.com/karalabe/usb/appveyor.yml
+3
-0
hidapi.h
vendor/github.com/karalabe/usb/hidapi/hidapi/hidapi.h
+1
-2
hid.c
vendor/github.com/karalabe/usb/hidapi/windows/hid.c
+19
-19
usb_disabled.go
vendor/github.com/karalabe/usb/usb_disabled.go
+4
-4
vendor.json
vendor/vendor.json
+3
-3
No files found.
vendor/github.com/karalabe/usb/AUTHORS
View file @
c52390d0
Felix Lange <fjl@twurst.com>
Felix Lange <fjl@twurst.com>
Guillaume Ballet <gballet@gmail.com>
Guillaume Ballet <gballet@gmail.com>
Jakob Weisblat <jakobw@yubico.com>
Jakob Weisblat <jakobw@yubico.com>
Martin Holst Swende <martin@swende.se>
Mateusz Mikołajczyk <mikolajczyk.mateusz@gmail.com>
Mateusz Mikołajczyk <mikolajczyk.mateusz@gmail.com>
Péter Szilágyi <peterke@gmail.com>
Péter Szilágyi <peterke@gmail.com>
Rosen Penev <rosenp@gmail.com>
Rosen Penev <rosenp@gmail.com>
vendor/github.com/karalabe/usb/appveyor.yml
View file @
c52390d0
...
@@ -30,3 +30,6 @@ install:
...
@@ -30,3 +30,6 @@ install:
build_script
:
build_script
:
-
go install ./...
-
go install ./...
-
go test -v ./...
-
go test -v ./...
-
set CGO_ENABLED=0
-
go install ./...
-
go test -v ./...
vendor/github.com/karalabe/usb/hidapi/hidapi/hidapi.h
View file @
c52390d0
...
@@ -388,4 +388,3 @@ extern "C" {
...
@@ -388,4 +388,3 @@ extern "C" {
#endif
#endif
#endif
#endif
vendor/github.com/karalabe/usb/hidapi/windows/hid.c
View file @
c52390d0
...
@@ -428,7 +428,7 @@ struct hid_device_info HID_API_EXPORT * HID_API_CALL hid_enumerate(unsigned shor
...
@@ -428,7 +428,7 @@ struct hid_device_info HID_API_EXPORT * HID_API_CALL hid_enumerate(unsigned shor
if
(
str
)
{
if
(
str
)
{
len
=
strlen
(
str
);
len
=
strlen
(
str
);
cur_dev
->
path
=
(
char
*
)
calloc
(
len
+
1
,
sizeof
(
char
));
cur_dev
->
path
=
(
char
*
)
calloc
(
len
+
1
,
sizeof
(
char
));
strncpy
(
cur_dev
->
path
,
str
,
len
+
1
);
strncpy
(
cur_dev
->
path
,
str
,
sizeof
(
cur_dev
->
path
)
);
cur_dev
->
path
[
len
]
=
'\0'
;
cur_dev
->
path
[
len
]
=
'\0'
;
}
}
else
else
...
...
vendor/github.com/karalabe/usb/usb_disabled.go
View file @
c52390d0
...
@@ -27,20 +27,20 @@ func Supported() bool {
...
@@ -27,20 +27,20 @@ func Supported() bool {
// Enumerate returns a list of all the USB devices attached to the system which
// Enumerate returns a list of all the USB devices attached to the system which
// match the vendor and product id. On platforms that this file implements the
// match the vendor and product id. On platforms that this file implements the
// function is a noop and returns an empty list always.
// function is a noop and returns an empty list always.
func
Enumerate
(
vendorID
uint16
,
productID
uint16
)
[]
DeviceInfo
{
func
Enumerate
(
vendorID
uint16
,
productID
uint16
)
([]
DeviceInfo
,
error
)
{
return
nil
return
nil
,
nil
}
}
// EnumerateRaw returns a list of all the USB devices attached to the system which
// EnumerateRaw returns a list of all the USB devices attached to the system which
// match the vendor and product id. On platforms that this file implements the
// match the vendor and product id. On platforms that this file implements the
// function is a noop and returns an empty list always.
// function is a noop and returns an empty list always.
func
EnumerateRaw
(
vendorID
uint16
,
productID
uint16
)
([]
DeviceInfo
,
error
)
{
func
EnumerateRaw
(
vendorID
uint16
,
productID
uint16
)
([]
DeviceInfo
,
error
)
{
return
nil
return
nil
,
nil
}
}
// EnumerateHid returns a list of all the HID devices attached to the system which
// EnumerateHid returns a list of all the HID devices attached to the system which
// match the vendor and product id. On platforms that this file implements the
// match the vendor and product id. On platforms that this file implements the
// function is a noop and returns an empty list always.
// function is a noop and returns an empty list always.
func
EnumerateHid
(
vendorID
uint16
,
productID
uint16
)
([]
DeviceInfo
,
error
)
{
func
EnumerateHid
(
vendorID
uint16
,
productID
uint16
)
([]
DeviceInfo
,
error
)
{
return
nil
return
nil
,
nil
}
}
vendor/vendor.json
View file @
c52390d0
...
@@ -267,10 +267,10 @@
...
@@ -267,10 +267,10 @@
"revisionTime"
:
"2017-04-30T22:20:11Z"
"revisionTime"
:
"2017-04-30T22:20:11Z"
},
},
{
{
"checksumSHA1"
:
"
3v8Z4/daUVp9PCcFzEGYVkPadG8
="
,
"checksumSHA1"
:
"
0ixnoiChdbeva2xNe3z/vYzqcL4
="
,
"path"
:
"github.com/karalabe/usb"
,
"path"
:
"github.com/karalabe/usb"
,
"revision"
:
"
c012609e094b8a96375fee53cc11f1bcd5cf3aa
2"
,
"revision"
:
"
0efdeddd92369dc00d4fb1b9cd56a442bdb61f8
2"
,
"revisionTime"
:
"2019-06-0
4T10:57:36
Z"
,
"revisionTime"
:
"2019-06-0
6T09:23:27
Z"
,
"tree"
:
true
"tree"
:
true
},
},
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment