Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
GI.NM.Structs.IPAddress
Description
No description available in the introspection data.
Synopsis
- newtype IPAddress = IPAddress (ManagedPtr IPAddress)
- iPAddressCmpFull :: (HasCallStack, MonadIO m) => IPAddress -> IPAddress -> [IPAddressCmpFlags] -> m Int32
- iPAddressDup :: (HasCallStack, MonadIO m) => IPAddress -> m IPAddress
- iPAddressEqual :: (HasCallStack, MonadIO m) => IPAddress -> IPAddress -> m Bool
- iPAddressGetAddress :: (HasCallStack, MonadIO m) => IPAddress -> m Text
- iPAddressGetAttribute :: (HasCallStack, MonadIO m) => IPAddress -> Text -> m GVariant
- iPAddressGetAttributeNames :: (HasCallStack, MonadIO m) => IPAddress -> m [Text]
- iPAddressGetFamily :: (HasCallStack, MonadIO m) => IPAddress -> m Int32
- iPAddressGetPrefix :: (HasCallStack, MonadIO m) => IPAddress -> m Word32
- iPAddressNew :: (HasCallStack, MonadIO m) => Int32 -> Text -> Word32 -> m IPAddress
- iPAddressNewBinary :: (HasCallStack, MonadIO m) => Int32 -> Ptr () -> Word32 -> m IPAddress
- iPAddressRef :: (HasCallStack, MonadIO m) => IPAddress -> m ()
- iPAddressSetAddress :: (HasCallStack, MonadIO m) => IPAddress -> Text -> m ()
- iPAddressSetAttribute :: (HasCallStack, MonadIO m) => IPAddress -> Text -> Maybe GVariant -> m ()
- iPAddressSetPrefix :: (HasCallStack, MonadIO m) => IPAddress -> Word32 -> m ()
- iPAddressUnref :: (HasCallStack, MonadIO m) => IPAddress -> m ()
Exported types
Memory-managed wrapper type.
Constructors
IPAddress (ManagedPtr IPAddress) |
Instances
Eq IPAddress Source # | |
GBoxed IPAddress Source # | |
Defined in GI.NM.Structs.IPAddress | |
ManagedPtrNewtype IPAddress Source # | |
Defined in GI.NM.Structs.IPAddress Methods | |
TypedObject IPAddress Source # | |
Defined in GI.NM.Structs.IPAddress | |
HasParentTypes IPAddress Source # | |
Defined in GI.NM.Structs.IPAddress | |
IsGValue (Maybe IPAddress) Source # | Convert |
Defined in GI.NM.Structs.IPAddress | |
type ParentTypes IPAddress Source # | |
Defined in GI.NM.Structs.IPAddress |
Methods
Click to display all available methods, including inherited ones
Methods
cmpFull, dup, equal, ref, unref.
Getters
getAddress, getAttribute, getAttributeNames, getFamily, getPrefix.
Setters
cmpFull
Arguments
:: (HasCallStack, MonadIO m) | |
=> IPAddress |
|
-> IPAddress |
|
-> [IPAddressCmpFlags] |
|
-> m Int32 | Returns: 0 if the two objects have the same values (according to their flags) or a integer indicating the compare order. |
Note that with cmpFlags
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.
Since: 1.22
dup
Arguments
:: (HasCallStack, MonadIO m) | |
=> IPAddress |
|
-> m IPAddress | Returns: a copy of 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. |
Creates a copy of address
Since: 1.32
equal
Arguments
:: (HasCallStack, MonadIO m) | |
=> IPAddress |
|
-> IPAddress |
|
-> m Bool | Returns: |
Determines if two IPAddress
objects contain the same address and prefix
(attributes are not compared).
getAddress
Arguments
:: (HasCallStack, MonadIO m) | |
=> IPAddress |
|
-> m Text | Returns: the IP address |
Gets the IP address property of this address object.
getAttribute
iPAddressGetAttribute Source #
Arguments
:: (HasCallStack, MonadIO m) | |
=> IPAddress |
|
-> Text |
|
-> m GVariant | Returns: the value of the attribute with name |
Gets the value of the attribute with name name
on address
getAttributeNames
iPAddressGetAttributeNames Source #
Arguments
:: (HasCallStack, MonadIO m) | |
=> IPAddress |
|
-> m [Text] | Returns: a |
Gets an array of attribute names defined on address
.
getFamily
Arguments
:: (HasCallStack, MonadIO m) | |
=> IPAddress |
|
-> m Int32 | Returns: the IP address family |
Gets the IP address family (eg, AF_INET) property of this address object.
getPrefix
Arguments
:: (HasCallStack, MonadIO m) | |
=> IPAddress |
|
-> m Word32 | Returns: the IP address prefix |
Gets the IP address prefix (ie "24" or "30" etc) property of this address object.
new
Arguments
:: (HasCallStack, MonadIO m) | |
=> Int32 |
|
-> Text |
|
-> Word32 |
|
-> m IPAddress | Returns: the new |
Creates a new IPAddress
object.
newBinary
Arguments
:: (HasCallStack, MonadIO m) | |
=> Int32 |
|
-> Ptr () |
|
-> Word32 |
|
-> m IPAddress | Returns: the new |
Creates a new IPAddress
object. addr
must point to a buffer of the
correct size for family
.
ref
Arguments
:: (HasCallStack, MonadIO m) | |
=> IPAddress |
|
-> m () |
Increases the reference count of the object.
setAddress
Arguments
:: (HasCallStack, MonadIO m) | |
=> IPAddress |
|
-> Text |
|
-> m () |
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 utilsIpaddrValid
to check it.
setAttribute
iPAddressSetAttribute Source #
Arguments
:: (HasCallStack, MonadIO m) | |
=> IPAddress |
|
-> Text |
|
-> Maybe GVariant |
|
-> m () |
Sets or clears the named attribute on address
to the given value.
setPrefix
Arguments
:: (HasCallStack, MonadIO m) | |
=> IPAddress |
|
-> Word32 |
|
-> m () |
Sets the IP address prefix property of this address object.
unref
Arguments
:: (HasCallStack, MonadIO m) | |
=> IPAddress |
|
-> m () |
Decreases the reference count of the object. If the reference count reaches zero, the object will be destroyed.