Skip to content
  • Peter Hutterer's avatar
    udev: split libinput_udev context init into two functions · 6250397a
    Peter Hutterer authored
    
    
    This is preparation work for context-specific log handlers.
    
    Callers are now encouraged to first initialize the context with
    libinput_udev_create_context() and then set the seat for this context with
    libinput_udev_assign_seat().
    
    In the upcoming patch to support context-specific log handlers this enables a
    caller to set the log handler for a context before any devices are
    initialized. Otherwise, a log message generated by a new device may pass a
    libinput context that the caller is not yet aware of.
    
    Signed-off-by: default avatarPeter Hutterer <peter.hutterer@who-t.net>
    Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
    6250397a