-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
go: adding library file for library support
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 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,25 @@ | ||
package pciids | ||
|
||
import ( | ||
"github.com/powersj/pciids/pkg/file" | ||
"github.com/powersj/pciids/pkg/ids" | ||
"github.com/powersj/pciids/pkg/query" | ||
) | ||
|
||
// PCIID type. | ||
type PCIID = ids.PCIID | ||
|
||
// All returns all PCI IDs. | ||
var All = query.All | ||
|
||
// LatestFile returns the latest PCI IDs database file. | ||
var LatestFile = file.Latest | ||
|
||
// Parse will parse a PCI IDs file. | ||
var Parse = ids.Parse | ||
|
||
// QueryDevice will query using a specific PCI ID device pair. | ||
var QueryDevice = query.Device | ||
|
||
// QuerySubDevice will query using a specific PCI ID device and subdevice pair. | ||
var QuerySubDevice = query.SubDevice |