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