[libqb] [PATCH] LOG: add a way of getting the target state