Skip to content
Snippets Groups Projects

info: add di_info_get_device_tag()

Open Simon Ser requested to merge device-tag into main
  1. Jan 23, 2025
    • Simon Ser's avatar
      info: add di_info_get_device_tag() · 0572615e
      Simon Ser authored
      
      Display servers need to be able to identify a monitor regardless of
      which port it happens to be connected to. This new API offers the
      key to do that.
      
      Add new API to create a string as specified. New API is required because
      I want libdisplay-info to reserve the right to change what get_make(),
      get_model() and get_serial() may return (e.g. prefer DisplayID blob over
      EDID blob) without breaking configuration keys a user may have stored.
      When DisplayID becomes supported, the new function wants to maintain
      backward compatibility.
      
      For the above reasons, the implementation does not rely on calling
      get_make() etc. but depends only on the low-level API.
      
      Signed-off-by: Simon Ser's avatarSimon Ser <contact@emersion.fr>
      Signed-off-by: default avatarPekka Paalanen <pekka.paalanen@collabora.com>
      Co-authored-by: default avatarPekka Paalanen <pekka.paalanen@collabora.com>
      0572615e
Loading