diff options
author | Tobias Jakobi | 2017-10-10 05:12:52 -0500 |
---|---|---|
committer | Bas Nieuwenhuizen | 2017-10-20 16:38:54 -0500 |
commit | 09be54122fbd145d23751eddf7be5b220774a117 (patch) | |
tree | 4b42e8a4d8a587bfc0d5c86b3dcc9f6ea1e58e03 /xf86drmMode.h | |
parent | 35bc82cee9aab62d556e2ea6dfe29f71ce13dcb3 (diff) | |
download | external-libdrm-09be54122fbd145d23751eddf7be5b220774a117.tar.gz external-libdrm-09be54122fbd145d23751eddf7be5b220774a117.tar.xz external-libdrm-09be54122fbd145d23751eddf7be5b220774a117.zip |
Add const qualifier to arguments of drmModeAddFB2()
Both drmModeAddFB2() and drmModeAddFB2WithModifiers() have some
arguments that are just pointers to uint32_t in disguise. These
are not modified (just copied) in the function, so we can add a
const qualifier here.
Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Diffstat (limited to 'xf86drmMode.h')
-rw-r--r-- | xf86drmMode.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/xf86drmMode.h b/xf86drmMode.h index 5b390d9f..6dbe3353 100644 --- a/xf86drmMode.h +++ b/xf86drmMode.h | |||
@@ -369,15 +369,16 @@ extern int drmModeAddFB(int fd, uint32_t width, uint32_t height, uint8_t depth, | |||
369 | uint32_t *buf_id); | 369 | uint32_t *buf_id); |
370 | /* ...with a specific pixel format */ | 370 | /* ...with a specific pixel format */ |
371 | extern int drmModeAddFB2(int fd, uint32_t width, uint32_t height, | 371 | extern int drmModeAddFB2(int fd, uint32_t width, uint32_t height, |
372 | uint32_t pixel_format, uint32_t bo_handles[4], | 372 | uint32_t pixel_format, const uint32_t bo_handles[4], |
373 | uint32_t pitches[4], uint32_t offsets[4], | 373 | const uint32_t pitches[4], const uint32_t offsets[4], |
374 | uint32_t *buf_id, uint32_t flags); | 374 | uint32_t *buf_id, uint32_t flags); |
375 | 375 | ||
376 | /* ...with format modifiers */ | 376 | /* ...with format modifiers */ |
377 | int drmModeAddFB2WithModifiers(int fd, uint32_t width, uint32_t height, | 377 | int drmModeAddFB2WithModifiers(int fd, uint32_t width, uint32_t height, |
378 | uint32_t pixel_format, uint32_t bo_handles[4], | 378 | uint32_t pixel_format, const uint32_t bo_handles[4], |
379 | uint32_t pitches[4], uint32_t offsets[4], | 379 | const uint32_t pitches[4], const uint32_t offsets[4], |
380 | uint64_t modifier[4], uint32_t *buf_id, uint32_t flags); | 380 | const uint64_t modifier[4], uint32_t *buf_id, |
381 | uint32_t flags); | ||
381 | 382 | ||
382 | /** | 383 | /** |
383 | * Destroies the given framebuffer. | 384 | * Destroies the given framebuffer. |