const char* valvula_support_state_str ( ValvulaState  state)

Allows to convert the provided state into a string that represents its state.

Parameters
stateThe state to be translated into an string.
Returns
A reference to the string that represents the provided state or the string "UNKNOWN" when no match for that state was found.

References VALVULA_STATE_BCC, VALVULA_STATE_DEFER, VALVULA_STATE_DEFER_IF_PERMIT, VALVULA_STATE_DEFER_IF_REJECT, VALVULA_STATE_DISCARD, VALVULA_STATE_DUNNO, VALVULA_STATE_FILTER, VALVULA_STATE_GENERIC_ERROR, VALVULA_STATE_HOLD, VALVULA_STATE_LOG, VALVULA_STATE_OK, VALVULA_STATE_PREPEND, VALVULA_STATE_REDIRECT, and VALVULA_STATE_REJECT.