From 1372848511cb896b80b51ed1a3e9606bd9816631 Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Fri, 10 Feb 2023 11:50:34 +0100 Subject: New upstream version 1.42.0 --- docs/libnm/html/libnm-nm-utils.html | 140 ++++++++++++++++++++---------------- 1 file changed, 79 insertions(+), 61 deletions(-) (limited to 'docs/libnm/html/libnm-nm-utils.html') diff --git a/docs/libnm/html/libnm-nm-utils.html b/docs/libnm/html/libnm-nm-utils.html index ff4f74e8..73752da0 100644 --- a/docs/libnm/html/libnm-nm-utils.html +++ b/docs/libnm/html/libnm-nm-utils.html @@ -7,7 +7,7 @@ - + @@ -21,7 +21,7 @@ Home Up Prev -Next +Next
@@ -537,7 +537,7 @@ -NMTCQdisc * +NMTCQdisc * nm_utils_tc_qdisc_from_str () @@ -553,7 +553,7 @@ -NMTCAction * +NMTCAction * nm_utils_tc_action_from_str () @@ -569,7 +569,7 @@ -NMTCTfilter * +NMTCTfilter * nm_utils_tc_tfilter_from_str () @@ -593,7 +593,7 @@ -NMSriovVF * +NMSriovVF * nm_utils_sriov_vf_from_str () @@ -615,6 +615,14 @@ nm_utils_base64secret_decode () + + +void + + +nm_utils_ensure_gtypes () + +
@@ -978,7 +986,7 @@ e.g.

nm_utils_wep_key_valid ()

gboolean
 nm_utils_wep_key_valid (const char *key,
-                        NMWepKeyType wep_type);
+ NMWepKeyType wep_type);

Checks if key is a valid WEP key

@@ -997,7 +1005,7 @@ nm_utils_wep_key_valid (const cha

wep_type

-

the NMWepKeyType type of the WEP key

+

the NMWepKeyType type of the WEP key

  @@ -1137,7 +1145,7 @@ IPv4 addresses into an array of IP address strings.

GVariant *
 nm_utils_ip4_addresses_to_variant (GPtrArray *addresses,
                                    const char *gateway);
-

Utility function to convert a GPtrArray of NMIPAddress objects representing +

Utility function to convert a GPtrArray of NMIPAddress objects representing IPv4 addresses into a GVariant of type 'aau' representing an array of NetworkManager IPv4 addresses (which are tuples of address, prefix, and gateway). The "gateway" field of the first address will get the value of @@ -1154,7 +1162,7 @@ gateway). The "gateway" field of the first address will get the value of

addresses

-

an array of NMIPAddress objects.

+

an array of NMIPAddress objects.

[element-type NMIPAddress] @@ -1180,7 +1188,7 @@ nm_utils_ip4_addresses_from_variant (char **out_gateway);

Utility function to convert a GVariant of type 'aau' representing a list of NetworkManager IPv4 addresses (which are tuples of address, prefix, and -gateway) into a GPtrArray of NMIPAddress objects. The "gateway" field of +gateway) into a GPtrArray of NMIPAddress objects. The "gateway" field of the first address (if set) will be returned in out_gateway ; the "gateway" fields of the other addresses are ignored.

@@ -1209,7 +1217,7 @@ of the other addresses are ignored.

Returns

a newly allocated -GPtrArray of NMIPAddress objects.

+GPtrArray of NMIPAddress objects.

[transfer full][element-type NMIPAddress]

@@ -1218,7 +1226,7 @@ of the other addresses are ignored.

nm_utils_ip4_routes_to_variant ()

GVariant *
 nm_utils_ip4_routes_to_variant (GPtrArray *routes);
-

Utility function to convert a GPtrArray of NMIPRoute objects representing +

Utility function to convert a GPtrArray of NMIPRoute objects representing IPv4 routes into a GVariant of type 'aau' representing an array of NetworkManager IPv4 routes (which are tuples of route, prefix, next hop, and metric).

@@ -1251,7 +1259,7 @@ metric).

nm_utils_ip4_routes_from_variant (GVariant *value);

Utility function to convert a GVariant of type 'aau' representing an array of NetworkManager IPv4 routes (which are tuples of route, prefix, next hop, -and metric) into a GPtrArray of NMIPRoute objects.

+and metric) into a GPtrArray of NMIPRoute objects.

Parameters

@@ -1270,7 +1278,7 @@ and metric) into a

Returns

a newly allocated -GPtrArray of NMIPRoute objects.

+GPtrArray of NMIPRoute objects.

[transfer full][element-type NMIPRoute]

@@ -1425,7 +1433,7 @@ ignored.

GVariant *
 nm_utils_ip6_addresses_to_variant (GPtrArray *addresses,
                                    const char *gateway);
-

Utility function to convert a GPtrArray of NMIPAddress objects representing +

Utility function to convert a GPtrArray of NMIPAddress objects representing IPv6 addresses into a GVariant of type 'a(ayuay)' representing an array of NetworkManager IPv6 addresses (which are tuples of address, prefix, and gateway). The "gateway" field of the first address will get the value of @@ -1443,7 +1451,7 @@ all 0s.

- + @@ -1469,7 +1477,7 @@ nm_utils_ip6_addresses_from_variant (char **out_gateway);

Utility function to convert a GVariant of type 'a(ayuay)' representing a list of NetworkManager IPv6 addresses (which are tuples of address, prefix, -and gateway) into a GPtrArray of NMIPAddress objects. The "gateway" field +and gateway) into a GPtrArray of NMIPAddress objects. The "gateway" field of the first address (if set) will be returned in out_gateway ; the "gateway" fields of the other addresses are ignored.

@@ -1498,7 +1506,7 @@ fields of the other addresses are ignored.

Returns

a newly allocated -GPtrArray of NMIPAddress objects.

+GPtrArray of NMIPAddress objects.

[transfer full][element-type NMIPAddress]

@@ -1507,7 +1515,7 @@ fields of the other addresses are ignored.

nm_utils_ip6_routes_to_variant ()

GVariant *
 nm_utils_ip6_routes_to_variant (GPtrArray *routes);
-

Utility function to convert a GPtrArray of NMIPRoute objects representing +

Utility function to convert a GPtrArray of NMIPRoute objects representing IPv6 routes into a GVariant of type 'a(ayuayu)' representing an array of NetworkManager IPv6 routes (which are tuples of route, prefix, next hop, and metric).

@@ -1521,7 +1529,7 @@ metric).

- +

addresses

an array of NMIPAddress objects.

an array of NMIPAddress objects.

[element-type NMIPAddress]

routes

an array of NMIPRoute objects.

an array of NMIPRoute objects.

[element-type NMIPRoute]
@@ -1540,7 +1548,7 @@ metric).

nm_utils_ip6_routes_from_variant (GVariant *value);

Utility function to convert a GVariant of type 'a(ayuayu)' representing an array of NetworkManager IPv6 routes (which are tuples of route, prefix, next -hop, and metric) into a GPtrArray of NMIPRoute objects.

+hop, and metric) into a GPtrArray of NMIPRoute objects.

Parameters

@@ -1559,7 +1567,7 @@ hop, and metric) into a

Returns

a newly allocated -GPtrArray of NMIPRoute objects.

+GPtrArray of NMIPRoute objects.

[transfer full][element-type NMIPRoute]

@@ -1568,7 +1576,7 @@ hop, and metric) into a

nm_utils_ip_addresses_to_variant ()

GVariant *
 nm_utils_ip_addresses_to_variant (GPtrArray *addresses);
-

Utility function to convert a GPtrArray of NMIPAddress objects representing +

Utility function to convert a GPtrArray of NMIPAddress objects representing IPv4 or IPv6 addresses into a GVariant of type 'aa{sv}' representing an array of new-style NetworkManager IP addresses. All addresses will include "address" (an IP address string), and "prefix" (a uint). Some addresses may @@ -1583,7 +1591,7 @@ include additional attributes.

- +

addresses

an array of NMIPAddress objects.

an array of NMIPAddress objects.

[element-type NMIPAddress]
@@ -1594,7 +1602,7 @@ include additional attributes.

.

[transfer none]

-

Since: 1.42, 1.40.4

+

Since: 1.42


@@ -1604,7 +1612,7 @@ nm_utils_ip_addresses_from_variant (int family);

Utility function to convert a GVariant representing a list of new-style NetworkManager IPv4 or IPv6 addresses (as described in the documentation for -nm_utils_ip_addresses_to_variant()) into a GPtrArray of NMIPAddress +nm_utils_ip_addresses_to_variant()) into a GPtrArray of NMIPAddress objects.

Parameters

@@ -1631,17 +1639,17 @@ objects.

Returns

a newly allocated -GPtrArray of NMIPAddress objects.

+GPtrArray of NMIPAddress objects.

[transfer full][element-type NMIPAddress]

-

Since: 1.42, 1.40.4

+

Since: 1.42


nm_utils_ip_routes_to_variant ()

GVariant *
 nm_utils_ip_routes_to_variant (GPtrArray *routes);
-

Utility function to convert a GPtrArray of NMIPRoute objects representing +

Utility function to convert a GPtrArray of NMIPRoute objects representing IPv4 or IPv6 routes into a GVariant of type 'aa{sv}' representing an array of new-style NetworkManager IP routes (which are tuples of destination, prefix, next hop, metric, and additional attributes).

@@ -1655,7 +1663,7 @@ prefix, next hop, metric, and additional attributes).

routes

-

an array of NMIPRoute objects.

+

an array of NMIPRoute objects.

[element-type NMIPRoute]
@@ -1666,7 +1674,7 @@ prefix, next hop, metric, and additional attributes).

.

[transfer none]

-

Since: 1.42, 1.40.4

+

Since: 1.42


@@ -1677,7 +1685,7 @@ nm_utils_ip_routes_from_variant (GVariant representing a list of new-style NetworkManager IPv4 or IPv6 addresses (which are tuples of destination, prefix, next hop, metric, and additional attributes) into a GPtrArray of -NMIPRoute objects.

+NMIPRoute objects.

Parameters

@@ -1703,10 +1711,10 @@ prefix, next hop, metric, and additional attributes) into a

Returns

a newly allocated -GPtrArray of NMIPRoute objects.

+GPtrArray of NMIPRoute objects.

[transfer full][element-type NMIPRoute]

-

Since: 1.42, 1.40.4

+

Since: 1.42


@@ -1715,8 +1723,8 @@ prefix, next hop, metric, and additional attributes) into a void);

Returns

-

a newly allocated UUID suitable for use as the NMSettingConnection -object's “id”: property. Should be freed with g_free()

+

a newly allocated UUID suitable for use as the NMSettingConnection +object's “id”: property. Should be freed with g_free()


@@ -2543,7 +2551,7 @@ nm_utils_inet4_ntop (

dst

the destination buffer, it must contain at least -INET_ADDRSTRLEN or NM_UTILS_INET_ADDRSTRLEN +INET_ADDRSTRLEN or NM_INET_ADDRSTRLEN characters. If set to NULL, it will return a pointer to an internal, static buffer (shared with nm_utils_inet6_ntop()). Beware, that the internal buffer will be overwritten with ever new call of nm_utils_inet4_ntop() or @@ -2590,7 +2598,7 @@ nm_utils_inet6_ntop (const struct

dst

the destination buffer, it must contain at least -INET6_ADDRSTRLEN or NM_UTILS_INET_ADDRSTRLEN +INET6_ADDRSTRLEN or NM_INET_ADDRSTRLEN characters. If set to NULL, it will return a pointer to an internal, static buffer (shared with nm_utils_inet4_ntop()). Beware, that the internal buffer will be overwritten with ever new call of nm_utils_inet4_ntop() or @@ -2906,7 +2914,7 @@ or void);

Returns

-

the version ID of the libnm version. That is, the NM_VERSION +

the version ID of the libnm version. That is, the NM_VERSION at runtime.

Since: 1.6

@@ -3020,11 +3028,11 @@ in case there are no attributes.


nm_utils_tc_qdisc_from_str ()

-
NMTCQdisc *
+
NMTCQdisc *
 nm_utils_tc_qdisc_from_str (const char *str,
                             GError **error);

Parses the tc style string qdisc representation of the queueing -discipline to a NMTCQdisc instance. Supports a subset of the tc language.

+discipline to a NMTCQdisc instance. Supports a subset of the tc language.

Parameters

@@ -3049,7 +3057,7 @@ discipline to a

Returns

-

the NMTCQdisc or NULL

+

the NMTCQdisc or NULL

Since: 1.12

@@ -3057,9 +3065,9 @@ discipline to a

nm_utils_tc_qdisc_to_str ()

char *
-nm_utils_tc_qdisc_to_str (NMTCQdisc *qdisc,
+nm_utils_tc_qdisc_to_str (NMTCQdisc *qdisc,
                           GError **error);
-

Turns the NMTCQdisc into a tc style string representation of the queueing +

Turns the NMTCQdisc into a tc style string representation of the queueing discipline.

Parameters

@@ -3072,7 +3080,7 @@ discipline.

- + @@ -3092,11 +3100,11 @@ discipline.


nm_utils_tc_action_from_str ()

-
NMTCAction *
+
NMTCAction *
 nm_utils_tc_action_from_str (const char *str,
                              GError **error);

Parses the tc style string action representation of the queueing -discipline to a NMTCAction instance. Supports a subset of the tc language.

+discipline to a NMTCAction instance. Supports a subset of the tc language.

Parameters

qdisc

the NMTCQdisc

the NMTCQdisc

 
@@ -3121,7 +3129,7 @@ discipline to a

Returns

-

the NMTCAction or NULL

+

the NMTCAction or NULL

Since: 1.12

@@ -3129,9 +3137,9 @@ discipline to a

nm_utils_tc_action_to_str ()

char *
-nm_utils_tc_action_to_str (NMTCAction *action,
+nm_utils_tc_action_to_str (NMTCAction *action,
                            GError **error);
-

Turns the NMTCAction into a tc style string representation of the queueing +

Turns the NMTCAction into a tc style string representation of the queueing discipline.

Parameters

@@ -3144,7 +3152,7 @@ discipline.

- + @@ -3164,11 +3172,11 @@ discipline.


nm_utils_tc_tfilter_from_str ()

-
NMTCTfilter *
+
NMTCTfilter *
 nm_utils_tc_tfilter_from_str (const char *str,
                               GError **error);

Parses the tc style string tfilter representation of the queueing -discipline to a NMTCTfilter instance. Supports a subset of the tc language.

+discipline to a NMTCTfilter instance. Supports a subset of the tc language.

Parameters

action

the NMTCAction

the NMTCAction

 
@@ -3193,7 +3201,7 @@ discipline to a

Returns

-

the NMTCTfilter or NULL

+

the NMTCTfilter or NULL

Since: 1.12

@@ -3201,9 +3209,9 @@ discipline to a

nm_utils_tc_tfilter_to_str ()

char *
-nm_utils_tc_tfilter_to_str (NMTCTfilter *tfilter,
+nm_utils_tc_tfilter_to_str (NMTCTfilter *tfilter,
                             GError **error);
-

Turns the NMTCTfilter into a tc style string representation of the queueing +

Turns the NMTCTfilter into a tc style string representation of the queueing discipline.

Parameters

@@ -3216,7 +3224,7 @@ discipline.

- + @@ -3237,7 +3245,7 @@ discipline.

nm_utils_sriov_vf_to_str ()

char *
-nm_utils_sriov_vf_to_str (const NMSriovVF *vf,
+nm_utils_sriov_vf_to_str (const NMSriovVF *vf,
                           gboolean omit_index,
                           GError **error);

Converts a SR-IOV virtual function object to its string representation.

@@ -3252,7 +3260,7 @@ nm_utils_sriov_vf_to_str (const
- + @@ -3277,7 +3285,7 @@ nm_utils_sriov_vf_to_str (const

nm_utils_sriov_vf_from_str ()

-
NMSriovVF *
+
NMSriovVF *
 nm_utils_sriov_vf_from_str (const char *str,
                             GError **error);

Converts a string to a SR-IOV virtual function object.

@@ -3367,6 +3375,16 @@ bytes.

Since: 1.16

+
+
+

nm_utils_ensure_gtypes ()

+
void
+nm_utils_ensure_gtypes (void);
+

This ensures that all NMSetting GTypes are created. For example, +after this call, g_type_from_name("NMSettingConnection") will work.

+

This cannot fail and does nothing if the type already exists.

+

Since: 1.42

+

Types and Values

-- cgit 1.3.0-6-gf8a5

tfilter

the NMTCTfilter

the NMTCTfilter

 

vf

the NMSriovVF

the NMSriovVF