diff options
-rw-r--r-- | include/osmocom/gsm/bts_features.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/osmocom/gsm/bts_features.h b/include/osmocom/gsm/bts_features.h index ac2c7606..b174d3f1 100644 --- a/include/osmocom/gsm/bts_features.h +++ b/include/osmocom/gsm/bts_features.h @@ -34,7 +34,11 @@ enum osmo_bts_features { extern const struct value_string osmo_bts_features_descs[]; -const char *osmo_bts_feature_name(enum osmo_bts_features feature); +static inline const char *osmo_bts_features_desc(enum osmo_bts_features val) +{ return get_value_string(osmo_bts_features_descs, val); } + +const char *osmo_bts_feature_name(enum osmo_bts_features feature) + OSMO_DEPRECATED("Use osmo_bts_features_desc() instead"); static inline int osmo_bts_set_feature(struct bitvec *features, enum osmo_bts_features feature) { |