From f60117b41d5433be1b4a96d82cd11d0c3dce9b63 Mon Sep 17 00:00:00 2001
From: Michael Biebl
+
+const GPtrArray *
+
+
+nm_client_get_checkpoints ()
+
+
+
+
+void
+
+
+nm_client_checkpoint_create ()
+
+
+
+
+NMCheckpoint *
+
+
+nm_client_checkpoint_create_finish ()
+
+
+
+
+void
+
+
+nm_client_checkpoint_destroy ()
+
+
+
+
+gboolean
+
+
+nm_client_checkpoint_destroy_finish ()
+
+
+
+
+void
+
+
+nm_client_checkpoint_rollback ()
+
+
+
+
+GHashTable *
+
+
+nm_client_checkpoint_rollback_finish ()
+
+
+
+
+void
+
+
+nm_client_checkpoint_adjust_rollback_timeout ()
+
+
+
@@ -606,6 +677,12 @@
+gboolean
+
+
+nm_client_checkpoint_adjust_rollback_timeout_finish ()
+
+
+
GPtrArray *
+checkpoints
+Read
+
+
@@ -3470,6 +3547,438 @@ and should not be modified.
+GPtrArray *
connections
Read
Since: 1.6
+const GPtrArray *
+nm_client_get_checkpoints (NMClient *client);
+Gets all the active checkpoints.
+ +a GPtrArray +containing all the NMCheckpoint. The returned array is owned by the +NMClient object and should not be modified.
+[transfer none][element-type NMCheckpoint]
+Since: 1.12
+void +nm_client_checkpoint_create (+NMClient *client, +const GPtrArray *devices, +guint32 rollback_timeout, +NMCheckpointCreateFlags flags, +GCancellable *cancellable, +GAsyncReadyCallback callback, +gpointer user_data);
Creates a checkpoint of the current networking configuration
+for given interfaces. An empty devices
+ argument means all
+devices. If rollback_timeout
+ is not zero, a rollback is
+automatically performed after the given timeout.
client |
+the |
++ |
devices |
+a list of devices for which a +checkpoint should be created. |
+[element-type NMDevice] | +
rollback_timeout |
+the rollback timeout in seconds |
++ |
flags |
+creation flags |
++ |
cancellable |
+a GCancellable, or |
++ |
callback |
+callback to be called when the add operation completes. |
+[scope async] | +
user_data |
+caller-specific data passed to |
+[closure] | +
Since: 1.12
+NMCheckpoint * +nm_client_checkpoint_create_finish (+NMClient *client, +GAsyncResult *result, +GError **error);
Gets the result of a call to nm_client_checkpoint_create().
client |
+the NMClient |
++ |
result |
+the result passed to the GAsyncReadyCallback |
++ |
error |
++ | + |
the new NMCheckpoint on success, NULL on
+failure, in which case error
+will be set.
[transfer full]
+Since: 1.12
+void +nm_client_checkpoint_destroy (+NMClient *client, +const char *checkpoint_path, +GCancellable *cancellable, +GAsyncReadyCallback callback, +gpointer user_data);
Destroys an existing checkpoint without performing a rollback.
+client |
+the |
++ |
checkpoint_path |
+the D-Bus path for the checkpoint |
++ |
cancellable |
+a GCancellable, or |
++ |
callback |
+callback to be called when the add operation completes. |
+[scope async] | +
user_data |
+caller-specific data passed to |
+[closure] | +
Since: 1.12
+gboolean +nm_client_checkpoint_destroy_finish (+NMClient *client, +GAsyncResult *result, +GError **error);
Gets the result of a call to nm_client_checkpoint_destroy().
client |
+an NMClient |
++ |
result |
+the result passed to the GAsyncReadyCallback |
++ |
error |
++ | + |
Since: 1.12
+void +nm_client_checkpoint_rollback (+NMClient *client, +const char *checkpoint_path, +GCancellable *cancellable, +GAsyncReadyCallback callback, +gpointer user_data);
Performs the rollback of a checkpoint before the timeout is reached.
+client |
+the |
++ |
checkpoint_path |
+the D-Bus path to the checkpoint |
++ |
cancellable |
+a GCancellable, or |
++ |
callback |
+callback to be called when the add operation completes. |
+[scope async] | +
user_data |
+caller-specific data passed to |
+[closure] | +
Since: 1.12
+GHashTable * +nm_client_checkpoint_rollback_finish (+NMClient *client, +GAsyncResult *result, +GError **error);
Gets the result of a call to nm_client_checkpoint_rollback().
client |
+an NMClient |
++ |
result |
+the result passed to the GAsyncReadyCallback |
++ |
error |
++ | + |
an hash table of +devices and results. Devices are represented by their original +D-Bus path; each result is a NMRollbackResult.
+[transfer full][element-type utf8 guint32]
+Since: 1.12
+void +nm_client_checkpoint_adjust_rollback_timeout + (+NMClient *client, +const char *checkpoint_path, +guint32 add_timeout, +GCancellable *cancellable, +GAsyncReadyCallback callback, +gpointer user_data);
Resets the timeout for the checkpoint with path checkpoint_path
+
+to timeout_add
+.
client |
+the |
++ |
checkpoint_path |
+a D-Bus path to a checkpoint |
++ |
add_timeout |
+the timeout in seconds counting from now. +Set to zero, to disable the timeout. |
++ |
cancellable |
+a GCancellable, or |
++ |
callback |
+callback to be called when the add operation completes. |
+[scope async] | +
user_data |
+caller-specific data passed to |
+[closure] | +
Since: 1.12
+gboolean +nm_client_checkpoint_adjust_rollback_timeout_finish + (+NMClient *client, +GAsyncResult *result, +GError **error);
Gets the result of a call to nm_client_checkpoint_adjust_rollback_timeout().
client |
+an NMClient |
++ |
result |
+the result passed to the GAsyncReadyCallback |
++ |
error |
++ | + |
Since: 1.12
+“active-connections” property“active-connections” GPtrArray *
The active connections.
-Element-type: NMActiveConnection
+[type GPtrArray(NMActiveConnection)]
Flags: Read
“all-devices” property “all-devices” GPtrArray *
List of both real devices and device placeholders.
-Element-type: NMDevice
+[type GPtrArray(NMDevice)]
Flags: Read
Since: 1.2
@@ -3980,13 +4489,22 @@ likely to become the new +“checkpoints” property “checkpoints” GPtrArray *
+The list of active checkpoints.
+[type GPtrArray(NMCheckpoint)]
+Flags: Read
+Since: 1.12
+ +“connections” property“connections” GPtrArray *
The list of configured connections that are available to the user. (Note that this differs from the underlying D-Bus property, which may also contain the object paths of connections that the user does not have permission to read the details of.)
-Element-type: NMRemoteConnection
+[type GPtrArray(NMRemoteConnection)]
Flags: Read
“devices” property “devices” GPtrArray *
List of real network devices. Does not include placeholder devices.
-Element-type: NMDevice
+[type GPtrArray(NMDevice)]
Flags: Read
[type GPtrArray(GVariant)]
Flags: Read
Since: 1.6
-- cgit 1.3.0-6-gf8a5