]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/network/networkd-wait-online-link.h
networkd: add dbus interface for lease raw options (#3528)
[thirdparty/systemd.git] / src / network / networkd-wait-online-link.h
CommitLineData
7de12ae7
TG
1#pragma once
2
3/***
4 This file is part of systemd.
5
6 Copyright 2014 Lennart Poettering
7 Copyright 2014 Tom Gundersen
8
9 systemd is free software; you can redistribute it and/or modify it
10 under the terms of the GNU Lesser General Public License as published by
11 the Free Software Foundation; either version 2.1 of the License, or
12 (at your option) any later version.
13
14 systemd is distributed in the hope that it will be useful, but
15 WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 Lesser General Public License for more details.
18
19 You should have received a copy of the GNU Lesser General Public License
20 along with systemd; If not, see <http://www.gnu.org/licenses/>.
21***/
22
23typedef struct Link Link;
24
25#include "networkd-wait-online.h"
26
27struct Link {
28 Manager *manager;
29
30 int ifindex;
31 char *ifname;
32 unsigned flags;
33
34 char *operational_state;
35 char *state;
36};
37
38int link_new(Manager *m, Link **ret, int ifindex, const char *ifname);
39Link *link_free(Link *l);
1c4baffc 40int link_update_rtnl(Link *l, sd_netlink_message *m);
7de12ae7
TG
41int link_update_monitor(Link *l);
42bool link_relevant(Link *l);
43
44DEFINE_TRIVIAL_CLEANUP_FUNC(Link*, link_free);