Skip to content

Improve library detection algorithm in LibGpiodDriverFactory #2271

@pgrawehr

Description

@pgrawehr

The current detection algorithm in LibGpidDriver factory is somewhat risky, in that it assumes certain default paths for libraries. A more standard approach would be to just try to use PInvoke and catch the error. Note that this is also a bit tricky since the V1 driver internally also tries various .so files.

Other related work:

  • Check alternatives to exposing LibGpiodDriverVersion enum - Exposing this enum, which should rarely be used by the client (as we want "autodetect" to be the default that should work for almost all users) is not really nice. This includes the enum itself as well as the public methods that use it as arguments. (Previously Check alternatives to exposing LibGpiodDriverVersion enum #2272)

Metadata

Metadata

Assignees

Labels

Priority:1Work that is critical for the release, but we could probably ship withoutenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions