]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/systemd/sd-dhcp6-lease.h
Add SPDX license identifiers to source files under the LGPL
[thirdparty/systemd.git] / src / systemd / sd-dhcp6-lease.h
CommitLineData
53e1b683 1/* SPDX-License-Identifier: LGPL-2.1+ */
3fb2c570
PF
2#ifndef foosddhcp6leasehfoo
3#define foosddhcp6leasehfoo
4
5/***
6 This file is part of systemd.
7
8 Copyright (C) 2014 Tom Gundersen
7bd8e95d 9 Copyright (C) 2014-2015 Intel Corporation. All rights reserved.
3fb2c570
PF
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
04c01369 25#include <inttypes.h>
ea3b3a75
PF
26#include <netinet/in.h>
27
04c01369
LP
28#include "_sd-common.h"
29
30_SD_BEGIN_DECLARATIONS;
31
3fb2c570
PF
32typedef struct sd_dhcp6_lease sd_dhcp6_lease;
33
e7504d95
PF
34void sd_dhcp6_lease_reset_address_iter(sd_dhcp6_lease *lease);
35int sd_dhcp6_lease_get_address(sd_dhcp6_lease *lease,
36 struct in6_addr *addr,
37 uint32_t *lifetime_preferred,
38 uint32_t *lifetime_valid);
ea3b3a75 39
7bd8e95d 40int sd_dhcp6_lease_get_dns(sd_dhcp6_lease *lease, struct in6_addr **addrs);
5da1b97f 41int sd_dhcp6_lease_get_domains(sd_dhcp6_lease *lease, char ***domains);
6599680e
PF
42int sd_dhcp6_lease_get_ntp_addrs(sd_dhcp6_lease *lease,
43 struct in6_addr **addrs);
44int sd_dhcp6_lease_get_ntp_fqdn(sd_dhcp6_lease *lease, char ***ntp_fqdn);
7bd8e95d 45
3fb2c570
PF
46sd_dhcp6_lease *sd_dhcp6_lease_ref(sd_dhcp6_lease *lease);
47sd_dhcp6_lease *sd_dhcp6_lease_unref(sd_dhcp6_lease *lease);
48
4afd3348
LP
49_SD_DEFINE_POINTER_CLEANUP_FUNC(sd_dhcp6_lease, sd_dhcp6_lease_unref);
50
04c01369
LP
51_SD_END_DECLARATIONS;
52
3fb2c570 53#endif