diff options
author | Benjamin Berg <bberg@redhat.com> | 2018-10-26 13:17:31 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2018-11-17 12:15:40 +0100 |
commit | eb883e34a5889812d35e5c2d7bc6051723001a3a (patch) | |
tree | d750768391c5172d71b969c118003be86e1f4f68 /src/nm-active-connection.h | |
parent | 9cef6483dc63111d5ef781ae65a8017809793d74 (diff) | |
download | NetworkManager-eb883e34a5889812d35e5c2d7bc6051723001a3a.tar.gz |
core: Add option to AddAndActivateConnection2 to bind the lifetime
This allows binding the lifetime of the created connection to the
existance of the requesting dbus client. This feature is useful if one
has a service specific connection (e.g. P2P wireless) which will not be
useful without the specific service.
This is simply a mechanism to ensure proper connection cleanup if the
requesting service has a failure.
Diffstat (limited to 'src/nm-active-connection.h')
-rw-r--r-- | src/nm-active-connection.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nm-active-connection.h b/src/nm-active-connection.h index 85689a6bfd..5b2e421507 100644 --- a/src/nm-active-connection.h +++ b/src/nm-active-connection.h @@ -190,4 +190,8 @@ gboolean nm_active_connection_get_keep_alive (NMActiveConnection *self); void nm_active_connection_clear_secrets (NMActiveConnection *self); +void nm_active_connection_bind_dbus_client (NMActiveConnection *self, + GDBusConnection *dbus_con, + const char *dbus_name); + #endif /* __NETWORKMANAGER_ACTIVE_CONNECTION_H__ */ |