From 3e09aed2a09fab11f66b8228e48dc8f732c65cce Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Fri, 1 Jul 2016 12:11:01 +0200 Subject: [PATCH] checkpoint: add create, rollback and destroy D-Bus API Co-authored-by: Thomas Haller --- introspection/Makefile.am | 4 + introspection/nm-checkpoint.xml | 42 ++++ introspection/nm-manager.xml | 41 +++ libnm-core/nm-dbus-interface.h | 34 +++ src/Makefile.am | 6 + src/nm-checkpoint-manager.c | 298 ++++++++++++++++++++++ src/nm-checkpoint-manager.h | 50 ++++ src/nm-checkpoint.c | 433 ++++++++++++++++++++++++++++++++ src/nm-checkpoint.h | 49 ++++ src/nm-manager.c | 125 ++++++++- src/nm-manager.h | 2 + 11 files changed, 1082 insertions(+), 2 deletions(-) create mode 100644 introspection/nm-checkpoint.xml create mode 100644 src/nm-checkpoint-manager.c create mode 100644 src/nm-checkpoint-manager.h create mode 100644 src/nm-checkpoint.c create mode 100644 src/nm-checkpoint.h diff --git a/introspection/Makefile.am b/introspection/Makefile.am index 3a627930b..d4762637a 100644 --- a/introspection/Makefile.am +++ b/introspection/Makefile.am @@ -17,6 +17,8 @@ nodist_libnmdbus_la_SOURCES = \ nmdbus-active-connection.h \ nmdbus-agent-manager.c \ nmdbus-agent-manager.h \ + nmdbus-checkpoint.c \ + nmdbus-checkpoint.h \ nmdbus-device-adsl.c \ nmdbus-device-adsl.h \ nmdbus-device-bond.c \ @@ -81,6 +83,7 @@ nodist_libnmdbus_la_SOURCES = \ DBUS_INTERFACE_DOCS = \ nmdbus-access-point-org.freedesktop.NetworkManager.AccessPoint.xml \ nmdbus-active-connection-org.freedesktop.NetworkManager.Connection.Active.xml \ + nmdbus-checkpoint-org.freedesktop.NetworkManager.Checkpoint.xml \ nmdbus-device-team-org.freedesktop.NetworkManager.Device.Team.xml \ nmdbus-dhcp6-config-org.freedesktop.NetworkManager.DHCP6Config.xml \ nmdbus-device-wifi-org.freedesktop.NetworkManager.Device.Wireless.xml \ @@ -139,6 +142,7 @@ EXTRA_DIST = \ nm-access-point.xml \ nm-active-connection.xml \ nm-agent-manager.xml \ + nm-checkpoint.xml \ nm-device-adsl.xml \ nm-device-bond.xml \ nm-device-bridge.xml \ diff --git a/introspection/nm-checkpoint.xml b/introspection/nm-checkpoint.xml new file mode 100644 index 000000000..d0fbda8de --- /dev/null +++ b/introspection/nm-checkpoint.xml @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/introspection/nm-manager.xml b/introspection/nm-manager.xml index ea368ba33..95cc16cab 100644 --- a/introspection/nm-manager.xml +++ b/introspection/nm-manager.xml @@ -205,6 +205,47 @@ + + + + + + + + + + + + + + + + + + +