gbm: Set errno on errors
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Tue, 8 Apr 2014 20:28:39 +0000 (23:28 +0300)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 25 Apr 2014 20:16:45 +0000 (21:16 +0100)
commit49964fa28b611103bed46d0f9dcd942391c4dea8
treef9766006da09b1557cf29fc1f825ab35aeaabb21
parentaa91fe1c09e066751c5419adb7810745336bd051
gbm: Set errno on errors

This should give the caller some information of what called the error.
For the gbm_bo_import() case, for instance, it is possible to know if
the import is not supported or the error was caused by an invalid
parameter.

Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
src/gbm/backends/dri/gbm_dri.c
src/gbm/main/gbm.c