summary refs log tree commit diff
path: root/libnm-core/nm-setting-sriov.h
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2020-10-05 22:27:18 +0200
committerMichael Biebl <biebl@debian.org>2020-10-05 22:27:18 +0200
commitaafc1dbe4712c86189bbc1d4d54ad8cb4c69be7e (patch)
treea2a9bb4d007339a0b1304540388230ccedac32bd /libnm-core/nm-setting-sriov.h
parente7b44ef4c80907346ec7492a09c45277459924fc (diff)
New upstream version 1.27.90 upstream/1.27.90
Diffstat (limited to 'libnm-core/nm-setting-sriov.h')
-rw-r--r--libnm-core/nm-setting-sriov.h102
1 files changed, 53 insertions, 49 deletions
diff --git a/libnm-core/nm-setting-sriov.h b/libnm-core/nm-setting-sriov.h
index af15a0a0..35209513 100644
--- a/libnm-core/nm-setting-sriov.h
+++ b/libnm-core/nm-setting-sriov.h
@@ -1,4 +1,4 @@
-// SPDX-License-Identifier: LGPL-2.1+
+/* SPDX-License-Identifier: LGPL-2.1+ */
 /*
  * Copyright (C) 2018 Red Hat, Inc.
  */
@@ -6,35 +6,38 @@
 #ifndef NM_SETTING_SRIOV_H
 #define NM_SETTING_SRIOV_H
 
-#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
-#error "Only <NetworkManager.h> can be included directly."
+#if !defined(__NETWORKMANAGER_H_INSIDE__) && !defined(NETWORKMANAGER_COMPILATION)
+    #error "Only <NetworkManager.h> can be included directly."
 #endif
 
 #include "nm-setting.h"
 
 G_BEGIN_DECLS
 
-#define NM_TYPE_SETTING_SRIOV            (nm_setting_sriov_get_type ())
-#define NM_SETTING_SRIOV(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_SETTING_SRIOV, NMSettingSriov))
-#define NM_SETTING_SRIOV_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), NM_TYPE_SETTING_SRIOV, NMSettingSriovClass))
-#define NM_IS_SETTING_SRIOV(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NM_TYPE_SETTING_SRIOV))
-#define NM_IS_SETTING_SRIOV_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NM_TYPE_SETTING_SRIOV))
-#define NM_SETTING_SRIOV_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_SETTING_SRIOV, NMSettingSriovClass))
+#define NM_TYPE_SETTING_SRIOV (nm_setting_sriov_get_type())
+#define NM_SETTING_SRIOV(obj) \
+    (G_TYPE_CHECK_INSTANCE_CAST((obj), NM_TYPE_SETTING_SRIOV, NMSettingSriov))
+#define NM_SETTING_SRIOV_CLASS(klass) \
+    (G_TYPE_CHECK_CLASS_CAST((klass), NM_TYPE_SETTING_SRIOV, NMSettingSriovClass))
+#define NM_IS_SETTING_SRIOV(obj)         (G_TYPE_CHECK_INSTANCE_TYPE((obj), NM_TYPE_SETTING_SRIOV))
+#define NM_IS_SETTING_SRIOV_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), NM_TYPE_SETTING_SRIOV))
+#define NM_SETTING_SRIOV_GET_CLASS(obj) \
+    (G_TYPE_INSTANCE_GET_CLASS((obj), NM_TYPE_SETTING_SRIOV, NMSettingSriovClass))
 
-#define NM_SETTING_SRIOV_SETTING_NAME          "sriov"
+#define NM_SETTING_SRIOV_SETTING_NAME "sriov"
 
-#define NM_SETTING_SRIOV_TOTAL_VFS             "total-vfs"
-#define NM_SETTING_SRIOV_VFS                   "vfs"
-#define NM_SETTING_SRIOV_AUTOPROBE_DRIVERS     "autoprobe-drivers"
+#define NM_SETTING_SRIOV_TOTAL_VFS         "total-vfs"
+#define NM_SETTING_SRIOV_VFS               "vfs"
+#define NM_SETTING_SRIOV_AUTOPROBE_DRIVERS "autoprobe-drivers"
 
-#define NM_SRIOV_VF_ATTRIBUTE_MAC              "mac"
-#define NM_SRIOV_VF_ATTRIBUTE_SPOOF_CHECK      "spoof-check"
-#define NM_SRIOV_VF_ATTRIBUTE_TRUST            "trust"
-#define NM_SRIOV_VF_ATTRIBUTE_MIN_TX_RATE      "min-tx-rate"
-#define NM_SRIOV_VF_ATTRIBUTE_MAX_TX_RATE      "max-tx-rate"
+#define NM_SRIOV_VF_ATTRIBUTE_MAC         "mac"
+#define NM_SRIOV_VF_ATTRIBUTE_SPOOF_CHECK "spoof-check"
+#define NM_SRIOV_VF_ATTRIBUTE_TRUST       "trust"
+#define NM_SRIOV_VF_ATTRIBUTE_MIN_TX_RATE "min-tx-rate"
+#define NM_SRIOV_VF_ATTRIBUTE_MAX_TX_RATE "max-tx-rate"
 
 typedef struct _NMSettingSriovClass NMSettingSriovClass;
-typedef struct _NMSriovVF NMSriovVF;
+typedef struct _NMSriovVF           NMSriovVF;
 
 /**
  * NMSriovVFVlanProtocol:
@@ -46,68 +49,69 @@ typedef struct _NMSriovVF NMSriovVF;
  * Since: 1.14
  */
 typedef enum {
-	NM_SRIOV_VF_VLAN_PROTOCOL_802_1Q = 0,
-	NM_SRIOV_VF_VLAN_PROTOCOL_802_1AD = 1,
+    NM_SRIOV_VF_VLAN_PROTOCOL_802_1Q  = 0,
+    NM_SRIOV_VF_VLAN_PROTOCOL_802_1AD = 1,
 } NMSriovVFVlanProtocol;
 
 NM_AVAILABLE_IN_1_14
-GType nm_setting_sriov_get_type (void);
+GType nm_setting_sriov_get_type(void);
 NM_AVAILABLE_IN_1_14
-NMSetting *nm_setting_sriov_new (void);
+NMSetting *nm_setting_sriov_new(void);
 NM_AVAILABLE_IN_1_14
-guint nm_setting_sriov_get_total_vfs (NMSettingSriov *setting);
+guint nm_setting_sriov_get_total_vfs(NMSettingSriov *setting);
 NM_AVAILABLE_IN_1_14
-guint nm_setting_sriov_get_num_vfs (NMSettingSriov *setting);
+guint nm_setting_sriov_get_num_vfs(NMSettingSriov *setting);
 NM_AVAILABLE_IN_1_14
-NMSriovVF *nm_setting_sriov_get_vf (NMSettingSriov *setting, guint idx);
+NMSriovVF *nm_setting_sriov_get_vf(NMSettingSriov *setting, guint idx);
 NM_AVAILABLE_IN_1_14
-void nm_setting_sriov_add_vf (NMSettingSriov *setting, NMSriovVF *vf);
+void nm_setting_sriov_add_vf(NMSettingSriov *setting, NMSriovVF *vf);
 NM_AVAILABLE_IN_1_14
-void nm_setting_sriov_remove_vf (NMSettingSriov *setting, guint idx);
+void nm_setting_sriov_remove_vf(NMSettingSriov *setting, guint idx);
 NM_AVAILABLE_IN_1_14
-gboolean nm_setting_sriov_remove_vf_by_index (NMSettingSriov *setting, guint index);
+gboolean nm_setting_sriov_remove_vf_by_index(NMSettingSriov *setting, guint index);
 NM_AVAILABLE_IN_1_14
-void nm_setting_sriov_clear_vfs (NMSettingSriov *setting);
+void nm_setting_sriov_clear_vfs(NMSettingSriov *setting);
 NM_AVAILABLE_IN_1_14
-NMTernary nm_setting_sriov_get_autoprobe_drivers (NMSettingSriov *setting);
+NMTernary nm_setting_sriov_get_autoprobe_drivers(NMSettingSriov *setting);
 
 NM_AVAILABLE_IN_1_14
-gboolean nm_sriov_vf_add_vlan (NMSriovVF *vf, guint vlan_id);
+gboolean nm_sriov_vf_add_vlan(NMSriovVF *vf, guint vlan_id);
 NM_AVAILABLE_IN_1_14
-gboolean nm_sriov_vf_remove_vlan (NMSriovVF *vf, guint vlan_id);
+gboolean nm_sriov_vf_remove_vlan(NMSriovVF *vf, guint vlan_id);
 NM_AVAILABLE_IN_1_14
-const guint *nm_sriov_vf_get_vlan_ids (const NMSriovVF *vf, guint *length);
+const guint *nm_sriov_vf_get_vlan_ids(const NMSriovVF *vf, guint *length);
 NM_AVAILABLE_IN_1_14
-void nm_sriov_vf_set_vlan_qos (NMSriovVF *vf, guint vlan_id, guint32 qos);
+void nm_sriov_vf_set_vlan_qos(NMSriovVF *vf, guint vlan_id, guint32 qos);
 NM_AVAILABLE_IN_1_14
-void nm_sriov_vf_set_vlan_protocol (NMSriovVF *vf, guint vlan_id, NMSriovVFVlanProtocol protocol);
+void nm_sriov_vf_set_vlan_protocol(NMSriovVF *vf, guint vlan_id, NMSriovVFVlanProtocol protocol);
 NM_AVAILABLE_IN_1_14
-guint32 nm_sriov_vf_get_vlan_qos (const NMSriovVF *vf, guint vlan_id);
+guint32 nm_sriov_vf_get_vlan_qos(const NMSriovVF *vf, guint vlan_id);
 NM_AVAILABLE_IN_1_14
-NMSriovVFVlanProtocol nm_sriov_vf_get_vlan_protocol (const NMSriovVF *vf, guint vlan_id);
+NMSriovVFVlanProtocol nm_sriov_vf_get_vlan_protocol(const NMSriovVF *vf, guint vlan_id);
 
 NM_AVAILABLE_IN_1_14
-GType nm_sriov_vf_get_type (void);
+GType nm_sriov_vf_get_type(void);
 NM_AVAILABLE_IN_1_14
-NMSriovVF *nm_sriov_vf_new (guint index);
+NMSriovVF *nm_sriov_vf_new(guint index);
 NM_AVAILABLE_IN_1_14
-void nm_sriov_vf_ref (NMSriovVF *vf);
+void nm_sriov_vf_ref(NMSriovVF *vf);
 NM_AVAILABLE_IN_1_14
-void nm_sriov_vf_unref (NMSriovVF *vf);
+void nm_sriov_vf_unref(NMSriovVF *vf);
 NM_AVAILABLE_IN_1_14
-gboolean nm_sriov_vf_equal (const NMSriovVF *vf, const NMSriovVF *other);
+gboolean nm_sriov_vf_equal(const NMSriovVF *vf, const NMSriovVF *other);
 NM_AVAILABLE_IN_1_14
-NMSriovVF *nm_sriov_vf_dup (const NMSriovVF *vf);
+NMSriovVF *nm_sriov_vf_dup(const NMSriovVF *vf);
 NM_AVAILABLE_IN_1_14
-guint nm_sriov_vf_get_index (const NMSriovVF *vf);
+guint nm_sriov_vf_get_index(const NMSriovVF *vf);
 NM_AVAILABLE_IN_1_14
-void nm_sriov_vf_set_attribute (NMSriovVF *vf, const char *name, GVariant *value);
+void nm_sriov_vf_set_attribute(NMSriovVF *vf, const char *name, GVariant *value);
 NM_AVAILABLE_IN_1_14
-const char **nm_sriov_vf_get_attribute_names (const NMSriovVF *vf);
+const char **nm_sriov_vf_get_attribute_names(const NMSriovVF *vf);
 NM_AVAILABLE_IN_1_14
-GVariant *nm_sriov_vf_get_attribute (const NMSriovVF *vf, const char *name);
+GVariant *nm_sriov_vf_get_attribute(const NMSriovVF *vf, const char *name);
 NM_AVAILABLE_IN_1_14
-gboolean nm_sriov_vf_attribute_validate  (const char *name, GVariant *value, gboolean *known, GError **error);
+gboolean
+nm_sriov_vf_attribute_validate(const char *name, GVariant *value, gboolean *known, GError **error);
 
 G_END_DECLS