Skip to content

Commit

Permalink
go: adding library file for library support
Browse files Browse the repository at this point in the history
  • Loading branch information
powersj committed Jan 19, 2021
1 parent 5e2be42 commit c6369cb
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions pciids.go
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

0 comments on commit c6369cb

Please sign in to comment.