Skip to content
Snippets Groups Projects
  • Simon McVittie's avatar
    a08464d9
    input-device: Add skeleton API for enumeration and monitoring · a08464d9
    Simon McVittie authored
    
    This includes:
    
    * a public interface implemented by input device monitors
    * a public interface to be implemented by the input devices they signal
    * a mock implementation for unit-testing
    * a unit test for the API
    * a simple implementation in terms of inotify on /dev
    * a monitor that can print input devices in JSON format on stdout,
      and optionally monitor them
    
    Implementations in terms of udev, SDL, or a portal service are not yet
    included. Details of the devices, beyond their paths in /dev and /sys,
    are also not included.
    
    Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
    a08464d9
    History
    input-device: Add skeleton API for enumeration and monitoring
    Simon McVittie authored
    
    This includes:
    
    * a public interface implemented by input device monitors
    * a public interface to be implemented by the input devices they signal
    * a mock implementation for unit-testing
    * a unit test for the API
    * a simple implementation in terms of inotify on /dev
    * a monitor that can print input devices in JSON format on stdout,
      and optionally monitor them
    
    Implementations in terms of udev, SDL, or a portal service are not yet
    included. Details of the devices, beyond their paths in /dev and /sys,
    are also not included.
    
    Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
This project is licensed under the Other. Learn more
COPYING.MIT 1.03 KiB
SPDX-License-Identifier: MIT

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.