Skip to content

Add DRIVER_INTERFACE enum#46

Open
cgobat wants to merge 4 commits intoMMTObservatory:masterfrom
cgobat:add-DRIVER_INTERFACE
Open

Add DRIVER_INTERFACE enum#46
cgobat wants to merge 4 commits intoMMTObservatory:masterfrom
cgobat:add-DRIVER_INTERFACE

Conversation

@cgobat
Copy link
Contributor

@cgobat cgobat commented Mar 11, 2026

Many clients expect INDI drivers to publish a DRIVER_INFO vector that includes a DRIVER_INTERFACE element. This DRIVER_INTERFACE is a bitwise OR of the values listed on this page, and advertises what kind(s) of device the driver represents.

This PR adds a new enum in device.py that encodes these interface values for convenience.

Note: I'm not quite sure if this is where this should go. I couldn't really think of anywhere better, but if there is a more optimal location for this definition to live, I'd be happy to move it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant