scanner: refactor creating objects

Graphics / Wayland / Wayland - Marek Chalupa [gmail.com] - 30 July 2015 20:23 UTC

wrap creating and initializing objects (structures) into functions and use them in the code.

v2. make create_.* functions consistent (no func will return NULL)

87fab2e scanner: refactor creating objects
src/scanner.c | 164 ++++++++++++++++++++++++++++++++++++++-------------------
1 file changed, 111 insertions(+), 53 deletions(-)

Upstream: cgit.freedesktop.org


  • Share