wrlib: add explicit type definition in API to allow compiler Type Checks (1/3)
commiteb3f0b12f87dcc61218734dbd1dd8db0ff0bda66
authorChristophe CURIS <christophe.curis@free.fr>
Sat, 14 Jun 2014 17:34:07 +0000 (14 19:34 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Sun, 15 Jun 2014 18:45:20 +0000 (15 19:45 +0100)
treed466ff6b543f44995f74472f102c66e3e658b68e
parent96a6e4da1e27a1541567cd0d3150271efff4ef00
wrlib: add explicit type definition in API to allow compiler Type Checks (1/3)

When defining enums as types instead of simple enums allows to use these
types at the places where the corresponding enum values are expected, then
allowing the compiler to check that, potentially reporting incorrect use
of values to the user.

This patch adds types for the configuration fields in the RContextAttributes
structure.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
util/wmsetbg.c
wrlib/scale.c
wrlib/scale.h
wrlib/wraster.h