mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-25 13:00:20 +01:00
xf86drmMode: make drm_property_type_is arg const
This function only needs read-only access to the property. This is not a breaking ABI change. Signed-off-by: Simon Ser <contact@emersion.fr> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
parent
f9c27a9e8c
commit
e939bd1e8c
1 changed files with 1 additions and 1 deletions
|
|
@ -142,7 +142,7 @@ typedef struct _drmModeProperty {
|
|||
uint32_t *blob_ids; /* store the blob IDs */
|
||||
} drmModePropertyRes, *drmModePropertyPtr;
|
||||
|
||||
static __inline int drm_property_type_is(drmModePropertyPtr property,
|
||||
static __inline int drm_property_type_is(const drmModePropertyPtr property,
|
||||
uint32_t type)
|
||||
{
|
||||
/* instanceof for props.. handles extended type vs original types: */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue