From 00b6cce4df7d4acbf3e580a03c2f044e18589d2c Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Mon, 24 Jan 2011 14:36:24 -0600 Subject: [PATCH] api: fix up StateChanged duplicate reason code And add new reason codes to the C headers. --- .../org.freedesktop.ModemManager.Modem.xml | 13 ++++--------- src/mm-modem.h | 4 +++- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/introspection/org.freedesktop.ModemManager.Modem.xml b/introspection/org.freedesktop.ModemManager.Modem.xml index 37b9fc7a..3f6f0bbc 100644 --- a/introspection/org.freedesktop.ModemManager.Modem.xml +++ b/introspection/org.freedesktop.ModemManager.Modem.xml @@ -99,11 +99,6 @@ New state. - - - Reason for state transition. - - Reason for this state change. @@ -227,20 +222,20 @@ - + Reason unknown or not reportable. - + - Connection state change was requested by an interface user. + State change was requested by an interface user. - Connection state change was caused by a system suspend. + State change was caused by a system suspend. diff --git a/src/mm-modem.h b/src/mm-modem.h index 8a755d88..7f0bf58d 100644 --- a/src/mm-modem.h +++ b/src/mm-modem.h @@ -40,7 +40,9 @@ typedef enum { } MMModemState; 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; #define DBUS_PATH_TAG "dbus-path"