gi-nm-1.0.1: NM bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.NM.Objects.DhcpConfig

Description

No description available in the introspection data.

Synopsis

Exported types

newtype DhcpConfig Source #

Memory-managed wrapper type.

class (GObject o, IsDescendantOf DhcpConfig o) => IsDhcpConfig o Source #

Type class for types which can be safely cast to DhcpConfig, for instance with toDhcpConfig.

Instances

Instances details
(GObject o, IsDescendantOf DhcpConfig o) => IsDhcpConfig o Source # 
Instance details

Defined in GI.NM.Objects.DhcpConfig

toDhcpConfig :: (MonadIO m, IsDhcpConfig o) => o -> m DhcpConfig Source #

Cast to DhcpConfig, for types for which this is known to be safe. For general casts, use castTo.

Methods

getFamily

dhcpConfigGetFamily Source #

Arguments

:: (HasCallStack, MonadIO m, IsDhcpConfig a) 
=> a

config: a DhcpConfig

-> m Int32

Returns: the IP address family; either <literal>AF_INET</literal> or <literal>AF_INET6</literal>

Gets the IP address family of the configuration

getOneOption

dhcpConfigGetOneOption Source #

Arguments

:: (HasCallStack, MonadIO m, IsDhcpConfig a) 
=> a

config: a DhcpConfig

-> Text

option: the option to retrieve

-> m Text

Returns: the configuration option's value. This is the internal string used by the configuration, and must not be modified.

Gets one option by option name.

getOptions

dhcpConfigGetOptions Source #

Arguments

:: (HasCallStack, MonadIO m, IsDhcpConfig a) 
=> a

config: a DhcpConfig

-> m (Map Text Text)

Returns: the HashTable containing strings for keys and values. This is the internal copy used by the configuration, and must not be modified.

Gets all the options contained in the configuration.

Properties

family

The IP address family of the configuration; either <literal>AF_INET</literal> or <literal>AF_INET6</literal>.

getDhcpConfigFamily :: (MonadIO m, IsDhcpConfig o) => o -> m Int32 Source #

Get the value of the “family” property. When overloading is enabled, this is equivalent to

get dhcpConfig #family

options

The HashTable containing options of the configuration.

getDhcpConfigOptions :: (MonadIO m, IsDhcpConfig o) => o -> m (Map Text Text) Source #

Get the value of the “options” property. When overloading is enabled, this is equivalent to

get dhcpConfig #options