1/* SPDX-License-Identifier: LGPL-2.1-or-later */
2
3#ifndef __NM_DEVICE_VRF_H__
4#define __NM_DEVICE_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-device.h"
11
12G_BEGIN_DECLS
13
14#define NM_TYPE_DEVICE_VRF (nm_device_vrf_get_type())
15#define NM_DEVICE_VRF(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), NM_TYPE_DEVICE_VRF, NMDeviceVrf))
16#define NM_DEVICE_VRF_CLASS(klass) \
17 (G_TYPE_CHECK_CLASS_CAST((klass), NM_TYPE_DEVICE_VRF, NMDeviceVrfClass))
18#define NM_IS_DEVICE_VRF(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), NM_TYPE_DEVICE_VRF))
19#define NM_IS_DEVICE_VRF_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), NM_TYPE_DEVICE_VRF))
20#define NM_DEVICE_VRF_GET_CLASS(obj) \
21 (G_TYPE_INSTANCE_GET_CLASS((obj), NM_TYPE_DEVICE_VRF, NMDeviceVrfClass))
22
23#define NM_DEVICE_VRF_TABLE "table"
24
25/**
26 * NMDeviceVrf:
27 *
28 * Since: 1.24
29 */
30typedef struct _NMDeviceVrf NMDeviceVrf;
31typedef struct _NMDeviceVrfClass NMDeviceVrfClass;
32
33NM_AVAILABLE_IN_1_24
34GType nm_device_vrf_get_type(void);
35NM_AVAILABLE_IN_1_24
36guint32 nm_device_vrf_get_table(NMDeviceVrf *device);
37
38G_END_DECLS
39
40#endif /* __NM_DEVICE_VRF_H__ */
41

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