1/* SPDX-License-Identifier: LGPL-2.1-or-later */
2/*
3 * Copyright (C) 2008 Red Hat, Inc.
4 * Copyright (C) 2008 Novell, Inc.
5 */
6
7#ifndef __NM_DHCP_CONFIG_H__
8#define __NM_DHCP_CONFIG_H__
9
10#if !defined(__NETWORKMANAGER_H_INSIDE__) && !defined(NETWORKMANAGER_COMPILATION)
11#error "Only <NetworkManager.h> can be included directly."
12#endif
13
14#include "nm-object.h"
15
16G_BEGIN_DECLS
17
18#define NM_TYPE_DHCP_CONFIG (nm_dhcp_config_get_type())
19#define NM_DHCP_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), NM_TYPE_DHCP_CONFIG, NMDhcpConfig))
20#define NM_DHCP_CONFIG_CLASS(klass) \
21 (G_TYPE_CHECK_CLASS_CAST((klass), NM_TYPE_DHCP_CONFIG, NMDhcpConfigClass))
22#define NM_IS_DHCP_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), NM_TYPE_DHCP_CONFIG))
23#define NM_IS_DHCP_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), NM_TYPE_DHCP_CONFIG))
24
25/**
26 * NMDhcpConfig:
27 */
28typedef struct _NMDhcpConfig NMDhcpConfig;
29typedef struct _NMDhcpConfigClass NMDhcpConfigClass;
30
31#define NM_DHCP_CONFIG_FAMILY "family"
32#define NM_DHCP_CONFIG_OPTIONS "options"
33
34GType nm_dhcp_config_get_type(void);
35
36int nm_dhcp_config_get_family(NMDhcpConfig *config);
37
38GHashTable *nm_dhcp_config_get_options(NMDhcpConfig *config);
39const char *nm_dhcp_config_get_one_option(NMDhcpConfig *config, const char *option);
40
41G_END_DECLS
42
43#endif /* __NM_DHCP_CONFIG_H__ */
44

source code of include/libnm/nm-dhcp-config.h