diff options
| author | Michael Biebl <biebl@debian.org> | 2020-10-05 22:27:18 +0200 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2020-10-05 22:27:18 +0200 |
| commit | aafc1dbe4712c86189bbc1d4d54ad8cb4c69be7e (patch) | |
| tree | a2a9bb4d007339a0b1304540388230ccedac32bd /libnm-core/nm-setting-tc-config.h | |
| parent | e7b44ef4c80907346ec7492a09c45277459924fc (diff) | |
New upstream version 1.27.90 upstream/1.27.90
Diffstat (limited to 'libnm-core/nm-setting-tc-config.h')
| -rw-r--r-- | libnm-core/nm-setting-tc-config.h | 151 |
1 files changed, 66 insertions, 85 deletions
diff --git a/libnm-core/nm-setting-tc-config.h b/libnm-core/nm-setting-tc-config.h index 648e6403..9fe87895 100644 --- a/libnm-core/nm-setting-tc-config.h +++ b/libnm-core/nm-setting-tc-config.h @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: LGPL-2.1+ +/* SPDX-License-Identifier: LGPL-2.1+ */ /* * Copyright (C) 2017 Red Hat, Inc. */ @@ -6,8 +6,8 @@ #ifndef NM_SETTING_TC_CONFIG_H #define NM_SETTING_TC_CONFIG_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" @@ -17,164 +17,145 @@ G_BEGIN_DECLS typedef struct NMTCQdisc NMTCQdisc; NM_AVAILABLE_IN_1_12 -GType nm_tc_qdisc_get_type (void); +GType nm_tc_qdisc_get_type(void); NM_AVAILABLE_IN_1_12 -NMTCQdisc *nm_tc_qdisc_new (const char *kind, - guint32 parent, - GError **error); +NMTCQdisc *nm_tc_qdisc_new(const char *kind, guint32 parent, GError **error); NM_AVAILABLE_IN_1_12 -void nm_tc_qdisc_ref (NMTCQdisc *qdisc); +void nm_tc_qdisc_ref(NMTCQdisc *qdisc); NM_AVAILABLE_IN_1_12 -void nm_tc_qdisc_unref (NMTCQdisc *qdisc); +void nm_tc_qdisc_unref(NMTCQdisc *qdisc); NM_AVAILABLE_IN_1_12 -gboolean nm_tc_qdisc_equal (NMTCQdisc *qdisc, - NMTCQdisc *other); +gboolean nm_tc_qdisc_equal(NMTCQdisc *qdisc, NMTCQdisc *other); NM_AVAILABLE_IN_1_12 -NMTCQdisc *nm_tc_qdisc_dup (NMTCQdisc *qdisc); +NMTCQdisc *nm_tc_qdisc_dup(NMTCQdisc *qdisc); NM_AVAILABLE_IN_1_12 -const char *nm_tc_qdisc_get_kind (NMTCQdisc *qdisc); +const char *nm_tc_qdisc_get_kind(NMTCQdisc *qdisc); NM_AVAILABLE_IN_1_12 -guint32 nm_tc_qdisc_get_handle (NMTCQdisc *qdisc); +guint32 nm_tc_qdisc_get_handle(NMTCQdisc *qdisc); NM_AVAILABLE_IN_1_12 -void nm_tc_qdisc_set_handle (NMTCQdisc *qdisc, - guint32 handle); +void nm_tc_qdisc_set_handle(NMTCQdisc *qdisc, guint32 handle); NM_AVAILABLE_IN_1_12 -guint32 nm_tc_qdisc_get_parent (NMTCQdisc *qdisc); +guint32 nm_tc_qdisc_get_parent(NMTCQdisc *qdisc); NM_AVAILABLE_IN_1_18 -const char **nm_tc_qdisc_get_attribute_names (NMTCQdisc *qdisc); +const char **nm_tc_qdisc_get_attribute_names(NMTCQdisc *qdisc); NM_AVAILABLE_IN_1_18 -GVariant *nm_tc_qdisc_get_attribute (NMTCQdisc *qdisc, - const char *name); +GVariant *nm_tc_qdisc_get_attribute(NMTCQdisc *qdisc, const char *name); NM_AVAILABLE_IN_1_18 -void nm_tc_qdisc_set_attribute (NMTCQdisc *qdisc, - const char *name, - GVariant *value); +void nm_tc_qdisc_set_attribute(NMTCQdisc *qdisc, const char *name, GVariant *value); typedef struct NMTCAction NMTCAction; NM_AVAILABLE_IN_1_12 -GType nm_tc_action_get_type (void); +GType nm_tc_action_get_type(void); NM_AVAILABLE_IN_1_12 -NMTCAction *nm_tc_action_new (const char *kind, - GError **error); +NMTCAction *nm_tc_action_new(const char *kind, GError **error); NM_AVAILABLE_IN_1_12 -void nm_tc_action_ref (NMTCAction *action); +void nm_tc_action_ref(NMTCAction *action); NM_AVAILABLE_IN_1_12 -void nm_tc_action_unref (NMTCAction *action); +void nm_tc_action_unref(NMTCAction *action); NM_AVAILABLE_IN_1_12 -gboolean nm_tc_action_equal (NMTCAction *action, - NMTCAction *other); +gboolean nm_tc_action_equal(NMTCAction *action, NMTCAction *other); NM_AVAILABLE_IN_1_12 -NMTCAction *nm_tc_action_dup (NMTCAction *action); +NMTCAction *nm_tc_action_dup(NMTCAction *action); NM_AVAILABLE_IN_1_12 -const char *nm_tc_action_get_kind (NMTCAction *action); +const char *nm_tc_action_get_kind(NMTCAction *action); NM_AVAILABLE_IN_1_12 -char **nm_tc_action_get_attribute_names (NMTCAction *action); +char **nm_tc_action_get_attribute_names(NMTCAction *action); NM_AVAILABLE_IN_1_12 -GVariant *nm_tc_action_get_attribute (NMTCAction *action, - const char *name); +GVariant *nm_tc_action_get_attribute(NMTCAction *action, const char *name); NM_AVAILABLE_IN_1_12 -void nm_tc_action_set_attribute (NMTCAction *action, - const char *name, - GVariant *value); +void nm_tc_action_set_attribute(NMTCAction *action, const char *name, GVariant *value); typedef struct NMTCTfilter NMTCTfilter; NM_AVAILABLE_IN_1_12 -GType nm_tc_tfilter_get_type (void); +GType nm_tc_tfilter_get_type(void); NM_AVAILABLE_IN_1_12 -NMTCTfilter *nm_tc_tfilter_new (const char *kind, - guint32 parent, - GError **error); +NMTCTfilter *nm_tc_tfilter_new(const char *kind, guint32 parent, GError **error); NM_AVAILABLE_IN_1_12 -void nm_tc_tfilter_ref (NMTCTfilter *tfilter); +void nm_tc_tfilter_ref(NMTCTfilter *tfilter); NM_AVAILABLE_IN_1_12 -void nm_tc_tfilter_unref (NMTCTfilter *tfilter); +void nm_tc_tfilter_unref(NMTCTfilter *tfilter); NM_AVAILABLE_IN_1_12 -gboolean nm_tc_tfilter_equal (NMTCTfilter *tfilter, - NMTCTfilter *other); +gboolean nm_tc_tfilter_equal(NMTCTfilter *tfilter, NMTCTfilter *other); NM_AVAILABLE_IN_1_12 -NMTCTfilter *nm_tc_tfilter_dup (NMTCTfilter *tfilter); +NMTCTfilter *nm_tc_tfilter_dup(NMTCTfilter *tfilter); NM_AVAILABLE_IN_1_12 -const char *nm_tc_tfilter_get_kind (NMTCTfilter *tfilter); +const char *nm_tc_tfilter_get_kind(NMTCTfilter *tfilter); NM_AVAILABLE_IN_1_12 -guint32 nm_tc_tfilter_get_handle (NMTCTfilter *tfilter); +guint32 nm_tc_tfilter_get_handle(NMTCTfilter *tfilter); NM_AVAILABLE_IN_1_12 -void nm_tc_tfilter_set_handle (NMTCTfilter *tfilter, - guint32 handle); +void nm_tc_tfilter_set_handle(NMTCTfilter *tfilter, guint32 handle); NM_AVAILABLE_IN_1_12 -guint32 nm_tc_tfilter_get_parent (NMTCTfilter *tfilter); +guint32 nm_tc_tfilter_get_parent(NMTCTfilter *tfilter); NM_AVAILABLE_IN_1_12 -NMTCAction *nm_tc_tfilter_get_action (NMTCTfilter *tfilter); +NMTCAction *nm_tc_tfilter_get_action(NMTCTfilter *tfilter); NM_AVAILABLE_IN_1_12 -void nm_tc_tfilter_set_action (NMTCTfilter *tfilter, NMTCAction *action); +void nm_tc_tfilter_set_action(NMTCTfilter *tfilter, NMTCAction *action); -#define NM_TYPE_SETTING_TC_CONFIG (nm_setting_tc_config_get_type ()) -#define NM_SETTING_TC_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_SETTING_TC_CONFIG, NMSettingTCConfig)) -#define NM_SETTING_TC_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NM_TYPE_SETTING_TC_CONFIG, NMSettingTCConfigClass)) -#define NM_IS_SETTING_TC_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NM_TYPE_SETTING_TC_CONFIG)) -#define NM_IS_SETTING_TC_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NM_TYPE_SETTING_TC_CONFIG)) -#define NM_SETTING_TC_CONFIG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_SETTING_TC_CONFIG, NMSettingTCConfigClass)) +#define NM_TYPE_SETTING_TC_CONFIG (nm_setting_tc_config_get_type()) +#define NM_SETTING_TC_CONFIG(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj), NM_TYPE_SETTING_TC_CONFIG, NMSettingTCConfig)) +#define NM_SETTING_TC_CONFIG_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass), NM_TYPE_SETTING_TC_CONFIG, NMSettingTCConfigClass)) +#define NM_IS_SETTING_TC_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), NM_TYPE_SETTING_TC_CONFIG)) +#define NM_IS_SETTING_TC_CONFIG_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE((klass), NM_TYPE_SETTING_TC_CONFIG)) +#define NM_SETTING_TC_CONFIG_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS((obj), NM_TYPE_SETTING_TC_CONFIG, NMSettingTCConfigClass)) -#define NM_SETTING_TC_CONFIG_SETTING_NAME "tc" +#define NM_SETTING_TC_CONFIG_SETTING_NAME "tc" -#define NM_SETTING_TC_CONFIG_QDISCS "qdiscs" -#define NM_SETTING_TC_CONFIG_TFILTERS "tfilters" +#define NM_SETTING_TC_CONFIG_QDISCS "qdiscs" +#define NM_SETTING_TC_CONFIG_TFILTERS "tfilters" typedef struct _NMSettingTCConfigClass NMSettingTCConfigClass; -GType nm_setting_tc_config_get_type (void); +GType nm_setting_tc_config_get_type(void); NM_AVAILABLE_IN_1_12 -NMSetting *nm_setting_tc_config_new (void); +NMSetting *nm_setting_tc_config_new(void); NM_AVAILABLE_IN_1_12 -guint nm_setting_tc_config_get_num_qdiscs (NMSettingTCConfig *setting); +guint nm_setting_tc_config_get_num_qdiscs(NMSettingTCConfig *setting); NM_AVAILABLE_IN_1_12 -NMTCQdisc *nm_setting_tc_config_get_qdisc (NMSettingTCConfig *setting, - guint idx); +NMTCQdisc *nm_setting_tc_config_get_qdisc(NMSettingTCConfig *setting, guint idx); NM_AVAILABLE_IN_1_12 -gboolean nm_setting_tc_config_add_qdisc (NMSettingTCConfig *setting, - NMTCQdisc *qdisc); +gboolean nm_setting_tc_config_add_qdisc(NMSettingTCConfig *setting, NMTCQdisc *qdisc); NM_AVAILABLE_IN_1_12 -void nm_setting_tc_config_remove_qdisc (NMSettingTCConfig *setting, - guint idx); +void nm_setting_tc_config_remove_qdisc(NMSettingTCConfig *setting, guint idx); NM_AVAILABLE_IN_1_12 -gboolean nm_setting_tc_config_remove_qdisc_by_value (NMSettingTCConfig *setting, - NMTCQdisc *qdisc); +gboolean nm_setting_tc_config_remove_qdisc_by_value(NMSettingTCConfig *setting, NMTCQdisc *qdisc); NM_AVAILABLE_IN_1_12 -void nm_setting_tc_config_clear_qdiscs (NMSettingTCConfig *setting); +void nm_setting_tc_config_clear_qdiscs(NMSettingTCConfig *setting); NM_AVAILABLE_IN_1_12 -guint nm_setting_tc_config_get_num_tfilters (NMSettingTCConfig *setting); +guint nm_setting_tc_config_get_num_tfilters(NMSettingTCConfig *setting); NM_AVAILABLE_IN_1_12 -NMTCTfilter *nm_setting_tc_config_get_tfilter (NMSettingTCConfig *setting, - guint idx); +NMTCTfilter *nm_setting_tc_config_get_tfilter(NMSettingTCConfig *setting, guint idx); NM_AVAILABLE_IN_1_12 -gboolean nm_setting_tc_config_add_tfilter (NMSettingTCConfig *setting, - NMTCTfilter *tfilter); +gboolean nm_setting_tc_config_add_tfilter(NMSettingTCConfig *setting, NMTCTfilter *tfilter); NM_AVAILABLE_IN_1_12 -void nm_setting_tc_config_remove_tfilter (NMSettingTCConfig *setting, - guint idx); +void nm_setting_tc_config_remove_tfilter(NMSettingTCConfig *setting, guint idx); NM_AVAILABLE_IN_1_12 -gboolean nm_setting_tc_config_remove_tfilter_by_value (NMSettingTCConfig *setting, - NMTCTfilter *tfilter); +gboolean nm_setting_tc_config_remove_tfilter_by_value(NMSettingTCConfig *setting, + NMTCTfilter * tfilter); NM_AVAILABLE_IN_1_12 -void nm_setting_tc_config_clear_tfilters (NMSettingTCConfig *setting); +void nm_setting_tc_config_clear_tfilters(NMSettingTCConfig *setting); G_END_DECLS |