summaryrefslogtreecommitdiff
path: root/src/nm-active-connection.h
diff options
context:
space:
mode:
authorBenjamin Berg <bberg@redhat.com>2018-10-10 17:10:01 +0200
committerThomas Haller <thaller@redhat.com>2018-11-17 12:15:40 +0100
commit37e8c53eeed579fe34a68819cd12f3295d581394 (patch)
tree7aecc1cf4243e90742fd375d082b60672aebb1af /src/nm-active-connection.h
parentfaba9b12def20151ced42de28d183ebc3420ebcf (diff)
downloadNetworkManager-37e8c53eeed579fe34a68819cd12f3295d581394.tar.gz
core: Introduce helper class to track connection keep alive
For P2P connections it makes sense to bind the connection to the status of the operation that is being done. One example is that a wifi display (miracast) P2P connection should be shut down when streaming fails for some reason. This new helper class allows binding a connection to the presence of a DBus path meaning that it will be torn down if the process disappears.
Diffstat (limited to 'src/nm-active-connection.h')
-rw-r--r--src/nm-active-connection.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nm-active-connection.h b/src/nm-active-connection.h
index b28c2b02fd..85689a6bfd 100644
--- a/src/nm-active-connection.h
+++ b/src/nm-active-connection.h
@@ -59,6 +59,7 @@
#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"
+#define NM_ACTIVE_CONNECTION_INT_KEEP_ALIVE "int-keep-alive"
/* Signals */
#define NM_ACTIVE_CONNECTION_STATE_CHANGED "state-changed"
@@ -185,6 +186,8 @@ NMActivationType nm_active_connection_get_activation_type (NMActiveConnection *s
NMActivationReason nm_active_connection_get_activation_reason (NMActiveConnection *self);
+gboolean nm_active_connection_get_keep_alive (NMActiveConnection *self);
+
void nm_active_connection_clear_secrets (NMActiveConnection *self);
#endif /* __NETWORKMANAGER_ACTIVE_CONNECTION_H__ */