]> git.proxmox.com Git - systemd.git/blob - src/systemd/sd-dhcp6-lease.h
Enable seccomp support on powerpc, ppc64el, and s390x
[systemd.git] / src / systemd / sd-dhcp6-lease.h
1 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
2
3 #ifndef foosddhcp6leasehfoo
4 #define foosddhcp6leasehfoo
5
6 /***
7 This file is part of systemd.
8
9 Copyright (C) 2014 Tom Gundersen
10 Copyright (C) 2014-2015 Intel Corporation. All rights reserved.
11
12 systemd is free software; you can redistribute it and/or modify it
13 under the terms of the GNU Lesser General Public License as published by
14 the Free Software Foundation; either version 2.1 of the License, or
15 (at your option) any later version.
16
17 systemd is distributed in the hope that it will be useful, but
18 WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 Lesser General Public License for more details.
21
22 You should have received a copy of the GNU Lesser General Public License
23 along with systemd; If not, see <http://www.gnu.org/licenses/>.
24 ***/
25
26 #include <inttypes.h>
27 #include <netinet/in.h>
28
29 #include "_sd-common.h"
30
31 _SD_BEGIN_DECLARATIONS;
32
33 typedef struct sd_dhcp6_lease sd_dhcp6_lease;
34
35 void sd_dhcp6_lease_reset_address_iter(sd_dhcp6_lease *lease);
36 int sd_dhcp6_lease_get_address(sd_dhcp6_lease *lease,
37 struct in6_addr *addr,
38 uint32_t *lifetime_preferred,
39 uint32_t *lifetime_valid);
40
41 int sd_dhcp6_lease_get_dns(sd_dhcp6_lease *lease, struct in6_addr **addrs);
42 int sd_dhcp6_lease_get_domains(sd_dhcp6_lease *lease, char ***domains);
43 int sd_dhcp6_lease_get_ntp_addrs(sd_dhcp6_lease *lease,
44 struct in6_addr **addrs);
45 int sd_dhcp6_lease_get_ntp_fqdn(sd_dhcp6_lease *lease, char ***ntp_fqdn);
46
47 sd_dhcp6_lease *sd_dhcp6_lease_ref(sd_dhcp6_lease *lease);
48 sd_dhcp6_lease *sd_dhcp6_lease_unref(sd_dhcp6_lease *lease);
49
50 _SD_END_DECLARATIONS;
51
52 #endif