summaryrefslogtreecommitdiff
path: root/src/nm-active-connection.h
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2017-03-05 15:30:24 +0100
committerLubomir Rintel <lkundrak@v3.sk>2017-03-17 10:21:19 +0100
commit8b649a8c84c0d46c1d4108da34567ee37765acd8 (patch)
tree5275ec0d9e0fd624ef9d8cccfa5aba738bb27253 /src/nm-active-connection.h
parent67688fd2e5d68ef0f59b8034ed7f8d2f925f07e1 (diff)
downloadNetworkManager-8b649a8c84c0d46c1d4108da34567ee37765acd8.tar.gz
active-connection: emit a StateChanged signal on state changes
It includes a reason code that makes it possible for the clients to be more reasonable about error messages. The reason code is essentially copied from the VPN, plus three more reasons that were useful for non-VPN connections.
Diffstat (limited to 'src/nm-active-connection.h')
-rw-r--r--src/nm-active-connection.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nm-active-connection.h b/src/nm-active-connection.h
index ba231c3077..8d3478c79d 100644
--- a/src/nm-active-connection.h
+++ b/src/nm-active-connection.h
@@ -57,6 +57,9 @@
#define NM_ACTIVE_CONNECTION_INT_MASTER_READY "int-master-ready"
#define NM_ACTIVE_CONNECTION_INT_ACTIVATION_TYPE "int-activation-type"
+/* Signals */
+#define NM_ACTIVE_CONNECTION_STATE_CHANGED "state-changed"
+
/* Internal signals*/
#define NM_ACTIVE_CONNECTION_DEVICE_CHANGED "device-changed"
#define NM_ACTIVE_CONNECTION_DEVICE_METERED_CHANGED "device-metered-changed"
@@ -139,7 +142,8 @@ gboolean nm_active_connection_get_default6 (NMActiveConnection *self);
NMActiveConnectionState nm_active_connection_get_state (NMActiveConnection *self);
void nm_active_connection_set_state (NMActiveConnection *self,
- NMActiveConnectionState state);
+ NMActiveConnectionState state,
+ NMActiveConnectionStateReason reason);
NMDevice * nm_active_connection_get_device (NMActiveConnection *self);