aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/abis_nm.h
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2010-01-02 16:32:17 +0100
committerHarald Welte <laforge@netfilter.org>2010-01-03 10:11:24 +0100
commit1f6c11fda80fca9915531c22e41c62279ba2c2a0 (patch)
tree8b3df7ab54c70e69fd9560119387e05f488412ef /openbsc/include/openbsc/abis_nm.h
parent15e1024e49d8d8295de69d4e8af0cad8d393bb78 (diff)
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 <tnt@246tNt.com>
Diffstat (limited to 'openbsc/include/openbsc/abis_nm.h')
-rw-r--r--openbsc/include/openbsc/abis_nm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/abis_nm.h b/openbsc/include/openbsc/abis_nm.h
index a122342f..6876435d 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 */