drm-backend: update description of drm_head_create() and drm_head_update_info()

In case of success, drm_head_create() and drm_head_update_info()
take ownership of a connector. As this is an important
information, update the description of these functions
to include this.

Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
dev
Leandro Ribeiro 4 years ago committed by Pekka Paalanen
parent 6794164bd9
commit 4a5b67a5db
  1. 4
      libweston/backend-drm/drm.c

@ -2081,6 +2081,8 @@ drm_head_log_info(struct drm_head *head, const char *msg)
*
* Updates monitor information and connection status. This may schedule a
* heads changed call to the user.
*
* Takes ownership of @c connector on success, not on failure.
*/
static int
drm_head_update_info(struct drm_head *head, drmModeConnector *conn)
@ -2109,6 +2111,8 @@ drm_head_update_info(struct drm_head *head, drmModeConnector *conn)
* @param conn DRM connector object
* @param drm_device udev device pointer
* @returns 0 on success, -1 on failure
*
* Takes ownership of @c connector on success, not on failure.
*/
static int
drm_head_create(struct drm_backend *backend, drmModeConnector *conn,

Loading…
Cancel
Save