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 | |
16 | G_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 | */ |
28 | typedef struct _NMDhcpConfigClass NMDhcpConfigClass; |
29 | |
30 | #define NM_DHCP_CONFIG_FAMILY "family" |
31 | #define NM_DHCP_CONFIG_OPTIONS "options" |
32 | |
33 | GType nm_dhcp_config_get_type(void); |
34 | |
35 | int nm_dhcp_config_get_family(NMDhcpConfig *config); |
36 | |
37 | GHashTable *nm_dhcp_config_get_options(NMDhcpConfig *config); |
38 | const char *nm_dhcp_config_get_one_option(NMDhcpConfig *config, const char *option); |
39 | |
40 | G_END_DECLS |
41 | |
42 | #endif /* __NM_DHCP_CONFIG_H__ */ |
43 | |