the NM.IPAddress to compare address to.
the NM.IPAddressCmpFlags that indicate what to compare.
0 if the two objects have the same values (according to their flags) or a integer indicating the compare order.
Creates a copy of address
a copy of address This API was part of public headers before 1.32.0 but was erroneously not exported in the ABI. It is thus only usable since 1.32.0.
Determines if two NM.IPAddress objects contain the same address and prefix (attributes are not compared).
the NM.IPAddress to compare address to.
true if the objects contain the same values, false if they do not.
Gets the IP address property of this address object.
the IP address
Gets an array of attribute names defined on address.
a null-terminated array of attribute names,
Gets the IP address family (eg, AF_INET) property of this address object.
the IP address family
Gets the IP address prefix (ie "24" or "30" etc) property of this address object.
the IP address prefix
Increases the reference count of the object.
Sets the IP address property of this address object.
addr must be a valid address of address's family. If you aren't sure you
have a valid address, use nm_utils_ipaddr_valid() to check it.
the IP address, as a string
Sets the IP address prefix property of this address object.
the IP address prefix
Decreases the reference count of the object. If the reference count reaches zero, the object will be destroyed.
StaticnewStaticnew_
Note that with
cmp_flags#NM_IP_ADDRESS_CMP_FLAGS_WITH_ATTRS, there is no total order for comparing GVariant. That means, if the two addresses only differ by their attributes, the sort order is undefined and the return value only indicates equality.