Debian Codegraph @

src/libqmi-glib/qmi-enums-wds.c

raw
1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
3 /*
4 * libqmi-glib -- GLib/GIO based library to control QMI devices
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the
18 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301 USA.
20 *
21 * Copyright (C) 2012-2017 Aleksander Morgado <[email protected]>
22 */
23
24 #include <string.h>
25 #include <stdint.h>
26 #include <stdio.h>
27
28 #include "qmi-enums-wds.h"
29 #include "qmi-enum-types.h"
30
31 const gchar *
32 qmi_wds_verbose_call_end_reason_get_string (QmiWdsVerboseCallEndReasonType type,
33 gint16 reason)
34 {
35 switch (type) {
36 case QMI_WDS_VERBOSE_CALL_END_REASON_TYPE_MIP:
37 return qmi_wds_verbose_call_end_reason_mip_get_string ((QmiWdsVerboseCallEndReasonMip)reason);
38 case QMI_WDS_VERBOSE_CALL_END_REASON_TYPE_INTERNAL:
39 return qmi_wds_verbose_call_end_reason_internal_get_string ((QmiWdsVerboseCallEndReasonInternal)reason);
40 case QMI_WDS_VERBOSE_CALL_END_REASON_TYPE_CM:
41 return qmi_wds_verbose_call_end_reason_cm_get_string ((QmiWdsVerboseCallEndReasonCm)reason);
42 case QMI_WDS_VERBOSE_CALL_END_REASON_TYPE_3GPP:
43 return qmi_wds_verbose_call_end_reason_3gpp_get_string ((QmiWdsVerboseCallEndReason3gpp)reason);
44 case QMI_WDS_VERBOSE_CALL_END_REASON_TYPE_PPP:
45 return qmi_wds_verbose_call_end_reason_ppp_get_string ((QmiWdsVerboseCallEndReasonPpp)reason);
46 case QMI_WDS_VERBOSE_CALL_END_REASON_TYPE_EHRPD:
47 return qmi_wds_verbose_call_end_reason_ehrpd_get_string ((QmiWdsVerboseCallEndReasonEhrpd)reason);
48 case QMI_WDS_VERBOSE_CALL_END_REASON_TYPE_IPV6:
49 return qmi_wds_verbose_call_end_reason_ipv6_get_string ((QmiWdsVerboseCallEndReasonIpv6)reason);
50 default:
51 return NULL;
52 }
53 }