Skip to content

Commit

Permalink
Change the underlying type of the PexSearchType to int (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
stepanbujnak authored Jan 31, 2024
1 parent 520e59f commit 4e7c98e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pex_search.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ import (

// PexSearchType can optionally be specified in the PexSearchRequest and will
// allow to retrieve results that are more relevant to the given use-case.
type PexSearchType C.Pex_CheckSearchType
type PexSearchType int

const (
// IdentifyMusic is a type of PexSearch that will return results that will
// help identify the music in the provided media file.
IdentifyMusic = C.Pex_CheckSearchType_IdentifyMusic
IdentifyMusic = PexSearchType(C.Pex_CheckSearchType_IdentifyMusic)

// FindMatches is a type of PexSearch that will return all assets that
// matched against the given media file.
FindMatches = C.Pex_CheckSearchType_FindMatches
FindMatches = PexSearchType(C.Pex_CheckSearchType_FindMatches)
)

// Holds all data necessary to perform a pex search. A search can only be
Expand Down

0 comments on commit 4e7c98e

Please sign in to comment.