Skip to content

Change the C API to match interfaces closer

Peter Hutterer requested to merge whot/libei:wip/interface-api into main

This is the C API interface equivalent to !182 (merged). While I'm not 100% convinced it's the best thing to do, right now is the last time we can do a change like this and while it may make things a bit more verbose for clients, it makes things also a lot more flexible for the addition of future interfaces or device combinations. And matching the protocol a bit closer probably makes things a lot easier to debug/understand.

  • change the capability masks to match the protocol interfaces
  • rename libei functions and events
  • rename libeis functions and events

In draft until I get a handwavy ack from e.g. @ofourdan

Edited by Peter Hutterer

Merge request reports

Loading