chiark / gitweb /
bus: add sd_bus_emit_object_{added/removed}()
[elogind.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 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 <netinet/in.h>
27
28 typedef struct sd_dhcp6_lease sd_dhcp6_lease;
29
30 int sd_dhcp6_lease_get_first_address(sd_dhcp6_lease *lease,
31                                      struct in6_addr *addr,
32                                      uint32_t *lifetime_preferred,
33                                      uint32_t *lifetime_valid);
34 int sd_dhcp6_lease_get_next_address(sd_dhcp6_lease *lease,
35                                     struct in6_addr *addr,
36                                     uint32_t *lifetime_preferred,
37                                     uint32_t *lifetime_valid);
38
39 sd_dhcp6_lease *sd_dhcp6_lease_ref(sd_dhcp6_lease *lease);
40 sd_dhcp6_lease *sd_dhcp6_lease_unref(sd_dhcp6_lease *lease);
41
42 #endif