diff options
author | Sylvain Munaut <tnt@246tNt.com> | 2010-01-02 16:32:17 +0100 |
---|---|---|
committer | Harald Welte <laforge@netfilter.org> | 2010-01-03 10:11:24 +0100 |
commit | 1f6c11fda80fca9915531c22e41c62279ba2c2a0 (patch) | |
tree | 8b3df7ab54c70e69fd9560119387e05f488412ef /openbsc/include/openbsc/abis_nm.h | |
parent | 15e1024e49d8d8295de69d4e8af0cad8d393bb78 (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.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 */ |