]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/systemd/sd-dhcp-option.h
dhcp: remove struct sd_dhcp_raw_option
[thirdparty/systemd.git] / src / systemd / sd-dhcp-option.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #ifndef foosddhcpoptionhfoo
3 #define foosddhcpoptionhfoo
4
5 /***
6 Copyright © 2013 Intel Corporation. All rights reserved.
7 systemd is free software; you can redistribute it and/or modify it
8 under the terms of the GNU Lesser General Public License as published by
9 the Free Software Foundation; either version 2.1 of the License, or
10 (at your option) any later version.
11
12 systemd is distributed in the hope that it will be useful, but
13 WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public License
18 along with systemd; If not, see <http://www.gnu.org/licenses/>.
19 ***/
20
21 #include <inttypes.h>
22 #include <sys/types.h>
23
24 #include "_sd-common.h"
25
26 _SD_BEGIN_DECLARATIONS;
27
28 typedef struct sd_dhcp_option sd_dhcp_option;
29
30 int sd_dhcp_option_new(uint8_t option, const void *data, size_t length, sd_dhcp_option **ret);
31 sd_dhcp_option *sd_dhcp_option_ref(sd_dhcp_option *ra);
32 sd_dhcp_option *sd_dhcp_option_unref(sd_dhcp_option *ra);
33
34 _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_dhcp_option, sd_dhcp_option_unref);
35
36 _SD_END_DECLARATIONS;
37
38 #endif