api: fix up StateChanged duplicate reason code
And add new reason codes to the C headers.
This commit is contained in:
@@ -99,11 +99,6 @@
|
|||||||
New state.
|
New state.
|
||||||
</tp:docstring>
|
</tp:docstring>
|
||||||
</arg>
|
</arg>
|
||||||
<arg name="reason" type="u">
|
|
||||||
<tp:docstring>
|
|
||||||
Reason for state transition.
|
|
||||||
</tp:docstring>
|
|
||||||
</arg>
|
|
||||||
<arg name="reason" type="u" tp:type="MM_MODEM_STATE_CHANGED_REASON">
|
<arg name="reason" type="u" tp:type="MM_MODEM_STATE_CHANGED_REASON">
|
||||||
<tp:docstring>
|
<tp:docstring>
|
||||||
Reason for this state change.
|
Reason for this state change.
|
||||||
@@ -227,20 +222,20 @@
|
|||||||
</tp:enumvalue>
|
</tp:enumvalue>
|
||||||
</tp:enum>
|
</tp:enum>
|
||||||
|
|
||||||
<tp:enum name="MM_MODEM_STATE_CHANGE_REASON" type="u">
|
<tp:enum name="MM_MODEM_STATE_CHANGED_REASON" type="u">
|
||||||
<tp:enumvalue suffix="UNKNOWN" value="0">
|
<tp:enumvalue suffix="UNKNOWN" value="0">
|
||||||
<tp:docstring>
|
<tp:docstring>
|
||||||
Reason unknown or not reportable.
|
Reason unknown or not reportable.
|
||||||
</tp:docstring>
|
</tp:docstring>
|
||||||
</tp:enumvalue>
|
</tp:enumvalue>
|
||||||
<tp:enumvalue suffix="REQUESTED" value="1">
|
<tp:enumvalue suffix="USER_REQUESTED" value="1">
|
||||||
<tp:docstring>
|
<tp:docstring>
|
||||||
Connection state change was requested by an interface user.
|
State change was requested by an interface user.
|
||||||
</tp:docstring>
|
</tp:docstring>
|
||||||
</tp:enumvalue>
|
</tp:enumvalue>
|
||||||
<tp:enumvalue suffix="SUSPEND" value="2">
|
<tp:enumvalue suffix="SUSPEND" value="2">
|
||||||
<tp:docstring>
|
<tp:docstring>
|
||||||
Connection state change was caused by a system suspend.
|
State change was caused by a system suspend.
|
||||||
</tp:docstring>
|
</tp:docstring>
|
||||||
</tp:enumvalue>
|
</tp:enumvalue>
|
||||||
</tp:enum>
|
</tp:enum>
|
||||||
|
@@ -40,7 +40,9 @@ typedef enum {
|
|||||||
} MMModemState;
|
} MMModemState;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
MM_MODEM_STATE_REASON_NONE = 0
|
MM_MODEM_STATE_REASON_NONE = 0,
|
||||||
|
MM_MODEM_STATE_REASON_USER_REQUESTED,
|
||||||
|
MM_MODEM_STATE_REASON_SUSPEND
|
||||||
} MMModemStateReason;
|
} MMModemStateReason;
|
||||||
|
|
||||||
#define DBUS_PATH_TAG "dbus-path"
|
#define DBUS_PATH_TAG "dbus-path"
|
||||||
|
Reference in New Issue
Block a user