From 778071cc99789172b3e6d80a42582abd65a8502a Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Wed, 12 Jan 2022 02:46:20 +0100 Subject: libosmo-pfcp: add pfcp_proto.h pfcp_strs.h Related: SYS#5599 Change-Id: I568b821e89007ed52eeefcdbcb6edd8052a8b5be --- include/osmocom/pfcp/pfcp_strs.h | 94 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 include/osmocom/pfcp/pfcp_strs.h (limited to 'include/osmocom/pfcp/pfcp_strs.h') diff --git a/include/osmocom/pfcp/pfcp_strs.h b/include/osmocom/pfcp/pfcp_strs.h new file mode 100644 index 0000000..d0b106a --- /dev/null +++ b/include/osmocom/pfcp/pfcp_strs.h @@ -0,0 +1,94 @@ +/* + * (C) 2021-2022 by sysmocom - s.f.m.c. GmbH + * All Rights Reserved. + * + * Author: Neels Janosch Hofmeyr + * + * SPDX-License-Identifier: GPL-2.0+ + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +#pragma once + +#include + +#include + +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); +} + +extern const struct value_string osmo_pfcp_3gpp_iface_type_strs[]; +static inline const char *osmo_pfcp_3gpp_iface_type_str(enum osmo_pfcp_3gpp_iface_type val) +{ + return get_value_string(osmo_pfcp_3gpp_iface_type_strs, val); +} -- cgit v1.2.3