summaryrefslogtreecommitdiff
path: root/src/nm-active-connection.h
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2018-03-28 17:18:04 +0200
committerBeniamino Galvani <bgalvani@redhat.com>2018-04-08 09:40:14 +0200
commit43a0f47ea20b4a55dac9d914c76fff67d9b3d750 (patch)
tree95788686c535fb6921d965a8f0d8117202634f90 /src/nm-active-connection.h
parentd607f288993f15d18754605840ced70979fd3fec (diff)
downloadNetworkManager-43a0f47ea20b4a55dac9d914c76fff67d9b3d750.tar.gz
core: specify an activation reason for active connections
Specify a reason when creating active connections. The reason will be used in the next commit to tell whether slaves must be reconnected or not if a master has autoconnect-slaves=yes.
Diffstat (limited to 'src/nm-active-connection.h')
-rw-r--r--src/nm-active-connection.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/nm-active-connection.h b/src/nm-active-connection.h
index 4d893e2c76..45a5ac427a 100644
--- a/src/nm-active-connection.h
+++ b/src/nm-active-connection.h
@@ -53,11 +53,12 @@
/* Internal non-exported properties */
#define NM_ACTIVE_CONNECTION_INT_SETTINGS_CONNECTION "int-settings-connection"
#define NM_ACTIVE_CONNECTION_INT_APPLIED_CONNECTION "int-applied-connection"
-#define NM_ACTIVE_CONNECTION_INT_DEVICE "int-device"
-#define NM_ACTIVE_CONNECTION_INT_SUBJECT "int-subject"
-#define NM_ACTIVE_CONNECTION_INT_MASTER "int-master"
-#define NM_ACTIVE_CONNECTION_INT_MASTER_READY "int-master-ready"
-#define NM_ACTIVE_CONNECTION_INT_ACTIVATION_TYPE "int-activation-type"
+#define NM_ACTIVE_CONNECTION_INT_DEVICE "int-device"
+#define NM_ACTIVE_CONNECTION_INT_SUBJECT "int-subject"
+#define NM_ACTIVE_CONNECTION_INT_MASTER "int-master"
+#define NM_ACTIVE_CONNECTION_INT_MASTER_READY "int-master-ready"
+#define NM_ACTIVE_CONNECTION_INT_ACTIVATION_TYPE "int-activation-type"
+#define NM_ACTIVE_CONNECTION_INT_ACTIVATION_REASON "int-activation-reason"
/* Signals */
#define NM_ACTIVE_CONNECTION_STATE_CHANGED "state-changed"
@@ -184,6 +185,8 @@ void nm_active_connection_set_parent (NMActiveConnection *self,
NMActivationType nm_active_connection_get_activation_type (NMActiveConnection *self);
+NMActivationReason nm_active_connection_get_activation_reason (NMActiveConnection *self);
+
void nm_active_connection_clear_secrets (NMActiveConnection *self);
#endif /* __NETWORKMANAGER_ACTIVE_CONNECTION_H__ */