Skip to content
Snippets Groups Projects

xf86drmMode: introduce drmModeGetConnectorTypeName

Merged Simon Ser requested to merge emersion/drm:connector-type-name into main
2 unresolved threads

User-space often needs to print the name of a connector type. When a new connector type is added, all user-space programs need to be updated to support the new connector type.

Expose a function to get a connector type name in libdrm.

Signed-off-by: Simon Ser contact@emersion.fr

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Seems like a good idea to me.

  • Simon Ser added 50 commits

    added 50 commits

    Compare with previous version

  • Jonas Ådahl
  • Simon Ser added 2 commits

    added 2 commits

    • 3b34da10 - xf86drmMode: introduce drmModeGetConnectorTypeName
    • a2114afe - tests: use drmModeGetConnectorTypeName

    Compare with previous version

  • Pekka Paalanen
    Pekka Paalanen @pq started a thread on the diff
  • 1785 case DRM_MODE_CONNECTOR_eDP:
    1786 return "eDP";
    1787 case DRM_MODE_CONNECTOR_VIRTUAL:
    1788 return "Virtual";
    1789 case DRM_MODE_CONNECTOR_DSI:
    1790 return "DSI";
    1791 case DRM_MODE_CONNECTOR_DPI:
    1792 return "DPI";
    1793 case DRM_MODE_CONNECTOR_WRITEBACK:
    1794 return "Writeback";
    1795 case DRM_MODE_CONNECTOR_SPI:
    1796 return "SPI";
    1797 case DRM_MODE_CONNECTOR_USB:
    1798 return "USB";
    1799 default:
    1800 return NULL;
  • LGTM, regardless of whether the function can return NULL or not.

  • Author Developer

    Thanks for the reviews!

  • Simon Ser added 4 commits

    added 4 commits

    Compare with previous version

  • Simon Ser enabled an automatic merge when the pipeline for 0427c1f6 succeeds

    enabled an automatic merge when the pipeline for 0427c1f6 succeeds

  • merged

  • Please register or sign in to reply
    Loading