summaryrefslogtreecommitdiff
path: root/src/libqmi-glib/qmi-enums-qos.h
blob: 92058f263c9e238fff596725b5cc415061fdbebf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 * libqmi-glib -- GLib/GIO based library to control QMI devices
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library 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
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 * Boston, MA 02110-1301 USA.
 *
 * Copyright (C) 2018 Aleksander Morgado <aleksander@aleksander.es>
 */

#ifndef _LIBQMI_GLIB_QMI_ENUMS_QOS_H_
#define _LIBQMI_GLIB_QMI_ENUMS_QOS_H_

#if !defined (__LIBQMI_GLIB_H_INSIDE__) && !defined (LIBQMI_GLIB_COMPILATION)
#error "Only <libqmi-glib.h> can be included directly."
#endif

/**
 * SECTION: qmi-enums-qos
 * @title: QOS enumerations and flags
 * @short_description: Enumerations and flags in the QOS service.
 *
 * This section defines enumerations and flags used in the QOS service
 * interface.
 */

/**
 * QmiQosStatus:
 * @QMI_QOS_STATUS_UNKNOWN: Unknown.
 * @QMI_QOS_STATUS_ACTIVATED: Activated.
 * @QMI_QOS_STATUS_SUSPENDED: Suspended.
 * @QMI_QOS_STATUS_GONE: Gone.
 *
 * QoS flow status.
 *
 * Since: 1.22
 */
typedef enum { /*< since=1.22 >*/
    QMI_QOS_STATUS_UNKNOWN   = 0,
    QMI_QOS_STATUS_ACTIVATED = 1,
    QMI_QOS_STATUS_SUSPENDED = 2,
    QMI_QOS_STATUS_GONE      = 3,
} QmiQosStatus;

/**
 * QmiQosEvent:
 * @QMI_QOS_EVENT_UNKNOWN: Unknown.
 * @QMI_QOS_EVENT_ACTIVATED: Activated.
 * @QMI_QOS_EVENT_SUSPENDED: Suspended.
 * @QMI_QOS_EVENT_GONE: Gone.
 * @QMI_QOS_EVENT_MODIFY_ACCEPTED: Modify accepted.
 * @QMI_QOS_EVENT_MODIFY_REJECTED: Modify rejected.
 * @QMI_QOS_EVENT_INFO_CODE_UPDATED: Information code updated.
 *
 * QoS event.
 *
 * Since: 1.22
 */
typedef enum { /*< since=1.22 >*/
    QMI_QOS_EVENT_UNKNOWN           = 0,
    QMI_QOS_EVENT_ACTIVATED         = 1,
    QMI_QOS_EVENT_SUSPENDED         = 2,
    QMI_QOS_EVENT_GONE              = 3,
    QMI_QOS_EVENT_MODIFY_ACCEPTED   = 4,
    QMI_QOS_EVENT_MODIFY_REJECTED   = 5,
    QMI_QOS_EVENT_INFO_CODE_UPDATED = 6,
} QmiQosEvent;

#endif /* _LIBQMI_GLIB_QMI_ENUMS_QOS_H_ */