mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-05 12:18:08 +02:00
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>
This commit is contained in:
parent
6794164bd9
commit
4a5b67a5db
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue