diff options
| author | Sebastien Bacher <seb128@ubuntu.com> | 2021-02-25 11:36:45 +0100 |
|---|---|---|
| committer | Sebastien Bacher <seb128@ubuntu.com> | 2021-02-25 11:36:45 +0100 |
| commit | d92aa7f298fe84d4cf686c5ad64b73438e00d377 (patch) | |
| tree | 2f1f4c7b48cff9e63b0d0e3669bada3d9aeda72e /src/core/nm-checkpoint-manager.h | |
| parent | a82e048a943092315a32d745c99e0f5635e29134 (diff) | |
| parent | 3a56bce6c0ea7ba0fe269520547740783b342e0d (diff) | |
Merge branch 'upstream/latest' of https://salsa.debian.org/utopia-team/network-manager into upstream/latest
Diffstat (limited to 'src/core/nm-checkpoint-manager.h')
| -rw-r--r-- | src/core/nm-checkpoint-manager.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/core/nm-checkpoint-manager.h b/src/core/nm-checkpoint-manager.h new file mode 100644 index 00000000..7fe86d60 --- /dev/null +++ b/src/core/nm-checkpoint-manager.h @@ -0,0 +1,44 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2016 Red Hat, Inc. + */ + +#ifndef __NM_CHECKPOINT_MANAGER_H__ +#define __NM_CHECKPOINT_MANAGER_H__ + +#include "nm-dbus-interface.h" + +#include "nm-checkpoint.h" + +typedef struct _NMCheckpointManager NMCheckpointManager; + +NMCheckpointManager *nm_checkpoint_manager_new(NMManager *manager, GParamSpec *spec); + +void nm_checkpoint_manager_free(NMCheckpointManager *self); + +NMCheckpoint * +nm_checkpoint_manager_lookup_by_path(NMCheckpointManager *self, const char *path, GError **error); + +NMCheckpoint *nm_checkpoint_manager_create(NMCheckpointManager * self, + const char *const * device_names, + guint32 rollback_timeout, + NMCheckpointCreateFlags flags, + GError ** error); + +void nm_checkpoint_manager_destroy_all(NMCheckpointManager *self); + +gboolean nm_checkpoint_manager_destroy(NMCheckpointManager *self, const char *path, GError **error); +gboolean nm_checkpoint_manager_rollback(NMCheckpointManager *self, + const char * path, + GVariant ** results, + GError ** error); + +gboolean nm_checkpoint_manager_adjust_rollback_timeout(NMCheckpointManager *self, + const char * path, + guint32 add_timeout, + GError ** error); + +const char **nm_checkpoint_manager_get_checkpoint_paths(NMCheckpointManager *self, + guint * out_length); + +#endif /* __NM_CHECKPOINT_MANAGER_H__ */ |