Skip to content
Snippets Groups Projects
  1. Aug 26, 2019
  2. Aug 12, 2019
    • Peter Hutterer's avatar
      Prefix undefined event codes with an underscore · f9968087
      Peter Hutterer authored
      
      Previously, event codes without a kernel define would resolve into properly
      named objects, e.g. libevdev.EV_REL.REL_0B
      
      This breaks the API whenever the kernel introduces a new define because that
      named object will just disappear. e.g. the above REL_0B is now
      REL_WHEEL_HI_RES.
      
      Since the undefined names aren't supposed to be used by callers directly
      anyway, rename them to be underscored instead: libevdev.EV_REL._REL_0B
      This means we can still return them from evbit() and events() but the
      underscore signals a private API.
      
      The actual name remains the same, so print(_REL_0B.name) will not have an
      underscore. This is to avoid bugs/breakage where the caller uses the 3-lettter
      prefix for other purposes.
      
      Signed-off-by: default avatarPeter Hutterer <peter.hutterer@who-t.net>
      f9968087
  3. Aug 06, 2019
  4. Aug 05, 2019
  5. May 24, 2019
  6. Mar 27, 2019
  7. Mar 17, 2019
  8. Mar 15, 2019
  9. Jan 29, 2019
  10. Dec 20, 2018
  11. Dec 19, 2018
  12. Dec 04, 2018
  13. Oct 26, 2018
  14. Oct 23, 2018
  15. Aug 06, 2018
  16. Aug 02, 2018
  17. Jun 15, 2018
  18. Apr 23, 2018
  19. Feb 26, 2018
  20. Feb 23, 2018
  21. Jan 07, 2018
Loading