From 1f6c11fda80fca9915531c22e41c62279ba2c2a0 Mon Sep 17 00:00:00 2001 From: Sylvain Munaut Date: Sat, 2 Jan 2010 16:32:17 +0100 Subject: abis_nm: Introduce & use a nm_is_running function to test gsm_nm_state This returns true if the gsm_nm_state can be considered 'running'. Note that we also accept availability==0xff (which is a code for no value) because according to 12.21 it is perfectly valid. Signed-off-by: Sylvain Munaut --- openbsc/include/openbsc/abis_nm.h | 1 + 1 file changed, 1 insertion(+) (limited to 'openbsc/include/openbsc/abis_nm.h') diff --git a/openbsc/include/openbsc/abis_nm.h b/openbsc/include/openbsc/abis_nm.h index a122342f2..6876435dc 100644 --- a/openbsc/include/openbsc/abis_nm.h +++ b/openbsc/include/openbsc/abis_nm.h @@ -826,4 +826,5 @@ int nm_state_event(enum nm_evt evt, u_int8_t obj_class, void *obj, const char *nm_opstate_name(u_int8_t os); const char *nm_avail_name(u_int8_t avail); +int nm_is_running(struct gsm_nm_state *s); #endif /* _NM_H */ -- cgit v1.2.3