summaryrefslogtreecommitdiff
path: root/src/nm-active-connection.h
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-02-11 08:36:39 +0100
committerThomas Haller <thaller@redhat.com>2016-02-16 11:24:49 +0100
commitb96a40c2ec9e4318e7d2a578396236f68e487710 (patch)
treeb0e3e9e8005b79d8ae13499e7d22c877c5032045 /src/nm-active-connection.h
parent4b76d866981b65f9e9ee282dc901ab907f546221 (diff)
downloadNetworkManager-b96a40c2ec9e4318e7d2a578396236f68e487710.tar.gz
core: add version-id to NMActiveConnection
This field will be later used by NMDevice's Reapply and GetAppliedConnection methods. The usecase is to first fetch the currently applied connection, adjust it and reapply it. Using the version-id, a concurrent modification can be detected and Reapply can reject the invocation.
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 f57f2081f1..a7b3d0cd34 100644
--- a/src/nm-active-connection.h
+++ b/src/nm-active-connection.h
@@ -83,6 +83,9 @@ typedef struct {
NMMetered new_value);
} NMActiveConnectionClass;
+guint64 nm_active_connection_version_id_get (NMActiveConnection *self);
+guint64 nm_active_connection_version_id_bump (NMActiveConnection *self);
+
GType nm_active_connection_get_type (void);
typedef void (*NMActiveConnectionAuthResultFunc) (NMActiveConnection *self,