mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-06 21:20:20 +01:00
Currently "src/" mostly contains the source code of the daemon. I say mostly, because that is not true, there are also the device, settings, wwan, ppp plugins, the initrd generator, the pppd and dhcp helper, and probably more. Also we have source code under libnm-core/, libnm/, clients/, and shared/ directories. That is all confusing. We should have one "src" directory, that contains subdirectories. Those subdirectories should contain individual parts (libraries or applications), that possibly have dependencies on other subdirectories. There should be a flat hierarchy of directories under src/, which contains individual modules. As the name "src/" is already taken, that prevents any sensible restructuring of the code. As a first step, move "src/" to "src/core/". This gives space to reorganize the code better by moving individual components into "src/". For inspiration, look at systemd's "src/" directory. https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/743
44 lines
1.9 KiB
C
44 lines
1.9 KiB
C
/* 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__ */
|