summaryrefslogtreecommitdiff
path: root/src/nm-active-connection.h
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2016-03-23 14:47:02 +0100
committerLubomir Rintel <lkundrak@v3.sk>2016-03-26 11:31:18 +0100
commit6e382ea91d5f3a97e195c46792a390b8ddaaa433 (patch)
treebd84f6928dbada270d44c42bfd8e359bb8ab8706 /src/nm-active-connection.h
parentce745e098a469900912353e8226aacd6253a5a42 (diff)
downloadNetworkManager-6e382ea91d5f3a97e195c46792a390b8ddaaa433.tar.gz
active-connection: add parent active connection tracking
Make it possible to let active connection know about an active connection it depends on and emit a signal when the parent is active.
Diffstat (limited to 'src/nm-active-connection.h')
-rw-r--r--src/nm-active-connection.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nm-active-connection.h b/src/nm-active-connection.h
index a7b3d0cd34..a66f8e9ffc 100644
--- a/src/nm-active-connection.h
+++ b/src/nm-active-connection.h
@@ -58,6 +58,7 @@
/* Internal signals*/
#define NM_ACTIVE_CONNECTION_DEVICE_CHANGED "device-changed"
#define NM_ACTIVE_CONNECTION_DEVICE_METERED_CHANGED "device-metered-changed"
+#define NM_ACTIVE_CONNECTION_PARENT_ACTIVE "parent-active"
struct _NMActiveConnection {
NMExportedObject parent;
@@ -81,6 +82,8 @@ typedef struct {
void (*device_metered_changed) (NMActiveConnection *connection,
NMMetered new_value);
+
+ void (*parent_active) (NMActiveConnection *connection);
} NMActiveConnectionClass;
guint64 nm_active_connection_version_id_get (NMActiveConnection *self);
@@ -148,6 +151,9 @@ gboolean nm_active_connection_get_master_ready (NMActiveConnection *self);
void nm_active_connection_set_master (NMActiveConnection *self,
NMActiveConnection *master);
+void nm_active_connection_set_parent (NMActiveConnection *self,
+ NMActiveConnection *parent);
+
void nm_active_connection_set_assumed (NMActiveConnection *self,
gboolean assumed);