Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

Split libinput contexts into udev/path classes #2

Open
whot opened this issue Feb 16, 2018 · 1 comment
Open

Split libinput contexts into udev/path classes #2

whot opened this issue Feb 16, 2018 · 1 comment

Comments

@whot
Copy link

whot commented Feb 16, 2018

Since python is supposed to abstract this nicely, better than C anyway you should have a

class LibInput:
   # almost everything

class LibInputUdev(LibInput):
   # the few udev functions

class LibInputPath(LibInput):
   # the few path functions

And then maybe a Libinput.context(ContextType=UDEV) (see #1) that returns the right object. This way you don't have a path_foo() function on a udev context and vice versa

@OzymandiasTheGreat
Copy link
Owner

This would be less error prone, will do.

@whot whot mentioned this issue Feb 16, 2018
13 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants