mesa/src/gbm/main
Daniel Stone 378025ca8b gbm: Use unsigned for BO offset getter
The actual offset returned is uint32_t, however int64_t was used as the
return type from gbm_bo_get_offset to allow negative returns to signal
errors to the caller.

In case of an error getting the offset, the user will also be unable to
get the handle/FD, and thus have nothing to offset into. This means that
returning 0 as an error value is harmless, allowing us to change the
return type to uint32_t in order to avoid signed/unsigned confusion in
callers.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Cc: Ben Widawsky <ben@bwidawsk.net>
Cc: Jason Ekstrand <jason@jlekstrand.net>
2017-03-23 15:28:41 +00:00
..
backend.c mesa/gbm: Resolve GCC sign-compare warning. 2015-08-18 11:34:43 -07:00
backend.h Add gbm (generic/graphics buffer manager) 2011-06-23 21:07:17 +02:00
common_drm.h Add gbm (generic/graphics buffer manager) 2011-06-23 21:07:17 +02:00
gbm.c gbm: Use unsigned for BO offset getter 2017-03-23 15:28:41 +00:00
gbm.h gbm: Use unsigned for BO offset getter 2017-03-23 15:28:41 +00:00
gbm.pc.in automake: src/gbm 2012-01-23 15:18:12 -05:00
gbmint.h gbm: Use unsigned for BO offset getter 2017-03-23 15:28:41 +00:00