1/* SPDX-License-Identifier: LGPL-2.1-or-later */
2/*
3 * Copyright (C) 2012 Red Hat, Inc.
4 */
5
6#ifndef __NM_SETTING_BOND_PORT_H__
7#define __NM_SETTING_BOND_PORT_H__
8
9#if !defined(__NETWORKMANAGER_H_INSIDE__) && !defined(NETWORKMANAGER_COMPILATION)
10#error "Only <NetworkManager.h> can be included directly."
11#endif
12
13#include "nm-setting.h"
14#include "nm-setting-bond.h"
15
16G_BEGIN_DECLS
17
18#define NM_TYPE_SETTING_BOND_PORT (nm_setting_bond_port_get_type())
19#define NM_SETTING_BOND_PORT(obj) \
20 (G_TYPE_CHECK_INSTANCE_CAST((obj), NM_TYPE_SETTING_BOND_PORT, NMSettingBondPort))
21#define NM_SETTING_BOND_PORT_CLASS(klass) \
22 (G_TYPE_CHECK_CLASS_CAST((klass), NM_TYPE_SETTING_BOND_PORT, NMSettingBondPortClass))
23#define NM_IS_SETTING_BOND_PORT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), NM_TYPE_SETTING_BOND_PORT))
24#define NM_IS_SETTING_BOND_PORT_CLASS(klass) \
25 (G_TYPE_CHECK_CLASS_TYPE((klass), NM_TYPE_SETTING_BOND_PORT))
26#define NM_SETTING_BOND_PORT_GET_CLASS(obj) \
27 (G_TYPE_INSTANCE_GET_CLASS((obj), NM_TYPE_SETTING_BOND_PORT, NMSettingBondPortClass))
28
29#define NM_SETTING_BOND_PORT_SETTING_NAME "bond-port"
30
31#define NM_SETTING_BOND_PORT_QUEUE_ID "queue-id"
32
33typedef struct _NMSettingBondPortClass NMSettingBondPortClass;
34
35NM_AVAILABLE_IN_1_34
36GType nm_setting_bond_port_get_type(void);
37
38NM_AVAILABLE_IN_1_34
39NMSetting *nm_setting_bond_port_new(void);
40
41NM_AVAILABLE_IN_1_34
42guint32 nm_setting_bond_port_get_queue_id(NMSettingBondPort *setting);
43
44G_END_DECLS
45
46#endif /* __NM_SETTING_BOND_PORT_H__ */
47

source code of include/libnm/nm-setting-bond-port.h