]>
Commit | Line | Data |
---|---|---|
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 | ||
23 | typedef struct Link Link; | |
24 | ||
25 | #include "networkd-wait-online.h" | |
26 | ||
27 | struct Link { | |
28 | Manager *manager; | |
29 | ||
30 | int ifindex; | |
31 | char *ifname; | |
32 | unsigned flags; | |
33 | ||
34 | char *operational_state; | |
35 | char *state; | |
36 | }; | |
37 | ||
38 | int link_new(Manager *m, Link **ret, int ifindex, const char *ifname); | |
39 | Link *link_free(Link *l); | |
1c4baffc | 40 | int link_update_rtnl(Link *l, sd_netlink_message *m); |
7de12ae7 TG |
41 | int link_update_monitor(Link *l); |
42 | bool link_relevant(Link *l); | |
43 | ||
44 | DEFINE_TRIVIAL_CLEANUP_FUNC(Link*, link_free); |