logutils: Introduce parse_{host,service}_state_gently()
commitef6d4662e4f5d2f4a7e8c5feba1282a1d9736f44
authorAndreas Ericsson <ae@op5.se>
Thu, 8 Apr 2010 13:58:45 +0000 (8 15:58 +0200)
committerAndreas Ericsson <ae@op5.se>
Thu, 8 Apr 2010 13:58:45 +0000 (8 15:58 +0200)
tree9f0acea58c111d74df998db43799774ff1ea7667
parent9bdafd8b4ab85cd1f1cb6f67ea61fee8b6419c01
logutils: Introduce parse_{host,service}_state_gently()

This is a non-crashing version of their similarly-named previous
incantations. The previous versions now use the _gently() functions
to find out the value and, if one can't be found, bomb out.

We also remove parse_object_state(), which is now obsolete.

Signed-off-by: Andreas Ericsson <ae@op5.se>
logutils.c
logutils.h