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>main
parent
f9c27a9e8c
commit
e939bd1e8c
|
@ -142,7 +142,7 @@ typedef struct _drmModeProperty {
|
||||||
uint32_t *blob_ids; /* store the blob IDs */
|
uint32_t *blob_ids; /* store the blob IDs */
|
||||||
} drmModePropertyRes, *drmModePropertyPtr;
|
} drmModePropertyRes, *drmModePropertyPtr;
|
||||||
|
|
||||||
static __inline int drm_property_type_is(drmModePropertyPtr property,
|
static __inline int drm_property_type_is(const drmModePropertyPtr property,
|
||||||
uint32_t type)
|
uint32_t type)
|
||||||
{
|
{
|
||||||
/* instanceof for props.. handles extended type vs original types: */
|
/* instanceof for props.. handles extended type vs original types: */
|
||||||
|
|
Loading…
Reference in New Issue