1/* SPDX-License-Identifier: LGPL-2.1-or-later */
2
3#ifndef __NM_SETTING_VRF_H__
4#define __NM_SETTING_VRF_H__
5
6#if !defined(__NETWORKMANAGER_H_INSIDE__) && !defined(NETWORKMANAGER_COMPILATION)
7#error "Only <NetworkManager.h> can be included directly."
8#endif
9
10#include "nm-setting.h"
11
12G_BEGIN_DECLS
13
14#define NM_TYPE_SETTING_VRF (nm_setting_vrf_get_type())
15#define NM_SETTING_VRF(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), NM_TYPE_SETTING_VRF, NMSettingVrf))
16#define NM_SETTING_VRF_CLASS(klass) \
17 (G_TYPE_CHECK_CLASS_CAST((klass), NM_TYPE_SETTING_VRFCONFIG, NMSettingVrfClass))
18#define NM_IS_SETTING_VRF(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), NM_TYPE_SETTING_VRF))
19#define NM_IS_SETTING_VRF_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), NM_TYPE_SETTING_VRF))
20#define NM_SETTING_VRF_GET_CLASS(obj) \
21 (G_TYPE_INSTANCE_GET_CLASS((obj), NM_TYPE_SETTING_VRF, NMSettingVrfClass))
22
23#define NM_SETTING_VRF_SETTING_NAME "vrf"
24
25#define NM_SETTING_VRF_TABLE "table"
26
27typedef struct _NMSettingVrfClass NMSettingVrfClass;
28
29NM_AVAILABLE_IN_1_24
30GType nm_setting_vrf_get_type(void);
31NM_AVAILABLE_IN_1_24
32NMSetting *nm_setting_vrf_new(void);
33NM_AVAILABLE_IN_1_24
34guint32 nm_setting_vrf_get_table(NMSettingVrf *setting);
35
36G_END_DECLS
37
38#endif /* __NM_SETTING_VRF_H__ */
39

source code of include/libnm/nm-setting-vrf.h