summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-state-file.h
blob: 7efd1578da09cea1d1f1946f7fbb84fe71bec87f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once

typedef struct Link Link;
typedef struct Manager Manager;

void link_dirty(Link *link);
void link_clean(Link *link);
int link_save_and_clean_full(Link *link, bool also_save_manager);
static inline int link_save_and_clean(Link *link) {
        return link_save_and_clean_full(link, false);
}

int manager_save(Manager *m);
int manager_clean_all(Manager *manager);