From 33491bc4279481db8ae47213e34a6d695a0e8830 Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Sun, 6 Jul 2014 02:16:10 +0200 Subject: Imported Upstream version 0.9.10.0 --- docs/libnm-util/html/NMSettingBond.html | 1017 +++++++++++++++---------------- 1 file changed, 508 insertions(+), 509 deletions(-) (limited to 'docs/libnm-util/html/NMSettingBond.html') diff --git a/docs/libnm-util/html/NMSettingBond.html b/docs/libnm-util/html/NMSettingBond.html index b047b365..ac130dde 100644 --- a/docs/libnm-util/html/NMSettingBond.html +++ b/docs/libnm-util/html/NMSettingBond.html @@ -2,28 +2,34 @@ -libnm-util Reference Manual: NMSettingBond +NMSettingBond - + - - - - - - - + + + + + + + + + +
@@ -31,662 +37,655 @@

NMSettingBond

NMSettingBond — Describes connection properties for bonds

- +
+
+

Synopsis

+
+#include <nm-setting-bond.h>
+
+#define             NM_SETTING_BOND_SETTING_NAME
+enum                NMSettingBondError;
+#define             NM_SETTING_BOND_ERROR
+GQuark              nm_setting_bond_error_quark         (void);
+#define             NM_SETTING_BOND_INTERFACE_NAME
+#define             NM_SETTING_BOND_OPTIONS
+#define             NM_SETTING_BOND_OPTION_MODE
+#define             NM_SETTING_BOND_OPTION_MIIMON
+#define             NM_SETTING_BOND_OPTION_DOWNDELAY
+#define             NM_SETTING_BOND_OPTION_UPDELAY
+#define             NM_SETTING_BOND_OPTION_ARP_INTERVAL
+#define             NM_SETTING_BOND_OPTION_ARP_IP_TARGET
+#define             NM_SETTING_BOND_OPTION_ARP_VALIDATE
+#define             NM_SETTING_BOND_OPTION_PRIMARY
+#define             NM_SETTING_BOND_OPTION_PRIMARY_RESELECT
+#define             NM_SETTING_BOND_OPTION_FAIL_OVER_MAC
+#define             NM_SETTING_BOND_OPTION_USE_CARRIER
+#define             NM_SETTING_BOND_OPTION_AD_SELECT
+#define             NM_SETTING_BOND_OPTION_XMIT_HASH_POLICY
+#define             NM_SETTING_BOND_OPTION_RESEND_IGMP
+                    NMSettingBond;
+                    NMSettingBondClass;
+NMSetting *         nm_setting_bond_new                 (void);
+const char *        nm_setting_bond_get_interface_name  (NMSettingBond *setting);
+guint32             nm_setting_bond_get_num_options     (NMSettingBond *setting);
+gboolean            nm_setting_bond_get_option          (NMSettingBond *setting,
+                                                         guint32 idx,
+                                                         const char **out_name,
+                                                         const char **out_value);
+const char *        nm_setting_bond_get_option_by_name  (NMSettingBond *setting,
+                                                         const char *name);
+gboolean            nm_setting_bond_add_option          (NMSettingBond *setting,
+                                                         const char *name,
+                                                         const char *value);
+gboolean            nm_setting_bond_remove_option       (NMSettingBond *setting,
+                                                         const char *name);
+gboolean            nm_setting_bond_validate_option     (const char *name,
+                                                         const char *value);
+const char **       nm_setting_bond_get_valid_options   (NMSettingBond *setting);
+const char *        nm_setting_bond_get_option_default  (NMSettingBond *setting,
+                                                         const char *name);
+
+
+
+

Object Hierarchy

+
+  GEnum
+   +----NMSettingBondError
+
+
+  GObject
+   +----NMSetting
+         +----NMSettingBond
+
+
+
+

Properties

+
+  "interface-name"           gchar*                : Read / Write
+  "options"                  GHashTable_gchararray+gchararray_*  : Read / Write
+
+
-

Functions

-
+

Description

+

+The NMSettingBond object is a NMSetting subclass that describes properties +necessary for bond connections. +

+ +
+

Details

+
+

NM_SETTING_BOND_SETTING_NAME

+
#define NM_SETTING_BOND_SETTING_NAME "bond"
+
+

+

+
+
+
+

enum NMSettingBondError

+
typedef enum {
+	NM_SETTING_BOND_ERROR_UNKNOWN = 0,      /*< nick=UnknownError >*/
+	NM_SETTING_BOND_ERROR_INVALID_PROPERTY, /*< nick=InvalidProperty >*/
+	NM_SETTING_BOND_ERROR_MISSING_PROPERTY, /*< nick=MissingProperty >*/
+	NM_SETTING_BOND_ERROR_INVALID_OPTION,   /*< nick=InvalidOption >*/
+	NM_SETTING_BOND_ERROR_MISSING_OPTION,   /*< nick=MissingOption >*/
+} NMSettingBondError;
+
+
--++ - - - - - - - - - - - - - - - - - - + - - + - - + - - + - - - - - - +
-GQuark - -nm_setting_bond_error_quark () -
-NMSetting * - -nm_setting_bond_new () -
const char * - -nm_setting_bond_get_interface_name () -
-guint32 - -nm_setting_bond_get_num_options () -
-gboolean - -nm_setting_bond_get_option () +

NM_SETTING_BOND_ERROR_UNKNOWN

unknown or unclassified error
const char * - -nm_setting_bond_get_option_by_name () +

NM_SETTING_BOND_ERROR_INVALID_PROPERTY

the property was invalid
-gboolean - -nm_setting_bond_add_option () +

NM_SETTING_BOND_ERROR_MISSING_PROPERTY

the property was missing and is +required
-gboolean - -nm_setting_bond_remove_option () +

NM_SETTING_BOND_ERROR_INVALID_OPTION

const char ** - -nm_setting_bond_get_valid_options () -
const char * - -nm_setting_bond_get_option_default () +

NM_SETTING_BOND_ERROR_MISSING_OPTION

-
-

Properties

-
----- - - - - - - - - - - - - -
-gchar *interface-nameRead / Write
GHashTable_gchararray+gchararray_*optionsRead / Write
+
+
+

NM_SETTING_BOND_ERROR

+
#define NM_SETTING_BOND_ERROR nm_setting_bond_error_quark ()
+
+

+

-
-

Types and Values

-
+
+
+

nm_setting_bond_error_quark ()

+
GQuark              nm_setting_bond_error_quark         (void);
+

+Registers an error quark for NMSettingBond if necessary. +

+
--++ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + +
#defineNM_SETTING_BOND_SETTING_NAME
enumNMSettingBondError
#defineNM_SETTING_BOND_ERROR
#defineNM_SETTING_BOND_INTERFACE_NAME
#defineNM_SETTING_BOND_OPTIONS
#defineNM_SETTING_BOND_OPTION_MODE
#defineNM_SETTING_BOND_OPTION_MIIMON
#defineNM_SETTING_BOND_OPTION_DOWNDELAY
#defineNM_SETTING_BOND_OPTION_UPDELAY
#defineNM_SETTING_BOND_OPTION_ARP_INTERVAL
#defineNM_SETTING_BOND_OPTION_ARP_IP_TARGET

Returns :

the error quark used for NMSettingBond errors.
-
-

Object Hierarchy

-
    GEnum
-    ╰── NMSettingBondError
-    GObject
-    ╰── NMSetting
-        ╰── NMSettingBond
+
+
+

NM_SETTING_BOND_INTERFACE_NAME

+
#define NM_SETTING_BOND_INTERFACE_NAME "interface-name"
 
+

+

-
-

Includes

-
#include <nm-setting-bond.h>
+
+
+

NM_SETTING_BOND_OPTIONS

+
#define NM_SETTING_BOND_OPTIONS "options"
 
+

+

-
-

Description

-

The NMSettingBond object is a NMSetting subclass that describes properties -necessary for bond connections.

+
+
+

NM_SETTING_BOND_OPTION_MODE

+
#define NM_SETTING_BOND_OPTION_MODE             "mode"
+
+

+

-
-

Functions

+
+
+

NM_SETTING_BOND_OPTION_MIIMON

+
#define NM_SETTING_BOND_OPTION_MIIMON           "miimon"
+
+

+

+
+
+
+

NM_SETTING_BOND_OPTION_DOWNDELAY

+
#define NM_SETTING_BOND_OPTION_DOWNDELAY        "downdelay"
+
+

+

+
+
+
+

NM_SETTING_BOND_OPTION_UPDELAY

+
#define NM_SETTING_BOND_OPTION_UPDELAY          "updelay"
+
+

+

+
+
+
+

NM_SETTING_BOND_OPTION_ARP_INTERVAL

+
#define NM_SETTING_BOND_OPTION_ARP_INTERVAL     "arp_interval"
+
+

+

+
+
-

nm_setting_bond_error_quark ()

-
GQuark
-nm_setting_bond_error_quark (void);
-

Registers an error quark for NMSettingBond if necessary.

-
-

Returns

-

the error quark used for NMSettingBond errors.

-

+

NM_SETTING_BOND_OPTION_ARP_IP_TARGET

+
#define NM_SETTING_BOND_OPTION_ARP_IP_TARGET    "arp_ip_target"
+
+

+

+
+
+

NM_SETTING_BOND_OPTION_ARP_VALIDATE

+
#define NM_SETTING_BOND_OPTION_ARP_VALIDATE     "arp_validate"
+
+

+


-

nm_setting_bond_new ()

-
NMSetting *
-nm_setting_bond_new (void);
-

Creates a new NMSettingBond object with default values.

-
-

Returns

-

the new empty NMSettingBond object.

-

[transfer full]

+

NM_SETTING_BOND_OPTION_PRIMARY

+
#define NM_SETTING_BOND_OPTION_PRIMARY          "primary"
+
+

+

+
+
+

NM_SETTING_BOND_OPTION_PRIMARY_RESELECT

+
#define NM_SETTING_BOND_OPTION_PRIMARY_RESELECT "primary_reselect"
+
+

+

+
+
+
+

NM_SETTING_BOND_OPTION_FAIL_OVER_MAC

+
#define NM_SETTING_BOND_OPTION_FAIL_OVER_MAC    "fail_over_mac"
+
+

+

+
+
+
+

NM_SETTING_BOND_OPTION_USE_CARRIER

+
#define NM_SETTING_BOND_OPTION_USE_CARRIER      "use_carrier"
+
+

+

+
+
+
+

NM_SETTING_BOND_OPTION_AD_SELECT

+
#define NM_SETTING_BOND_OPTION_AD_SELECT        "ad_select"
+
+

+


-

nm_setting_bond_get_interface_name ()

-
const char *
-nm_setting_bond_get_interface_name (NMSettingBond *setting);
-
-

Parameters

-
+

NM_SETTING_BOND_OPTION_XMIT_HASH_POLICY

+
#define NM_SETTING_BOND_OPTION_XMIT_HASH_POLICY "xmit_hash_policy"
+
+

+

+ +
+
+

NM_SETTING_BOND_OPTION_RESEND_IGMP

+
#define NM_SETTING_BOND_OPTION_RESEND_IGMP      "resend_igmp"
+
+

+

+
+
+
+

NMSettingBond

+
typedef struct _NMSettingBond NMSettingBond;
+

+

+
+
+
+

NMSettingBondClass

+
typedef struct {
+	NMSettingClass parent;
+
+	/* Padding for future expansion */
+	void (*_reserved1) (void);
+	void (*_reserved2) (void);
+	void (*_reserved3) (void);
+	void (*_reserved4) (void);
+} NMSettingBondClass;
+
+

+

+
+
+
+

nm_setting_bond_new ()

+
NMSetting *         nm_setting_bond_new                 (void);
+

+Creates a new NMSettingBond object with default values. +

+
---++ - - - + +

setting

the NMSettingBond

 

Returns :

the new empty NMSettingBond object. [transfer full] +
-
-

Returns

-

the “interface-name” property of the setting

-

-
+
+
+

nm_setting_bond_get_interface_name ()

+
const char *        nm_setting_bond_get_interface_name  (NMSettingBond *setting);
+
++++ + + + + + + + + + + +

setting :

the NMSettingBond +

Returns :

the "interface-name" property of the setting

-

nm_setting_bond_get_num_options ()

-
guint32
-nm_setting_bond_get_num_options (NMSettingBond *setting);
-

Returns the number of options that should be set for this bond when it +

nm_setting_bond_get_num_options ()

+
guint32             nm_setting_bond_get_num_options     (NMSettingBond *setting);
+

+Returns the number of options that should be set for this bond when it is activated. This can be used to retrieve each option individually -using nm_setting_bond_get_option().

-
-

Parameters

-
+using nm_setting_bond_get_option(). +

+
---++ - - - - - + + + + + + + + + +

setting

the NMSettingBond

 

setting :

the NMSettingBond +

Returns :

the number of bonding options
-
-

Returns

-

the number of bonding options

-

-
-

-

nm_setting_bond_get_option ()

-
gboolean
-nm_setting_bond_get_option (NMSettingBond *setting,
-                            guint32 idx,
-                            const char **out_name,
-                            const char **out_value);
-

Given an index, return the value of the bonding option at that index. Indexes +

nm_setting_bond_get_option ()

+
gboolean            nm_setting_bond_get_option          (NMSettingBond *setting,
+                                                         guint32 idx,
+                                                         const char **out_name,
+                                                         const char **out_value);
+

+Given an index, return the value of the bonding option at that index. Indexes are *not* guaranteed to be static across modifications to options done by -nm_setting_bond_add_option() and nm_setting_bond_remove_option(), +nm_setting_bond_add_option() and nm_setting_bond_remove_option(), and should not be used to refer to options except for short periods of time -such as during option iteration.

-
-

Parameters

-
+such as during option iteration. +

+
---++ - - - + + + + + + - - - + + - - - + + - - - + +

setting

the NMSettingBond

 

setting :

the NMSettingBond +

idx :

index of the desired option, from 0 to +nm_setting_bond_get_num_options() - 1

idx

index of the desired option, from 0 to -nm_setting_bond_get_num_options() - 1

 

out_name :

on return, the name of the bonding option; this +value is owned by the setting and should not be modified. [out] +

out_name

on return, the name of the bonding option; this -value is owned by the setting and should not be modified.

[out]

out_value :

on return, the value of the name of the bonding +option; this value is owned by the setting and should not be modified. [out] +

out_value

on return, the value of the name of the bonding -option; this value is owned by the setting and should not be modified.

[out]

Returns :

+TRUE on success if the index was valid and an option was found, +FALSE if the index was invalid (ie, greater than the number of options +currently held by the setting)
-
-

Returns

-

TRUE on success if the index was valid and an option was found, -FALSE if the index was invalid (ie, greater than the number of options -currently held by the setting)

-

-
-

-

nm_setting_bond_get_option_by_name ()

-
const char *
-nm_setting_bond_get_option_by_name (NMSettingBond *setting,
-                                    const char *name);
-

Returns the value associated with the bonding option specified by -name -, if it exists.

-
-

Parameters

-
+

nm_setting_bond_get_option_by_name ()

+
const char *        nm_setting_bond_get_option_by_name  (NMSettingBond *setting,
+                                                         const char *name);
+

+Returns the value associated with the bonding option specified by +name, if it exists. +

+
---++ - - - + + + + + + - - - + +

setting

the NMSettingBond

 

setting :

the NMSettingBond +

name :

the option name for which to retrieve the value

name

the option name for which to retrieve the value

 

Returns :

the value, or NULL if the key/value pair was never added to the +setting; the value is owned by the setting and must not be modified
-
-

Returns

-

the value, or NULL if the key/value pair was never added to the -setting; the value is owned by the setting and must not be modified

-

-
-

-

nm_setting_bond_add_option ()

-
gboolean
-nm_setting_bond_add_option (NMSettingBond *setting,
-                            const char *name,
-                            const char *value);
-

Add an option to the table. The option is compared to an internal list +

nm_setting_bond_add_option ()

+
gboolean            nm_setting_bond_add_option          (NMSettingBond *setting,
+                                                         const char *name,
+                                                         const char *value);
+

+Add an option to the table. The option is compared to an internal list of allowed options. Option names may contain only alphanumeric characters (ie [a-zA-Z0-9]). Adding a new name replaces any existing name/value pair -that may already exist.

-
-

Parameters

-
+that may already exist. +

+

+The order of how to set several options is relevant because there are options +that conflict with each other. +

+
---++ - - - + + + + + + - - - + + - - - + +

setting

the NMSettingBond

 

setting :

the NMSettingBond +

name :

name for the option

name

name for the option

 

value :

value for the option

value

value for the option

 

Returns :

+TRUE if the option was valid and was added to the internal option +list, FALSE if it was not.
-
-

Returns

-

TRUE if the option was valid and was added to the internal option -list, FALSE if it was not.

-

-
-

-

nm_setting_bond_remove_option ()

-
gboolean
-nm_setting_bond_remove_option (NMSettingBond *setting,
-                               const char *name);
-

Remove the bonding option referenced by name - from the internal option -list.

-
-

Parameters

-
+

nm_setting_bond_remove_option ()

+
gboolean            nm_setting_bond_remove_option       (NMSettingBond *setting,
+                                                         const char *name);
+

+Remove the bonding option referenced by name from the internal option +list. +

+
---++ - - - + + - - - + + + + + +

setting

the NMSettingBond

 

setting :

the NMSettingBond +

name

name of the option to remove

 

name :

name of the option to remove

Returns :

+TRUE if the option was found and removed from the internal option +list, FALSE if it was not.
-
-

Returns

-

TRUE if the option was found and removed from the internal option -list, FALSE if it was not.

-

-
-
-
-
-

nm_setting_bond_get_valid_options ()

-
const char **
-nm_setting_bond_get_valid_options (NMSettingBond *setting);
-

Returns a list of valid bond options.

-
-

Parameters

-
----- - - - - - -

setting

the NMSettingBond

 
-
-
-

Returns

-

a NULL-terminated array of strings of valid bond options.

-

[transfer none]

-
-

-

nm_setting_bond_get_option_default ()

-
const char *
-nm_setting_bond_get_option_default (NMSettingBond *setting,
-                                    const char *name);
-
-

Parameters

-
+

nm_setting_bond_validate_option ()

+
gboolean            nm_setting_bond_validate_option     (const char *name,
+                                                         const char *value);
+

+Checks whether name is a valid bond option and value is a valid value for +the name. If value is NULL, the function only validates the option name. +

+
---++ - - - + + + + + + - - - + +

setting

the NMSettingBond

 

name :

the name of the option to validate

value :

the value of the option to validate

name

the name of the option

 

Returns :

+TRUE, if the value is valid for the given name. +If the name is not a valid option, FALSE will be returned.
+

Since 0.9.10

-
-

Returns

-

the value of the bond option if not overridden by an entry in -the “options” property.

-

-
-
-
-
-

Types and Values

+
-

NM_SETTING_BOND_SETTING_NAME

-
#define NM_SETTING_BOND_SETTING_NAME "bond"
-
+

nm_setting_bond_get_valid_options ()

+
const char **       nm_setting_bond_get_valid_options   (NMSettingBond *setting);

+Returns a list of valid bond options.

-
-
-
-

enum NMSettingBondError

-
-

Members

-
+
---++ - - + - - - + - + +

NM_SETTING_BOND_ERROR_UNKNOWN

-

unknown or unclassified error

+

setting :

the NMSettingBond  

NM_SETTING_BOND_ERROR_INVALID_PROPERTY

-

the property was invalid

+

Returns :

a NULL-terminated array of strings of valid bond options. [transfer none]  
+
+
+
+

nm_setting_bond_get_option_default ()

+
const char *        nm_setting_bond_get_option_default  (NMSettingBond *setting,
+                                                         const char *name);
+
++++ + - - + - - - - + + - - - + +

NM_SETTING_BOND_ERROR_MISSING_PROPERTY

-

the property was missing and is -required

+

setting :

the NMSettingBond  

NM_SETTING_BOND_ERROR_INVALID_OPTION

  

name :

the name of the option

NM_SETTING_BOND_ERROR_MISSING_OPTION

  

Returns :

the value of the bond option if not overridden by an entry in +the "options" property.
-
-
-

NM_SETTING_BOND_ERROR

-
#define NM_SETTING_BOND_ERROR nm_setting_bond_error_quark ()
-
-

-

-
-
-
-

NM_SETTING_BOND_INTERFACE_NAME

-
#define NM_SETTING_BOND_INTERFACE_NAME "interface-name"
-
-

-

-
-
-
-

NM_SETTING_BOND_OPTIONS

-
#define NM_SETTING_BOND_OPTIONS "options"
-
-

-

-
-
-
-

NM_SETTING_BOND_OPTION_MODE

-
#define NM_SETTING_BOND_OPTION_MODE          "mode"
-
-

-

-
-
-
-

NM_SETTING_BOND_OPTION_MIIMON

-
#define NM_SETTING_BOND_OPTION_MIIMON        "miimon"
-
-

-

-
-
-
-

NM_SETTING_BOND_OPTION_DOWNDELAY

-
#define NM_SETTING_BOND_OPTION_DOWNDELAY     "downdelay"
-
-

-

-
-
+
+

Property Details

-

NM_SETTING_BOND_OPTION_UPDELAY

-
#define NM_SETTING_BOND_OPTION_UPDELAY       "updelay"
-
+

The "interface-name" property

+
  "interface-name"           gchar*                : Read / Write

+The name of the virtual in-kernel bonding network interface

+

Default value: NULL


-

NM_SETTING_BOND_OPTION_ARP_INTERVAL

-
#define NM_SETTING_BOND_OPTION_ARP_INTERVAL  "arp_interval"
-
+

The "options" property

+
  "options"                  GHashTable_gchararray+gchararray_*  : Read / Write

+Dictionary of key/value pairs of bonding options. Both keys and values +must be strings. Option names must contain only alphanumeric characters +(ie, [a-zA-Z0-9]).

-
-
-

NM_SETTING_BOND_OPTION_ARP_IP_TARGET

-
#define NM_SETTING_BOND_OPTION_ARP_IP_TARGET "arp_ip_target"
-
-

-

-
-
-
-

Property Details

-
-

The “interface-name” property

-
  “interface-name”           gchar *
-

The name of the virtual in-kernel bonding network interface.

-

Flags: Read / Write

-

Default value: NULL

-
-
-
-

The “options” property

-
  “options”                  GHashTable_gchararray+gchararray_*
-

Dictionary of key/value pairs of bonding options. Both keys and values must be strings. Option names must contain only alphanumeric characters (ie, [a-zA-Z0-9]).

-

Flags: Read / Write

-
+ Generated by GTK-Doc V1.19
\ No newline at end of file -- cgit 1.3.0-6-gf8a5