Files
osmo-upf/include/osmocom/pfcp/pfcp_strs.h
Neels Hofmeyr 20440519fb libosmo-pfcp: add pfcp_proto.h pfcp_strs.h
Related: SYS#5599
Change-Id: I568b821e89007ed52eeefcdbcb6edd8052a8b5be
2022-02-25 01:53:07 +01:00

66 lines
2.2 KiB
C

#pragma once
#include <osmocom/core/utils.h>
#include <osmocom/pfcp/pfcp_proto.h>
extern const struct value_string osmo_pfcp_message_type_strs[];
static inline const char *osmo_pfcp_message_type_str(enum osmo_pfcp_message_type val)
{
return get_value_string(osmo_pfcp_message_type_strs, val);
}
extern const struct value_string osmo_pfcp_iei_strs[];
static inline const char *osmo_pfcp_iei_str(enum osmo_pfcp_iei val)
{
return get_value_string(osmo_pfcp_iei_strs, val);
}
extern const struct value_string osmo_pfcp_cause_strs[];
static inline const char *osmo_pfcp_cause_str(enum osmo_pfcp_cause val)
{
return get_value_string(osmo_pfcp_cause_strs, val);
}
extern const struct value_string osmo_pfcp_up_feature_strs[];
static inline const char *osmo_pfcp_up_feature_str(enum osmo_pfcp_up_feature val)
{
return get_value_string(osmo_pfcp_up_feature_strs, val);
}
extern const struct value_string osmo_pfcp_cp_feature_strs[];
static inline const char *osmo_pfcp_cp_feature_str(enum osmo_pfcp_cp_feature val)
{
return get_value_string(osmo_pfcp_cp_feature_strs, val);
}
extern const struct value_string osmo_pfcp_apply_action_strs[];
static inline const char *osmo_pfcp_apply_action_str(enum osmo_pfcp_apply_action val)
{
return get_value_string(osmo_pfcp_apply_action_strs, val);
}
extern const struct value_string osmo_pfcp_outer_header_creation_strs[];
static inline const char *osmo_pfcp_outer_header_creation_str(enum osmo_pfcp_outer_header_creation val)
{
return get_value_string(osmo_pfcp_outer_header_creation_strs, val);
}
extern const struct value_string osmo_pfcp_outer_header_removal_desc_strs[];
static inline const char *osmo_pfcp_outer_header_removal_desc_str(enum osmo_pfcp_outer_header_removal_desc val)
{
return get_value_string(osmo_pfcp_outer_header_removal_desc_strs, val);
}
extern const struct value_string osmo_pfcp_source_iface_strs[];
static inline const char *osmo_pfcp_source_iface_str(enum osmo_pfcp_source_iface val)
{
return get_value_string(osmo_pfcp_source_iface_strs, val);
}
extern const struct value_string osmo_pfcp_dest_iface_strs[];
static inline const char *osmo_pfcp_dest_iface_str(enum osmo_pfcp_dest_iface val)
{
return get_value_string(osmo_pfcp_dest_iface_strs, val);
}