shared: Add timespec_is_zero helper
authorAlexandros Frantzis <alexandros.frantzis@collabora.com>
Mon, 27 Nov 2017 08:54:49 +0000 (10:54 +0200)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Mon, 27 Nov 2017 09:18:25 +0000 (11:18 +0200)
commite2a5f9e02d22f2271f6f0d6be10ba3d1b320dca2
tree25fac6cad8ad6f934e5d3bf2aa98a02f0ef7cfb7
parent0343c6ac69ac8bd88a625e2429e87a8db86a04dc
shared: Add timespec_is_zero helper

Add a helper function to check if a struct timespec is zero. This helper
will be used in the upcoming commits to transition the Weston codebase
to struct timespec.

Signed-off-by: Alexandros Frantzis <alexandros.frantzis@collabora.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
shared/timespec-util.h
tests/timespec-test.c