{-# LANGUAGE TypeApplications #-}
#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.NM.Objects.SettingIPConfig
(
SettingIPConfig(..) ,
IsSettingIPConfig ,
toSettingIPConfig ,
#if defined(ENABLE_OVERLOADING)
ResolveSettingIPConfigMethod ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingIPConfigAddAddressMethodInfo ,
#endif
settingIPConfigAddAddress ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigAddDhcpRejectServerMethodInfo,
#endif
settingIPConfigAddDhcpRejectServer ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigAddDnsMethodInfo ,
#endif
settingIPConfigAddDns ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigAddDnsOptionMethodInfo ,
#endif
settingIPConfigAddDnsOption ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigAddDnsSearchMethodInfo ,
#endif
settingIPConfigAddDnsSearch ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigAddRouteMethodInfo ,
#endif
settingIPConfigAddRoute ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigAddRoutingRuleMethodInfo ,
#endif
settingIPConfigAddRoutingRule ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigClearAddressesMethodInfo ,
#endif
settingIPConfigClearAddresses ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigClearDhcpRejectServersMethodInfo,
#endif
settingIPConfigClearDhcpRejectServers ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigClearDnsMethodInfo ,
#endif
settingIPConfigClearDns ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigClearDnsOptionsMethodInfo,
#endif
settingIPConfigClearDnsOptions ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigClearDnsSearchesMethodInfo,
#endif
settingIPConfigClearDnsSearches ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigClearRoutesMethodInfo ,
#endif
settingIPConfigClearRoutes ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigClearRoutingRulesMethodInfo,
#endif
settingIPConfigClearRoutingRules ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigGetAddressMethodInfo ,
#endif
settingIPConfigGetAddress ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigGetAutoRouteExtGwMethodInfo,
#endif
settingIPConfigGetAutoRouteExtGw ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigGetDadTimeoutMethodInfo ,
#endif
settingIPConfigGetDadTimeout ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigGetDhcpDscpMethodInfo ,
#endif
settingIPConfigGetDhcpDscp ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigGetDhcpHostnameMethodInfo,
#endif
settingIPConfigGetDhcpHostname ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigGetDhcpHostnameFlagsMethodInfo,
#endif
settingIPConfigGetDhcpHostnameFlags ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigGetDhcpIaidMethodInfo ,
#endif
settingIPConfigGetDhcpIaid ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigGetDhcpRejectServersMethodInfo,
#endif
settingIPConfigGetDhcpRejectServers ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigGetDhcpSendHostnameMethodInfo,
#endif
settingIPConfigGetDhcpSendHostname ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigGetDhcpSendReleaseMethodInfo,
#endif
settingIPConfigGetDhcpSendRelease ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigGetDhcpTimeoutMethodInfo ,
#endif
settingIPConfigGetDhcpTimeout ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigGetDnsMethodInfo ,
#endif
settingIPConfigGetDns ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigGetDnsOptionMethodInfo ,
#endif
settingIPConfigGetDnsOption ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigGetDnsPriorityMethodInfo ,
#endif
settingIPConfigGetDnsPriority ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigGetDnsSearchMethodInfo ,
#endif
settingIPConfigGetDnsSearch ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigGetGatewayMethodInfo ,
#endif
settingIPConfigGetGateway ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigGetIgnoreAutoDnsMethodInfo,
#endif
settingIPConfigGetIgnoreAutoDns ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigGetIgnoreAutoRoutesMethodInfo,
#endif
settingIPConfigGetIgnoreAutoRoutes ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigGetMayFailMethodInfo ,
#endif
settingIPConfigGetMayFail ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigGetMethodMethodInfo ,
#endif
settingIPConfigGetMethod ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigGetNeverDefaultMethodInfo,
#endif
settingIPConfigGetNeverDefault ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigGetNumAddressesMethodInfo,
#endif
settingIPConfigGetNumAddresses ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigGetNumDnsMethodInfo ,
#endif
settingIPConfigGetNumDns ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigGetNumDnsOptionsMethodInfo,
#endif
settingIPConfigGetNumDnsOptions ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigGetNumDnsSearchesMethodInfo,
#endif
settingIPConfigGetNumDnsSearches ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigGetNumRoutesMethodInfo ,
#endif
settingIPConfigGetNumRoutes ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigGetNumRoutingRulesMethodInfo,
#endif
settingIPConfigGetNumRoutingRules ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigGetReplaceLocalRuleMethodInfo,
#endif
settingIPConfigGetReplaceLocalRule ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigGetRequiredTimeoutMethodInfo,
#endif
settingIPConfigGetRequiredTimeout ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigGetRouteMethodInfo ,
#endif
settingIPConfigGetRoute ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigGetRouteMetricMethodInfo ,
#endif
settingIPConfigGetRouteMetric ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigGetRouteTableMethodInfo ,
#endif
settingIPConfigGetRouteTable ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigGetRoutingRuleMethodInfo ,
#endif
settingIPConfigGetRoutingRule ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigHasDnsOptionsMethodInfo ,
#endif
settingIPConfigHasDnsOptions ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigRemoveAddressMethodInfo ,
#endif
settingIPConfigRemoveAddress ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigRemoveAddressByValueMethodInfo,
#endif
settingIPConfigRemoveAddressByValue ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigRemoveDhcpRejectServerMethodInfo,
#endif
settingIPConfigRemoveDhcpRejectServer ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigRemoveDnsMethodInfo ,
#endif
settingIPConfigRemoveDns ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigRemoveDnsByValueMethodInfo,
#endif
settingIPConfigRemoveDnsByValue ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigRemoveDnsOptionMethodInfo,
#endif
settingIPConfigRemoveDnsOption ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigRemoveDnsOptionByValueMethodInfo,
#endif
settingIPConfigRemoveDnsOptionByValue ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigRemoveDnsSearchMethodInfo,
#endif
settingIPConfigRemoveDnsSearch ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigRemoveDnsSearchByValueMethodInfo,
#endif
settingIPConfigRemoveDnsSearchByValue ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigRemoveRouteMethodInfo ,
#endif
settingIPConfigRemoveRoute ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigRemoveRouteByValueMethodInfo,
#endif
settingIPConfigRemoveRouteByValue ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigRemoveRoutingRuleMethodInfo,
#endif
settingIPConfigRemoveRoutingRule ,
#if defined(ENABLE_OVERLOADING)
SettingIPConfigAddressesPropertyInfo ,
#endif
#if defined(ENABLE_OVERLOADING)
settingIPConfigAddresses ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingIPConfigAutoRouteExtGwPropertyInfo,
#endif
constructSettingIPConfigAutoRouteExtGw ,
getSettingIPConfigAutoRouteExtGw ,
setSettingIPConfigAutoRouteExtGw ,
#if defined(ENABLE_OVERLOADING)
settingIPConfigAutoRouteExtGw ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingIPConfigDadTimeoutPropertyInfo ,
#endif
constructSettingIPConfigDadTimeout ,
getSettingIPConfigDadTimeout ,
setSettingIPConfigDadTimeout ,
#if defined(ENABLE_OVERLOADING)
settingIPConfigDadTimeout ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingIPConfigDhcpDscpPropertyInfo ,
#endif
clearSettingIPConfigDhcpDscp ,
constructSettingIPConfigDhcpDscp ,
getSettingIPConfigDhcpDscp ,
setSettingIPConfigDhcpDscp ,
#if defined(ENABLE_OVERLOADING)
settingIPConfigDhcpDscp ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingIPConfigDhcpHostnamePropertyInfo ,
#endif
clearSettingIPConfigDhcpHostname ,
constructSettingIPConfigDhcpHostname ,
getSettingIPConfigDhcpHostname ,
setSettingIPConfigDhcpHostname ,
#if defined(ENABLE_OVERLOADING)
settingIPConfigDhcpHostname ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingIPConfigDhcpHostnameFlagsPropertyInfo,
#endif
constructSettingIPConfigDhcpHostnameFlags,
getSettingIPConfigDhcpHostnameFlags ,
setSettingIPConfigDhcpHostnameFlags ,
#if defined(ENABLE_OVERLOADING)
settingIPConfigDhcpHostnameFlags ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingIPConfigDhcpIaidPropertyInfo ,
#endif
clearSettingIPConfigDhcpIaid ,
constructSettingIPConfigDhcpIaid ,
getSettingIPConfigDhcpIaid ,
setSettingIPConfigDhcpIaid ,
#if defined(ENABLE_OVERLOADING)
settingIPConfigDhcpIaid ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingIPConfigDhcpRejectServersPropertyInfo,
#endif
clearSettingIPConfigDhcpRejectServers ,
constructSettingIPConfigDhcpRejectServers,
getSettingIPConfigDhcpRejectServers ,
setSettingIPConfigDhcpRejectServers ,
#if defined(ENABLE_OVERLOADING)
settingIPConfigDhcpRejectServers ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingIPConfigDhcpSendHostnamePropertyInfo,
#endif
constructSettingIPConfigDhcpSendHostname,
getSettingIPConfigDhcpSendHostname ,
setSettingIPConfigDhcpSendHostname ,
#if defined(ENABLE_OVERLOADING)
settingIPConfigDhcpSendHostname ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingIPConfigDhcpSendReleasePropertyInfo,
#endif
constructSettingIPConfigDhcpSendRelease ,
getSettingIPConfigDhcpSendRelease ,
setSettingIPConfigDhcpSendRelease ,
#if defined(ENABLE_OVERLOADING)
settingIPConfigDhcpSendRelease ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingIPConfigDhcpTimeoutPropertyInfo ,
#endif
constructSettingIPConfigDhcpTimeout ,
getSettingIPConfigDhcpTimeout ,
setSettingIPConfigDhcpTimeout ,
#if defined(ENABLE_OVERLOADING)
settingIPConfigDhcpTimeout ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingIPConfigDnsPropertyInfo ,
#endif
clearSettingIPConfigDns ,
constructSettingIPConfigDns ,
getSettingIPConfigDns ,
setSettingIPConfigDns ,
#if defined(ENABLE_OVERLOADING)
settingIPConfigDns ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingIPConfigDnsOptionsPropertyInfo ,
#endif
clearSettingIPConfigDnsOptions ,
constructSettingIPConfigDnsOptions ,
getSettingIPConfigDnsOptions ,
setSettingIPConfigDnsOptions ,
#if defined(ENABLE_OVERLOADING)
settingIPConfigDnsOptions ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingIPConfigDnsPriorityPropertyInfo ,
#endif
constructSettingIPConfigDnsPriority ,
getSettingIPConfigDnsPriority ,
setSettingIPConfigDnsPriority ,
#if defined(ENABLE_OVERLOADING)
settingIPConfigDnsPriority ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingIPConfigDnsSearchPropertyInfo ,
#endif
clearSettingIPConfigDnsSearch ,
constructSettingIPConfigDnsSearch ,
getSettingIPConfigDnsSearch ,
setSettingIPConfigDnsSearch ,
#if defined(ENABLE_OVERLOADING)
settingIPConfigDnsSearch ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingIPConfigGatewayPropertyInfo ,
#endif
clearSettingIPConfigGateway ,
constructSettingIPConfigGateway ,
getSettingIPConfigGateway ,
setSettingIPConfigGateway ,
#if defined(ENABLE_OVERLOADING)
settingIPConfigGateway ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingIPConfigIgnoreAutoDnsPropertyInfo,
#endif
constructSettingIPConfigIgnoreAutoDns ,
getSettingIPConfigIgnoreAutoDns ,
setSettingIPConfigIgnoreAutoDns ,
#if defined(ENABLE_OVERLOADING)
settingIPConfigIgnoreAutoDns ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingIPConfigIgnoreAutoRoutesPropertyInfo,
#endif
constructSettingIPConfigIgnoreAutoRoutes,
getSettingIPConfigIgnoreAutoRoutes ,
setSettingIPConfigIgnoreAutoRoutes ,
#if defined(ENABLE_OVERLOADING)
settingIPConfigIgnoreAutoRoutes ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingIPConfigMayFailPropertyInfo ,
#endif
constructSettingIPConfigMayFail ,
getSettingIPConfigMayFail ,
setSettingIPConfigMayFail ,
#if defined(ENABLE_OVERLOADING)
settingIPConfigMayFail ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingIPConfigMethodPropertyInfo ,
#endif
clearSettingIPConfigMethod ,
constructSettingIPConfigMethod ,
getSettingIPConfigMethod ,
setSettingIPConfigMethod ,
#if defined(ENABLE_OVERLOADING)
settingIPConfigMethod ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingIPConfigNeverDefaultPropertyInfo ,
#endif
constructSettingIPConfigNeverDefault ,
getSettingIPConfigNeverDefault ,
setSettingIPConfigNeverDefault ,
#if defined(ENABLE_OVERLOADING)
settingIPConfigNeverDefault ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingIPConfigReplaceLocalRulePropertyInfo,
#endif
constructSettingIPConfigReplaceLocalRule,
getSettingIPConfigReplaceLocalRule ,
setSettingIPConfigReplaceLocalRule ,
#if defined(ENABLE_OVERLOADING)
settingIPConfigReplaceLocalRule ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingIPConfigRequiredTimeoutPropertyInfo,
#endif
constructSettingIPConfigRequiredTimeout ,
getSettingIPConfigRequiredTimeout ,
setSettingIPConfigRequiredTimeout ,
#if defined(ENABLE_OVERLOADING)
settingIPConfigRequiredTimeout ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingIPConfigRouteMetricPropertyInfo ,
#endif
constructSettingIPConfigRouteMetric ,
getSettingIPConfigRouteMetric ,
setSettingIPConfigRouteMetric ,
#if defined(ENABLE_OVERLOADING)
settingIPConfigRouteMetric ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingIPConfigRouteTablePropertyInfo ,
#endif
constructSettingIPConfigRouteTable ,
getSettingIPConfigRouteTable ,
setSettingIPConfigRouteTable ,
#if defined(ENABLE_OVERLOADING)
settingIPConfigRouteTable ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingIPConfigRoutesPropertyInfo ,
#endif
#if defined(ENABLE_OVERLOADING)
settingIPConfigRoutes ,
#endif
) where
import Data.GI.Base.ShortPrelude
import qualified Data.GI.Base.ShortPrelude as SP
import qualified Data.GI.Base.Overloading as O
import qualified Prelude as P
import qualified Data.GI.Base.Attributes as GI.Attributes
import qualified Data.GI.Base.BasicTypes as B.Types
import qualified Data.GI.Base.ManagedPtr as B.ManagedPtr
import qualified Data.GI.Base.GArray as B.GArray
import qualified Data.GI.Base.GClosure as B.GClosure
import qualified Data.GI.Base.GError as B.GError
import qualified Data.GI.Base.GHashTable as B.GHT
import qualified Data.GI.Base.GVariant as B.GVariant
import qualified Data.GI.Base.GValue as B.GValue
import qualified Data.GI.Base.GParamSpec as B.GParamSpec
import qualified Data.GI.Base.CallStack as B.CallStack
import qualified Data.GI.Base.Properties as B.Properties
import qualified Data.GI.Base.Signals as B.Signals
import qualified Control.Monad.IO.Class as MIO
import qualified Data.Coerce as Coerce
import qualified Data.Text as T
import qualified Data.Kind as DK
import qualified Data.ByteString.Char8 as B
import qualified Data.Map as Map
import qualified Foreign.Ptr as FP
import qualified GHC.OverloadedLabels as OL
import qualified GHC.Records as R
import qualified Data.Word as DW
import qualified Data.Int as DI
import qualified System.Posix.Types as SPT
import qualified Foreign.C.Types as FCT
#if MIN_VERSION_base(4,18,0)
import qualified GI.GLib.Structs.Bytes as GLib.Bytes
import qualified GI.GLib.Structs.VariantType as GLib.VariantType
import qualified GI.GObject.Objects.Object as GObject.Object
import qualified GI.NM.Callbacks as NM.Callbacks
import {-# SOURCE #-} qualified GI.NM.Enums as NM.Enums
import {-# SOURCE #-} qualified GI.NM.Flags as NM.Flags
import {-# SOURCE #-} qualified GI.NM.Interfaces.Connection as NM.Connection
import {-# SOURCE #-} qualified GI.NM.Objects.Setting as NM.Setting
import {-# SOURCE #-} qualified GI.NM.Objects.Setting8021x as NM.Setting8021x
import {-# SOURCE #-} qualified GI.NM.Objects.SettingAdsl as NM.SettingAdsl
import {-# SOURCE #-} qualified GI.NM.Objects.SettingBluetooth as NM.SettingBluetooth
import {-# SOURCE #-} qualified GI.NM.Objects.SettingBond as NM.SettingBond
import {-# SOURCE #-} qualified GI.NM.Objects.SettingBridge as NM.SettingBridge
import {-# SOURCE #-} qualified GI.NM.Objects.SettingBridgePort as NM.SettingBridgePort
import {-# SOURCE #-} qualified GI.NM.Objects.SettingCdma as NM.SettingCdma
import {-# SOURCE #-} qualified GI.NM.Objects.SettingConnection as NM.SettingConnection
import {-# SOURCE #-} qualified GI.NM.Objects.SettingDcb as NM.SettingDcb
import {-# SOURCE #-} qualified GI.NM.Objects.SettingDummy as NM.SettingDummy
import {-# SOURCE #-} qualified GI.NM.Objects.SettingGeneric as NM.SettingGeneric
import {-# SOURCE #-} qualified GI.NM.Objects.SettingGsm as NM.SettingGsm
import {-# SOURCE #-} qualified GI.NM.Objects.SettingIP4Config as NM.SettingIP4Config
import {-# SOURCE #-} qualified GI.NM.Objects.SettingIP6Config as NM.SettingIP6Config
import {-# SOURCE #-} qualified GI.NM.Objects.SettingIPTunnel as NM.SettingIPTunnel
import {-# SOURCE #-} qualified GI.NM.Objects.SettingInfiniband as NM.SettingInfiniband
import {-# SOURCE #-} qualified GI.NM.Objects.SettingMacsec as NM.SettingMacsec
import {-# SOURCE #-} qualified GI.NM.Objects.SettingMacvlan as NM.SettingMacvlan
import {-# SOURCE #-} qualified GI.NM.Objects.SettingOlpcMesh as NM.SettingOlpcMesh
import {-# SOURCE #-} qualified GI.NM.Objects.SettingOvsBridge as NM.SettingOvsBridge
import {-# SOURCE #-} qualified GI.NM.Objects.SettingOvsInterface as NM.SettingOvsInterface
import {-# SOURCE #-} qualified GI.NM.Objects.SettingOvsPatch as NM.SettingOvsPatch
import {-# SOURCE #-} qualified GI.NM.Objects.SettingOvsPort as NM.SettingOvsPort
import {-# SOURCE #-} qualified GI.NM.Objects.SettingPpp as NM.SettingPpp
import {-# SOURCE #-} qualified GI.NM.Objects.SettingPppoe as NM.SettingPppoe
import {-# SOURCE #-} qualified GI.NM.Objects.SettingProxy as NM.SettingProxy
import {-# SOURCE #-} qualified GI.NM.Objects.SettingSerial as NM.SettingSerial
import {-# SOURCE #-} qualified GI.NM.Objects.SettingTCConfig as NM.SettingTCConfig
import {-# SOURCE #-} qualified GI.NM.Objects.SettingTeam as NM.SettingTeam
import {-# SOURCE #-} qualified GI.NM.Objects.SettingTeamPort as NM.SettingTeamPort
import {-# SOURCE #-} qualified GI.NM.Objects.SettingTun as NM.SettingTun
import {-# SOURCE #-} qualified GI.NM.Objects.SettingVlan as NM.SettingVlan
import {-# SOURCE #-} qualified GI.NM.Objects.SettingVpn as NM.SettingVpn
import {-# SOURCE #-} qualified GI.NM.Objects.SettingVxlan as NM.SettingVxlan
import {-# SOURCE #-} qualified GI.NM.Objects.SettingWimax as NM.SettingWimax
import {-# SOURCE #-} qualified GI.NM.Objects.SettingWired as NM.SettingWired
import {-# SOURCE #-} qualified GI.NM.Objects.SettingWireless as NM.SettingWireless
import {-# SOURCE #-} qualified GI.NM.Objects.SettingWirelessSecurity as NM.SettingWirelessSecurity
import {-# SOURCE #-} qualified GI.NM.Structs.BridgeVlan as NM.BridgeVlan
import {-# SOURCE #-} qualified GI.NM.Structs.IPAddress as NM.IPAddress
import {-# SOURCE #-} qualified GI.NM.Structs.IPRoute as NM.IPRoute
import {-# SOURCE #-} qualified GI.NM.Structs.IPRoutingRule as NM.IPRoutingRule
import {-# SOURCE #-} qualified GI.NM.Structs.Range as NM.Range
import {-# SOURCE #-} qualified GI.NM.Structs.TCAction as NM.TCAction
import {-# SOURCE #-} qualified GI.NM.Structs.TCQdisc as NM.TCQdisc
import {-# SOURCE #-} qualified GI.NM.Structs.TCTfilter as NM.TCTfilter
import {-# SOURCE #-} qualified GI.NM.Structs.TeamLinkWatcher as NM.TeamLinkWatcher
import {-# SOURCE #-} qualified GI.NM.Structs.VariantAttributeSpec as NM.VariantAttributeSpec
#else
import qualified GI.GObject.Objects.Object as GObject.Object
import {-# SOURCE #-} qualified GI.NM.Enums as NM.Enums
import {-# SOURCE #-} qualified GI.NM.Flags as NM.Flags
import {-# SOURCE #-} qualified GI.NM.Objects.Setting as NM.Setting
import {-# SOURCE #-} qualified GI.NM.Structs.IPAddress as NM.IPAddress
import {-# SOURCE #-} qualified GI.NM.Structs.IPRoute as NM.IPRoute
import {-# SOURCE #-} qualified GI.NM.Structs.IPRoutingRule as NM.IPRoutingRule
#endif
newtype SettingIPConfig = SettingIPConfig (SP.ManagedPtr SettingIPConfig)
deriving (SettingIPConfig -> SettingIPConfig -> Bool
(SettingIPConfig -> SettingIPConfig -> Bool)
-> (SettingIPConfig -> SettingIPConfig -> Bool)
-> Eq SettingIPConfig
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SettingIPConfig -> SettingIPConfig -> Bool
== :: SettingIPConfig -> SettingIPConfig -> Bool
$c/= :: SettingIPConfig -> SettingIPConfig -> Bool
/= :: SettingIPConfig -> SettingIPConfig -> Bool
Eq)
instance SP.ManagedPtrNewtype SettingIPConfig where
toManagedPtr :: SettingIPConfig -> ManagedPtr SettingIPConfig
toManagedPtr (SettingIPConfig ManagedPtr SettingIPConfig
p) = ManagedPtr SettingIPConfig
p
foreign import ccall "nm_setting_ip_config_get_type"
c_nm_setting_ip_config_get_type :: IO B.Types.GType
instance B.Types.TypedObject SettingIPConfig where
glibType :: IO GType
glibType = IO GType
c_nm_setting_ip_config_get_type
instance B.Types.GObject SettingIPConfig
class (SP.GObject o, O.IsDescendantOf SettingIPConfig o) => IsSettingIPConfig o
instance (SP.GObject o, O.IsDescendantOf SettingIPConfig o) => IsSettingIPConfig o
instance O.HasParentTypes SettingIPConfig
type instance O.ParentTypes SettingIPConfig = '[NM.Setting.Setting, GObject.Object.Object]
toSettingIPConfig :: (MIO.MonadIO m, IsSettingIPConfig o) => o -> m SettingIPConfig
toSettingIPConfig :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> m SettingIPConfig
toSettingIPConfig = IO SettingIPConfig -> m SettingIPConfig
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO SettingIPConfig -> m SettingIPConfig)
-> (o -> IO SettingIPConfig) -> o -> m SettingIPConfig
forall b c a. (b -> c) -> (a -> b) -> a -> c
. (ManagedPtr SettingIPConfig -> SettingIPConfig)
-> o -> IO SettingIPConfig
forall o o'.
(HasCallStack, ManagedPtrNewtype o, TypedObject o,
ManagedPtrNewtype o', TypedObject o') =>
(ManagedPtr o' -> o') -> o -> IO o'
B.ManagedPtr.unsafeCastTo ManagedPtr SettingIPConfig -> SettingIPConfig
SettingIPConfig
instance B.GValue.IsGValue (Maybe SettingIPConfig) where
gvalueGType_ :: IO GType
gvalueGType_ = IO GType
c_nm_setting_ip_config_get_type
gvalueSet_ :: Ptr GValue -> Maybe SettingIPConfig -> IO ()
gvalueSet_ Ptr GValue
gv Maybe SettingIPConfig
P.Nothing = Ptr GValue -> Ptr SettingIPConfig -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv (Ptr SettingIPConfig
forall a. Ptr a
FP.nullPtr :: FP.Ptr SettingIPConfig)
gvalueSet_ Ptr GValue
gv (P.Just SettingIPConfig
obj) = SettingIPConfig -> (Ptr SettingIPConfig -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
B.ManagedPtr.withManagedPtr SettingIPConfig
obj (Ptr GValue -> Ptr SettingIPConfig -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv)
gvalueGet_ :: Ptr GValue -> IO (Maybe SettingIPConfig)
gvalueGet_ Ptr GValue
gv = do
Ptr SettingIPConfig
ptr <- Ptr GValue -> IO (Ptr SettingIPConfig)
forall a. GObject a => Ptr GValue -> IO (Ptr a)
B.GValue.get_object Ptr GValue
gv :: IO (FP.Ptr SettingIPConfig)
if Ptr SettingIPConfig
ptr Ptr SettingIPConfig -> Ptr SettingIPConfig -> Bool
forall a. Eq a => a -> a -> Bool
/= Ptr SettingIPConfig
forall a. Ptr a
FP.nullPtr
then SettingIPConfig -> Maybe SettingIPConfig
forall a. a -> Maybe a
P.Just (SettingIPConfig -> Maybe SettingIPConfig)
-> IO SettingIPConfig -> IO (Maybe SettingIPConfig)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> (ManagedPtr SettingIPConfig -> SettingIPConfig)
-> Ptr SettingIPConfig -> IO SettingIPConfig
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
B.ManagedPtr.newObject ManagedPtr SettingIPConfig -> SettingIPConfig
SettingIPConfig Ptr SettingIPConfig
ptr
else Maybe SettingIPConfig -> IO (Maybe SettingIPConfig)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe SettingIPConfig
forall a. Maybe a
P.Nothing
#if defined(ENABLE_OVERLOADING)
type family ResolveSettingIPConfigMethod (t :: Symbol) (o :: DK.Type) :: DK.Type where
ResolveSettingIPConfigMethod "addAddress" o = SettingIPConfigAddAddressMethodInfo
ResolveSettingIPConfigMethod "addDhcpRejectServer" o = SettingIPConfigAddDhcpRejectServerMethodInfo
ResolveSettingIPConfigMethod "addDns" o = SettingIPConfigAddDnsMethodInfo
ResolveSettingIPConfigMethod "addDnsOption" o = SettingIPConfigAddDnsOptionMethodInfo
ResolveSettingIPConfigMethod "addDnsSearch" o = SettingIPConfigAddDnsSearchMethodInfo
ResolveSettingIPConfigMethod "addRoute" o = SettingIPConfigAddRouteMethodInfo
ResolveSettingIPConfigMethod "addRoutingRule" o = SettingIPConfigAddRoutingRuleMethodInfo
ResolveSettingIPConfigMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveSettingIPConfigMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveSettingIPConfigMethod "clearAddresses" o = SettingIPConfigClearAddressesMethodInfo
ResolveSettingIPConfigMethod "clearDhcpRejectServers" o = SettingIPConfigClearDhcpRejectServersMethodInfo
ResolveSettingIPConfigMethod "clearDns" o = SettingIPConfigClearDnsMethodInfo
ResolveSettingIPConfigMethod "clearDnsOptions" o = SettingIPConfigClearDnsOptionsMethodInfo
ResolveSettingIPConfigMethod "clearDnsSearches" o = SettingIPConfigClearDnsSearchesMethodInfo
ResolveSettingIPConfigMethod "clearRoutes" o = SettingIPConfigClearRoutesMethodInfo
ResolveSettingIPConfigMethod "clearRoutingRules" o = SettingIPConfigClearRoutingRulesMethodInfo
ResolveSettingIPConfigMethod "compare" o = NM.Setting.SettingCompareMethodInfo
ResolveSettingIPConfigMethod "diff" o = NM.Setting.SettingDiffMethodInfo
ResolveSettingIPConfigMethod "duplicate" o = NM.Setting.SettingDuplicateMethodInfo
ResolveSettingIPConfigMethod "enumerateValues" o = NM.Setting.SettingEnumerateValuesMethodInfo
ResolveSettingIPConfigMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveSettingIPConfigMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveSettingIPConfigMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolveSettingIPConfigMethod "hasDnsOptions" o = SettingIPConfigHasDnsOptionsMethodInfo
ResolveSettingIPConfigMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveSettingIPConfigMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveSettingIPConfigMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveSettingIPConfigMethod "optionClearByName" o = NM.Setting.SettingOptionClearByNameMethodInfo
ResolveSettingIPConfigMethod "optionGet" o = NM.Setting.SettingOptionGetMethodInfo
ResolveSettingIPConfigMethod "optionGetAllNames" o = NM.Setting.SettingOptionGetAllNamesMethodInfo
ResolveSettingIPConfigMethod "optionGetBoolean" o = NM.Setting.SettingOptionGetBooleanMethodInfo
ResolveSettingIPConfigMethod "optionGetUint32" o = NM.Setting.SettingOptionGetUint32MethodInfo
ResolveSettingIPConfigMethod "optionSet" o = NM.Setting.SettingOptionSetMethodInfo
ResolveSettingIPConfigMethod "optionSetBoolean" o = NM.Setting.SettingOptionSetBooleanMethodInfo
ResolveSettingIPConfigMethod "optionSetUint32" o = NM.Setting.SettingOptionSetUint32MethodInfo
ResolveSettingIPConfigMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveSettingIPConfigMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveSettingIPConfigMethod "removeAddress" o = SettingIPConfigRemoveAddressMethodInfo
ResolveSettingIPConfigMethod "removeAddressByValue" o = SettingIPConfigRemoveAddressByValueMethodInfo
ResolveSettingIPConfigMethod "removeDhcpRejectServer" o = SettingIPConfigRemoveDhcpRejectServerMethodInfo
ResolveSettingIPConfigMethod "removeDns" o = SettingIPConfigRemoveDnsMethodInfo
ResolveSettingIPConfigMethod "removeDnsByValue" o = SettingIPConfigRemoveDnsByValueMethodInfo
ResolveSettingIPConfigMethod "removeDnsOption" o = SettingIPConfigRemoveDnsOptionMethodInfo
ResolveSettingIPConfigMethod "removeDnsOptionByValue" o = SettingIPConfigRemoveDnsOptionByValueMethodInfo
ResolveSettingIPConfigMethod "removeDnsSearch" o = SettingIPConfigRemoveDnsSearchMethodInfo
ResolveSettingIPConfigMethod "removeDnsSearchByValue" o = SettingIPConfigRemoveDnsSearchByValueMethodInfo
ResolveSettingIPConfigMethod "removeRoute" o = SettingIPConfigRemoveRouteMethodInfo
ResolveSettingIPConfigMethod "removeRouteByValue" o = SettingIPConfigRemoveRouteByValueMethodInfo
ResolveSettingIPConfigMethod "removeRoutingRule" o = SettingIPConfigRemoveRoutingRuleMethodInfo
ResolveSettingIPConfigMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveSettingIPConfigMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveSettingIPConfigMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveSettingIPConfigMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveSettingIPConfigMethod "toString" o = NM.Setting.SettingToStringMethodInfo
ResolveSettingIPConfigMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveSettingIPConfigMethod "verify" o = NM.Setting.SettingVerifyMethodInfo
ResolveSettingIPConfigMethod "verifySecrets" o = NM.Setting.SettingVerifySecretsMethodInfo
ResolveSettingIPConfigMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveSettingIPConfigMethod "getAddress" o = SettingIPConfigGetAddressMethodInfo
ResolveSettingIPConfigMethod "getAutoRouteExtGw" o = SettingIPConfigGetAutoRouteExtGwMethodInfo
ResolveSettingIPConfigMethod "getDadTimeout" o = SettingIPConfigGetDadTimeoutMethodInfo
ResolveSettingIPConfigMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveSettingIPConfigMethod "getDbusPropertyType" o = NM.Setting.SettingGetDbusPropertyTypeMethodInfo
ResolveSettingIPConfigMethod "getDhcpDscp" o = SettingIPConfigGetDhcpDscpMethodInfo
ResolveSettingIPConfigMethod "getDhcpHostname" o = SettingIPConfigGetDhcpHostnameMethodInfo
ResolveSettingIPConfigMethod "getDhcpHostnameFlags" o = SettingIPConfigGetDhcpHostnameFlagsMethodInfo
ResolveSettingIPConfigMethod "getDhcpIaid" o = SettingIPConfigGetDhcpIaidMethodInfo
ResolveSettingIPConfigMethod "getDhcpRejectServers" o = SettingIPConfigGetDhcpRejectServersMethodInfo
ResolveSettingIPConfigMethod "getDhcpSendHostname" o = SettingIPConfigGetDhcpSendHostnameMethodInfo
ResolveSettingIPConfigMethod "getDhcpSendRelease" o = SettingIPConfigGetDhcpSendReleaseMethodInfo
ResolveSettingIPConfigMethod "getDhcpTimeout" o = SettingIPConfigGetDhcpTimeoutMethodInfo
ResolveSettingIPConfigMethod "getDns" o = SettingIPConfigGetDnsMethodInfo
ResolveSettingIPConfigMethod "getDnsOption" o = SettingIPConfigGetDnsOptionMethodInfo
ResolveSettingIPConfigMethod "getDnsPriority" o = SettingIPConfigGetDnsPriorityMethodInfo
ResolveSettingIPConfigMethod "getDnsSearch" o = SettingIPConfigGetDnsSearchMethodInfo
ResolveSettingIPConfigMethod "getGateway" o = SettingIPConfigGetGatewayMethodInfo
ResolveSettingIPConfigMethod "getIgnoreAutoDns" o = SettingIPConfigGetIgnoreAutoDnsMethodInfo
ResolveSettingIPConfigMethod "getIgnoreAutoRoutes" o = SettingIPConfigGetIgnoreAutoRoutesMethodInfo
ResolveSettingIPConfigMethod "getMayFail" o = SettingIPConfigGetMayFailMethodInfo
ResolveSettingIPConfigMethod "getMethod" o = SettingIPConfigGetMethodMethodInfo
ResolveSettingIPConfigMethod "getName" o = NM.Setting.SettingGetNameMethodInfo
ResolveSettingIPConfigMethod "getNeverDefault" o = SettingIPConfigGetNeverDefaultMethodInfo
ResolveSettingIPConfigMethod "getNumAddresses" o = SettingIPConfigGetNumAddressesMethodInfo
ResolveSettingIPConfigMethod "getNumDns" o = SettingIPConfigGetNumDnsMethodInfo
ResolveSettingIPConfigMethod "getNumDnsOptions" o = SettingIPConfigGetNumDnsOptionsMethodInfo
ResolveSettingIPConfigMethod "getNumDnsSearches" o = SettingIPConfigGetNumDnsSearchesMethodInfo
ResolveSettingIPConfigMethod "getNumRoutes" o = SettingIPConfigGetNumRoutesMethodInfo
ResolveSettingIPConfigMethod "getNumRoutingRules" o = SettingIPConfigGetNumRoutingRulesMethodInfo
ResolveSettingIPConfigMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveSettingIPConfigMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveSettingIPConfigMethod "getReplaceLocalRule" o = SettingIPConfigGetReplaceLocalRuleMethodInfo
ResolveSettingIPConfigMethod "getRequiredTimeout" o = SettingIPConfigGetRequiredTimeoutMethodInfo
ResolveSettingIPConfigMethod "getRoute" o = SettingIPConfigGetRouteMethodInfo
ResolveSettingIPConfigMethod "getRouteMetric" o = SettingIPConfigGetRouteMetricMethodInfo
ResolveSettingIPConfigMethod "getRouteTable" o = SettingIPConfigGetRouteTableMethodInfo
ResolveSettingIPConfigMethod "getRoutingRule" o = SettingIPConfigGetRoutingRuleMethodInfo
ResolveSettingIPConfigMethod "getSecretFlags" o = NM.Setting.SettingGetSecretFlagsMethodInfo
ResolveSettingIPConfigMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveSettingIPConfigMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
ResolveSettingIPConfigMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveSettingIPConfigMethod "setSecretFlags" o = NM.Setting.SettingSetSecretFlagsMethodInfo
ResolveSettingIPConfigMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveSettingIPConfigMethod t SettingIPConfig, O.OverloadedMethod info SettingIPConfig p) => OL.IsLabel t (SettingIPConfig -> p) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.overloadedMethod @info
#else
fromLabel _ = O.overloadedMethod @info
#endif
#if MIN_VERSION_base(4,13,0)
instance (info ~ ResolveSettingIPConfigMethod t SettingIPConfig, O.OverloadedMethod info SettingIPConfig p, R.HasField t SettingIPConfig p) => R.HasField t SettingIPConfig p where
getField = O.overloadedMethod @info
#endif
instance (info ~ ResolveSettingIPConfigMethod t SettingIPConfig, O.OverloadedMethodInfo info SettingIPConfig) => OL.IsLabel t (O.MethodProxy info SettingIPConfig) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.MethodProxy
#else
fromLabel _ = O.MethodProxy
#endif
#endif
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigAddressesPropertyInfo
instance AttrInfo SettingIPConfigAddressesPropertyInfo where
type AttrAllowedOps SettingIPConfigAddressesPropertyInfo = '[]
type AttrSetTypeConstraint SettingIPConfigAddressesPropertyInfo = (~) ()
type AttrTransferTypeConstraint SettingIPConfigAddressesPropertyInfo = (~) ()
type AttrTransferType SettingIPConfigAddressesPropertyInfo = ()
type AttrBaseTypeConstraint SettingIPConfigAddressesPropertyInfo = (~) ()
type AttrGetType SettingIPConfigAddressesPropertyInfo = ()
type AttrLabel SettingIPConfigAddressesPropertyInfo = ""
type AttrOrigin SettingIPConfigAddressesPropertyInfo = SettingIPConfig
attrGet = undefined
attrSet = undefined
attrConstruct = undefined
attrClear = undefined
attrTransfer = undefined
#endif
getSettingIPConfigAutoRouteExtGw :: (MonadIO m, IsSettingIPConfig o) => o -> m NM.Enums.Ternary
getSettingIPConfigAutoRouteExtGw :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> m Ternary
getSettingIPConfigAutoRouteExtGw o
obj = IO Ternary -> m Ternary
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Ternary -> m Ternary) -> IO Ternary -> m Ternary
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Ternary
forall a b. (GObject a, Enum b, BoxedEnum b) => a -> String -> IO b
B.Properties.getObjectPropertyEnum o
obj String
"auto-route-ext-gw"
setSettingIPConfigAutoRouteExtGw :: (MonadIO m, IsSettingIPConfig o) => o -> NM.Enums.Ternary -> m ()
setSettingIPConfigAutoRouteExtGw :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> Ternary -> m ()
setSettingIPConfigAutoRouteExtGw o
obj Ternary
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Ternary -> IO ()
forall a b.
(GObject a, Enum b, BoxedEnum b) =>
a -> String -> b -> IO ()
B.Properties.setObjectPropertyEnum o
obj String
"auto-route-ext-gw" Ternary
val
constructSettingIPConfigAutoRouteExtGw :: (IsSettingIPConfig o, MIO.MonadIO m) => NM.Enums.Ternary -> m (GValueConstruct o)
constructSettingIPConfigAutoRouteExtGw :: forall o (m :: * -> *).
(IsSettingIPConfig o, MonadIO m) =>
Ternary -> m (GValueConstruct o)
constructSettingIPConfigAutoRouteExtGw Ternary
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Ternary -> IO (GValueConstruct o)
forall a o.
(Enum a, BoxedEnum a) =>
String -> a -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyEnum String
"auto-route-ext-gw" Ternary
val
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigAutoRouteExtGwPropertyInfo
instance AttrInfo SettingIPConfigAutoRouteExtGwPropertyInfo where
type AttrAllowedOps SettingIPConfigAutoRouteExtGwPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint SettingIPConfigAutoRouteExtGwPropertyInfo = IsSettingIPConfig
type AttrSetTypeConstraint SettingIPConfigAutoRouteExtGwPropertyInfo = (~) NM.Enums.Ternary
type AttrTransferTypeConstraint SettingIPConfigAutoRouteExtGwPropertyInfo = (~) NM.Enums.Ternary
type AttrTransferType SettingIPConfigAutoRouteExtGwPropertyInfo = NM.Enums.Ternary
type AttrGetType SettingIPConfigAutoRouteExtGwPropertyInfo = NM.Enums.Ternary
type AttrLabel SettingIPConfigAutoRouteExtGwPropertyInfo = "auto-route-ext-gw"
type AttrOrigin SettingIPConfigAutoRouteExtGwPropertyInfo = SettingIPConfig
attrGet = getSettingIPConfigAutoRouteExtGw
attrSet = setSettingIPConfigAutoRouteExtGw
attrTransfer _ v = do
return v
attrConstruct = constructSettingIPConfigAutoRouteExtGw
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.autoRouteExtGw"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#g:attr:autoRouteExtGw"
})
#endif
getSettingIPConfigDadTimeout :: (MonadIO m, IsSettingIPConfig o) => o -> m Int32
getSettingIPConfigDadTimeout :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> m Int32
getSettingIPConfigDadTimeout o
obj = IO Int32 -> m Int32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Int32
forall a. GObject a => a -> String -> IO Int32
B.Properties.getObjectPropertyInt32 o
obj String
"dad-timeout"
setSettingIPConfigDadTimeout :: (MonadIO m, IsSettingIPConfig o) => o -> Int32 -> m ()
setSettingIPConfigDadTimeout :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> Int32 -> m ()
setSettingIPConfigDadTimeout o
obj Int32
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Int32 -> IO ()
forall a. GObject a => a -> String -> Int32 -> IO ()
B.Properties.setObjectPropertyInt32 o
obj String
"dad-timeout" Int32
val
constructSettingIPConfigDadTimeout :: (IsSettingIPConfig o, MIO.MonadIO m) => Int32 -> m (GValueConstruct o)
constructSettingIPConfigDadTimeout :: forall o (m :: * -> *).
(IsSettingIPConfig o, MonadIO m) =>
Int32 -> m (GValueConstruct o)
constructSettingIPConfigDadTimeout Int32
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Int32 -> IO (GValueConstruct o)
forall o. String -> Int32 -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyInt32 String
"dad-timeout" Int32
val
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigDadTimeoutPropertyInfo
instance AttrInfo SettingIPConfigDadTimeoutPropertyInfo where
type AttrAllowedOps SettingIPConfigDadTimeoutPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint SettingIPConfigDadTimeoutPropertyInfo = IsSettingIPConfig
type AttrSetTypeConstraint SettingIPConfigDadTimeoutPropertyInfo = (~) Int32
type AttrTransferTypeConstraint SettingIPConfigDadTimeoutPropertyInfo = (~) Int32
type AttrTransferType SettingIPConfigDadTimeoutPropertyInfo = Int32
type AttrGetType SettingIPConfigDadTimeoutPropertyInfo = Int32
type AttrLabel SettingIPConfigDadTimeoutPropertyInfo = "dad-timeout"
type AttrOrigin SettingIPConfigDadTimeoutPropertyInfo = SettingIPConfig
attrGet = getSettingIPConfigDadTimeout
attrSet = setSettingIPConfigDadTimeout
attrTransfer _ v = do
return v
attrConstruct = constructSettingIPConfigDadTimeout
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.dadTimeout"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#g:attr:dadTimeout"
})
#endif
getSettingIPConfigDhcpDscp :: (MonadIO m, IsSettingIPConfig o) => o -> m T.Text
getSettingIPConfigDhcpDscp :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> m Text
getSettingIPConfigDhcpDscp o
obj = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ Text -> IO (Maybe Text) -> IO Text
forall a. HasCallStack => Text -> IO (Maybe a) -> IO a
checkUnexpectedNothing Text
"getSettingIPConfigDhcpDscp" (IO (Maybe Text) -> IO Text) -> IO (Maybe Text) -> IO Text
forall a b. (a -> b) -> a -> b
$ o -> String -> IO (Maybe Text)
forall a. GObject a => a -> String -> IO (Maybe Text)
B.Properties.getObjectPropertyString o
obj String
"dhcp-dscp"
setSettingIPConfigDhcpDscp :: (MonadIO m, IsSettingIPConfig o) => o -> T.Text -> m ()
setSettingIPConfigDhcpDscp :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> Text -> m ()
setSettingIPConfigDhcpDscp o
obj Text
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"dhcp-dscp" (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
val)
constructSettingIPConfigDhcpDscp :: (IsSettingIPConfig o, MIO.MonadIO m) => T.Text -> m (GValueConstruct o)
constructSettingIPConfigDhcpDscp :: forall o (m :: * -> *).
(IsSettingIPConfig o, MonadIO m) =>
Text -> m (GValueConstruct o)
constructSettingIPConfigDhcpDscp Text
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe Text -> IO (GValueConstruct o)
forall o. String -> Maybe Text -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyString String
"dhcp-dscp" (Text -> Maybe Text
forall a. a -> Maybe a
P.Just Text
val)
clearSettingIPConfigDhcpDscp :: (MonadIO m, IsSettingIPConfig o) => o -> m ()
clearSettingIPConfigDhcpDscp :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> m ()
clearSettingIPConfigDhcpDscp o
obj = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"dhcp-dscp" (Maybe Text
forall a. Maybe a
Nothing :: Maybe T.Text)
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigDhcpDscpPropertyInfo
instance AttrInfo SettingIPConfigDhcpDscpPropertyInfo where
type AttrAllowedOps SettingIPConfigDhcpDscpPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint SettingIPConfigDhcpDscpPropertyInfo = IsSettingIPConfig
type AttrSetTypeConstraint SettingIPConfigDhcpDscpPropertyInfo = (~) T.Text
type AttrTransferTypeConstraint SettingIPConfigDhcpDscpPropertyInfo = (~) T.Text
type AttrTransferType SettingIPConfigDhcpDscpPropertyInfo = T.Text
type AttrGetType SettingIPConfigDhcpDscpPropertyInfo = T.Text
type AttrLabel SettingIPConfigDhcpDscpPropertyInfo = "dhcp-dscp"
type AttrOrigin SettingIPConfigDhcpDscpPropertyInfo = SettingIPConfig
attrGet = getSettingIPConfigDhcpDscp
attrSet = setSettingIPConfigDhcpDscp
attrTransfer _ v = do
return v
attrConstruct = constructSettingIPConfigDhcpDscp
attrClear = clearSettingIPConfigDhcpDscp
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.dhcpDscp"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#g:attr:dhcpDscp"
})
#endif
getSettingIPConfigDhcpHostname :: (MonadIO m, IsSettingIPConfig o) => o -> m T.Text
getSettingIPConfigDhcpHostname :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> m Text
getSettingIPConfigDhcpHostname o
obj = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ Text -> IO (Maybe Text) -> IO Text
forall a. HasCallStack => Text -> IO (Maybe a) -> IO a
checkUnexpectedNothing Text
"getSettingIPConfigDhcpHostname" (IO (Maybe Text) -> IO Text) -> IO (Maybe Text) -> IO Text
forall a b. (a -> b) -> a -> b
$ o -> String -> IO (Maybe Text)
forall a. GObject a => a -> String -> IO (Maybe Text)
B.Properties.getObjectPropertyString o
obj String
"dhcp-hostname"
setSettingIPConfigDhcpHostname :: (MonadIO m, IsSettingIPConfig o) => o -> T.Text -> m ()
setSettingIPConfigDhcpHostname :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> Text -> m ()
setSettingIPConfigDhcpHostname o
obj Text
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"dhcp-hostname" (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
val)
constructSettingIPConfigDhcpHostname :: (IsSettingIPConfig o, MIO.MonadIO m) => T.Text -> m (GValueConstruct o)
constructSettingIPConfigDhcpHostname :: forall o (m :: * -> *).
(IsSettingIPConfig o, MonadIO m) =>
Text -> m (GValueConstruct o)
constructSettingIPConfigDhcpHostname Text
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe Text -> IO (GValueConstruct o)
forall o. String -> Maybe Text -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyString String
"dhcp-hostname" (Text -> Maybe Text
forall a. a -> Maybe a
P.Just Text
val)
clearSettingIPConfigDhcpHostname :: (MonadIO m, IsSettingIPConfig o) => o -> m ()
clearSettingIPConfigDhcpHostname :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> m ()
clearSettingIPConfigDhcpHostname o
obj = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"dhcp-hostname" (Maybe Text
forall a. Maybe a
Nothing :: Maybe T.Text)
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigDhcpHostnamePropertyInfo
instance AttrInfo SettingIPConfigDhcpHostnamePropertyInfo where
type AttrAllowedOps SettingIPConfigDhcpHostnamePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint SettingIPConfigDhcpHostnamePropertyInfo = IsSettingIPConfig
type AttrSetTypeConstraint SettingIPConfigDhcpHostnamePropertyInfo = (~) T.Text
type AttrTransferTypeConstraint SettingIPConfigDhcpHostnamePropertyInfo = (~) T.Text
type AttrTransferType SettingIPConfigDhcpHostnamePropertyInfo = T.Text
type AttrGetType SettingIPConfigDhcpHostnamePropertyInfo = T.Text
type AttrLabel SettingIPConfigDhcpHostnamePropertyInfo = "dhcp-hostname"
type AttrOrigin SettingIPConfigDhcpHostnamePropertyInfo = SettingIPConfig
attrGet = getSettingIPConfigDhcpHostname
attrSet = setSettingIPConfigDhcpHostname
attrTransfer _ v = do
return v
attrConstruct = constructSettingIPConfigDhcpHostname
attrClear = clearSettingIPConfigDhcpHostname
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.dhcpHostname"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#g:attr:dhcpHostname"
})
#endif
getSettingIPConfigDhcpHostnameFlags :: (MonadIO m, IsSettingIPConfig o) => o -> m Word32
getSettingIPConfigDhcpHostnameFlags :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> m Word32
getSettingIPConfigDhcpHostnameFlags o
obj = IO Word32 -> m Word32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Word32 -> m Word32) -> IO Word32 -> m Word32
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Word32
forall a. GObject a => a -> String -> IO Word32
B.Properties.getObjectPropertyUInt32 o
obj String
"dhcp-hostname-flags"
setSettingIPConfigDhcpHostnameFlags :: (MonadIO m, IsSettingIPConfig o) => o -> Word32 -> m ()
setSettingIPConfigDhcpHostnameFlags :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> Word32 -> m ()
setSettingIPConfigDhcpHostnameFlags o
obj Word32
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Word32 -> IO ()
forall a. GObject a => a -> String -> Word32 -> IO ()
B.Properties.setObjectPropertyUInt32 o
obj String
"dhcp-hostname-flags" Word32
val
constructSettingIPConfigDhcpHostnameFlags :: (IsSettingIPConfig o, MIO.MonadIO m) => Word32 -> m (GValueConstruct o)
constructSettingIPConfigDhcpHostnameFlags :: forall o (m :: * -> *).
(IsSettingIPConfig o, MonadIO m) =>
Word32 -> m (GValueConstruct o)
constructSettingIPConfigDhcpHostnameFlags Word32
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Word32 -> IO (GValueConstruct o)
forall o. String -> Word32 -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyUInt32 String
"dhcp-hostname-flags" Word32
val
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigDhcpHostnameFlagsPropertyInfo
instance AttrInfo SettingIPConfigDhcpHostnameFlagsPropertyInfo where
type AttrAllowedOps SettingIPConfigDhcpHostnameFlagsPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint SettingIPConfigDhcpHostnameFlagsPropertyInfo = IsSettingIPConfig
type AttrSetTypeConstraint SettingIPConfigDhcpHostnameFlagsPropertyInfo = (~) Word32
type AttrTransferTypeConstraint SettingIPConfigDhcpHostnameFlagsPropertyInfo = (~) Word32
type AttrTransferType SettingIPConfigDhcpHostnameFlagsPropertyInfo = Word32
type AttrGetType SettingIPConfigDhcpHostnameFlagsPropertyInfo = Word32
type AttrLabel SettingIPConfigDhcpHostnameFlagsPropertyInfo = "dhcp-hostname-flags"
type AttrOrigin SettingIPConfigDhcpHostnameFlagsPropertyInfo = SettingIPConfig
attrGet = getSettingIPConfigDhcpHostnameFlags
attrSet = setSettingIPConfigDhcpHostnameFlags
attrTransfer _ v = do
return v
attrConstruct = constructSettingIPConfigDhcpHostnameFlags
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.dhcpHostnameFlags"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#g:attr:dhcpHostnameFlags"
})
#endif
getSettingIPConfigDhcpIaid :: (MonadIO m, IsSettingIPConfig o) => o -> m T.Text
getSettingIPConfigDhcpIaid :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> m Text
getSettingIPConfigDhcpIaid o
obj = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ Text -> IO (Maybe Text) -> IO Text
forall a. HasCallStack => Text -> IO (Maybe a) -> IO a
checkUnexpectedNothing Text
"getSettingIPConfigDhcpIaid" (IO (Maybe Text) -> IO Text) -> IO (Maybe Text) -> IO Text
forall a b. (a -> b) -> a -> b
$ o -> String -> IO (Maybe Text)
forall a. GObject a => a -> String -> IO (Maybe Text)
B.Properties.getObjectPropertyString o
obj String
"dhcp-iaid"
setSettingIPConfigDhcpIaid :: (MonadIO m, IsSettingIPConfig o) => o -> T.Text -> m ()
setSettingIPConfigDhcpIaid :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> Text -> m ()
setSettingIPConfigDhcpIaid o
obj Text
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"dhcp-iaid" (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
val)
constructSettingIPConfigDhcpIaid :: (IsSettingIPConfig o, MIO.MonadIO m) => T.Text -> m (GValueConstruct o)
constructSettingIPConfigDhcpIaid :: forall o (m :: * -> *).
(IsSettingIPConfig o, MonadIO m) =>
Text -> m (GValueConstruct o)
constructSettingIPConfigDhcpIaid Text
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe Text -> IO (GValueConstruct o)
forall o. String -> Maybe Text -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyString String
"dhcp-iaid" (Text -> Maybe Text
forall a. a -> Maybe a
P.Just Text
val)
clearSettingIPConfigDhcpIaid :: (MonadIO m, IsSettingIPConfig o) => o -> m ()
clearSettingIPConfigDhcpIaid :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> m ()
clearSettingIPConfigDhcpIaid o
obj = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"dhcp-iaid" (Maybe Text
forall a. Maybe a
Nothing :: Maybe T.Text)
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigDhcpIaidPropertyInfo
instance AttrInfo SettingIPConfigDhcpIaidPropertyInfo where
type AttrAllowedOps SettingIPConfigDhcpIaidPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint SettingIPConfigDhcpIaidPropertyInfo = IsSettingIPConfig
type AttrSetTypeConstraint SettingIPConfigDhcpIaidPropertyInfo = (~) T.Text
type AttrTransferTypeConstraint SettingIPConfigDhcpIaidPropertyInfo = (~) T.Text
type AttrTransferType SettingIPConfigDhcpIaidPropertyInfo = T.Text
type AttrGetType SettingIPConfigDhcpIaidPropertyInfo = T.Text
type AttrLabel SettingIPConfigDhcpIaidPropertyInfo = "dhcp-iaid"
type AttrOrigin SettingIPConfigDhcpIaidPropertyInfo = SettingIPConfig
attrGet = getSettingIPConfigDhcpIaid
attrSet = setSettingIPConfigDhcpIaid
attrTransfer _ v = do
return v
attrConstruct = constructSettingIPConfigDhcpIaid
attrClear = clearSettingIPConfigDhcpIaid
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.dhcpIaid"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#g:attr:dhcpIaid"
})
#endif
getSettingIPConfigDhcpRejectServers :: (MonadIO m, IsSettingIPConfig o) => o -> m (Maybe [T.Text])
getSettingIPConfigDhcpRejectServers :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> m (Maybe [Text])
getSettingIPConfigDhcpRejectServers o
obj = IO (Maybe [Text]) -> m (Maybe [Text])
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (Maybe [Text]) -> m (Maybe [Text]))
-> IO (Maybe [Text]) -> m (Maybe [Text])
forall a b. (a -> b) -> a -> b
$ o -> String -> IO (Maybe [Text])
forall a. GObject a => a -> String -> IO (Maybe [Text])
B.Properties.getObjectPropertyStringArray o
obj String
"dhcp-reject-servers"
setSettingIPConfigDhcpRejectServers :: (MonadIO m, IsSettingIPConfig o) => o -> [T.Text] -> m ()
setSettingIPConfigDhcpRejectServers :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> [Text] -> m ()
setSettingIPConfigDhcpRejectServers o
obj [Text]
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Maybe [Text] -> IO ()
forall a. GObject a => a -> String -> Maybe [Text] -> IO ()
B.Properties.setObjectPropertyStringArray o
obj String
"dhcp-reject-servers" ([Text] -> Maybe [Text]
forall a. a -> Maybe a
Just [Text]
val)
constructSettingIPConfigDhcpRejectServers :: (IsSettingIPConfig o, MIO.MonadIO m) => [T.Text] -> m (GValueConstruct o)
constructSettingIPConfigDhcpRejectServers :: forall o (m :: * -> *).
(IsSettingIPConfig o, MonadIO m) =>
[Text] -> m (GValueConstruct o)
constructSettingIPConfigDhcpRejectServers [Text]
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe [Text] -> IO (GValueConstruct o)
forall o. String -> Maybe [Text] -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyStringArray String
"dhcp-reject-servers" ([Text] -> Maybe [Text]
forall a. a -> Maybe a
P.Just [Text]
val)
clearSettingIPConfigDhcpRejectServers :: (MonadIO m, IsSettingIPConfig o) => o -> m ()
clearSettingIPConfigDhcpRejectServers :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> m ()
clearSettingIPConfigDhcpRejectServers o
obj = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe [Text] -> IO ()
forall a. GObject a => a -> String -> Maybe [Text] -> IO ()
B.Properties.setObjectPropertyStringArray o
obj String
"dhcp-reject-servers" (Maybe [Text]
forall a. Maybe a
Nothing :: Maybe [T.Text])
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigDhcpRejectServersPropertyInfo
instance AttrInfo SettingIPConfigDhcpRejectServersPropertyInfo where
type AttrAllowedOps SettingIPConfigDhcpRejectServersPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint SettingIPConfigDhcpRejectServersPropertyInfo = IsSettingIPConfig
type AttrSetTypeConstraint SettingIPConfigDhcpRejectServersPropertyInfo = (~) [T.Text]
type AttrTransferTypeConstraint SettingIPConfigDhcpRejectServersPropertyInfo = (~) [T.Text]
type AttrTransferType SettingIPConfigDhcpRejectServersPropertyInfo = [T.Text]
type AttrGetType SettingIPConfigDhcpRejectServersPropertyInfo = (Maybe [T.Text])
type AttrLabel SettingIPConfigDhcpRejectServersPropertyInfo = "dhcp-reject-servers"
type AttrOrigin SettingIPConfigDhcpRejectServersPropertyInfo = SettingIPConfig
attrGet = getSettingIPConfigDhcpRejectServers
attrSet = setSettingIPConfigDhcpRejectServers
attrTransfer _ v = do
return v
attrConstruct = constructSettingIPConfigDhcpRejectServers
attrClear = clearSettingIPConfigDhcpRejectServers
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.dhcpRejectServers"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#g:attr:dhcpRejectServers"
})
#endif
getSettingIPConfigDhcpSendHostname :: (MonadIO m, IsSettingIPConfig o) => o -> m Bool
getSettingIPConfigDhcpSendHostname :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> m Bool
getSettingIPConfigDhcpSendHostname o
obj = IO Bool -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Bool
forall a. GObject a => a -> String -> IO Bool
B.Properties.getObjectPropertyBool o
obj String
"dhcp-send-hostname"
setSettingIPConfigDhcpSendHostname :: (MonadIO m, IsSettingIPConfig o) => o -> Bool -> m ()
setSettingIPConfigDhcpSendHostname :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> Bool -> m ()
setSettingIPConfigDhcpSendHostname o
obj Bool
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Bool -> IO ()
forall a. GObject a => a -> String -> Bool -> IO ()
B.Properties.setObjectPropertyBool o
obj String
"dhcp-send-hostname" Bool
val
constructSettingIPConfigDhcpSendHostname :: (IsSettingIPConfig o, MIO.MonadIO m) => Bool -> m (GValueConstruct o)
constructSettingIPConfigDhcpSendHostname :: forall o (m :: * -> *).
(IsSettingIPConfig o, MonadIO m) =>
Bool -> m (GValueConstruct o)
constructSettingIPConfigDhcpSendHostname Bool
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Bool -> IO (GValueConstruct o)
forall o. String -> Bool -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyBool String
"dhcp-send-hostname" Bool
val
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigDhcpSendHostnamePropertyInfo
instance AttrInfo SettingIPConfigDhcpSendHostnamePropertyInfo where
type AttrAllowedOps SettingIPConfigDhcpSendHostnamePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint SettingIPConfigDhcpSendHostnamePropertyInfo = IsSettingIPConfig
type AttrSetTypeConstraint SettingIPConfigDhcpSendHostnamePropertyInfo = (~) Bool
type AttrTransferTypeConstraint SettingIPConfigDhcpSendHostnamePropertyInfo = (~) Bool
type AttrTransferType SettingIPConfigDhcpSendHostnamePropertyInfo = Bool
type AttrGetType SettingIPConfigDhcpSendHostnamePropertyInfo = Bool
type AttrLabel SettingIPConfigDhcpSendHostnamePropertyInfo = "dhcp-send-hostname"
type AttrOrigin SettingIPConfigDhcpSendHostnamePropertyInfo = SettingIPConfig
attrGet = getSettingIPConfigDhcpSendHostname
attrSet = setSettingIPConfigDhcpSendHostname
attrTransfer _ v = do
return v
attrConstruct = constructSettingIPConfigDhcpSendHostname
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.dhcpSendHostname"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#g:attr:dhcpSendHostname"
})
#endif
getSettingIPConfigDhcpSendRelease :: (MonadIO m, IsSettingIPConfig o) => o -> m NM.Enums.Ternary
getSettingIPConfigDhcpSendRelease :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> m Ternary
getSettingIPConfigDhcpSendRelease o
obj = IO Ternary -> m Ternary
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Ternary -> m Ternary) -> IO Ternary -> m Ternary
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Ternary
forall a b. (GObject a, Enum b, BoxedEnum b) => a -> String -> IO b
B.Properties.getObjectPropertyEnum o
obj String
"dhcp-send-release"
setSettingIPConfigDhcpSendRelease :: (MonadIO m, IsSettingIPConfig o) => o -> NM.Enums.Ternary -> m ()
setSettingIPConfigDhcpSendRelease :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> Ternary -> m ()
setSettingIPConfigDhcpSendRelease o
obj Ternary
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Ternary -> IO ()
forall a b.
(GObject a, Enum b, BoxedEnum b) =>
a -> String -> b -> IO ()
B.Properties.setObjectPropertyEnum o
obj String
"dhcp-send-release" Ternary
val
constructSettingIPConfigDhcpSendRelease :: (IsSettingIPConfig o, MIO.MonadIO m) => NM.Enums.Ternary -> m (GValueConstruct o)
constructSettingIPConfigDhcpSendRelease :: forall o (m :: * -> *).
(IsSettingIPConfig o, MonadIO m) =>
Ternary -> m (GValueConstruct o)
constructSettingIPConfigDhcpSendRelease Ternary
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Ternary -> IO (GValueConstruct o)
forall a o.
(Enum a, BoxedEnum a) =>
String -> a -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyEnum String
"dhcp-send-release" Ternary
val
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigDhcpSendReleasePropertyInfo
instance AttrInfo SettingIPConfigDhcpSendReleasePropertyInfo where
type AttrAllowedOps SettingIPConfigDhcpSendReleasePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint SettingIPConfigDhcpSendReleasePropertyInfo = IsSettingIPConfig
type AttrSetTypeConstraint SettingIPConfigDhcpSendReleasePropertyInfo = (~) NM.Enums.Ternary
type AttrTransferTypeConstraint SettingIPConfigDhcpSendReleasePropertyInfo = (~) NM.Enums.Ternary
type AttrTransferType SettingIPConfigDhcpSendReleasePropertyInfo = NM.Enums.Ternary
type AttrGetType SettingIPConfigDhcpSendReleasePropertyInfo = NM.Enums.Ternary
type AttrLabel SettingIPConfigDhcpSendReleasePropertyInfo = "dhcp-send-release"
type AttrOrigin SettingIPConfigDhcpSendReleasePropertyInfo = SettingIPConfig
attrGet = getSettingIPConfigDhcpSendRelease
attrSet = setSettingIPConfigDhcpSendRelease
attrTransfer _ v = do
return v
attrConstruct = constructSettingIPConfigDhcpSendRelease
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.dhcpSendRelease"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#g:attr:dhcpSendRelease"
})
#endif
getSettingIPConfigDhcpTimeout :: (MonadIO m, IsSettingIPConfig o) => o -> m Int32
getSettingIPConfigDhcpTimeout :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> m Int32
getSettingIPConfigDhcpTimeout o
obj = IO Int32 -> m Int32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Int32
forall a. GObject a => a -> String -> IO Int32
B.Properties.getObjectPropertyInt32 o
obj String
"dhcp-timeout"
setSettingIPConfigDhcpTimeout :: (MonadIO m, IsSettingIPConfig o) => o -> Int32 -> m ()
setSettingIPConfigDhcpTimeout :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> Int32 -> m ()
setSettingIPConfigDhcpTimeout o
obj Int32
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Int32 -> IO ()
forall a. GObject a => a -> String -> Int32 -> IO ()
B.Properties.setObjectPropertyInt32 o
obj String
"dhcp-timeout" Int32
val
constructSettingIPConfigDhcpTimeout :: (IsSettingIPConfig o, MIO.MonadIO m) => Int32 -> m (GValueConstruct o)
constructSettingIPConfigDhcpTimeout :: forall o (m :: * -> *).
(IsSettingIPConfig o, MonadIO m) =>
Int32 -> m (GValueConstruct o)
constructSettingIPConfigDhcpTimeout Int32
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Int32 -> IO (GValueConstruct o)
forall o. String -> Int32 -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyInt32 String
"dhcp-timeout" Int32
val
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigDhcpTimeoutPropertyInfo
instance AttrInfo SettingIPConfigDhcpTimeoutPropertyInfo where
type AttrAllowedOps SettingIPConfigDhcpTimeoutPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint SettingIPConfigDhcpTimeoutPropertyInfo = IsSettingIPConfig
type AttrSetTypeConstraint SettingIPConfigDhcpTimeoutPropertyInfo = (~) Int32
type AttrTransferTypeConstraint SettingIPConfigDhcpTimeoutPropertyInfo = (~) Int32
type AttrTransferType SettingIPConfigDhcpTimeoutPropertyInfo = Int32
type AttrGetType SettingIPConfigDhcpTimeoutPropertyInfo = Int32
type AttrLabel SettingIPConfigDhcpTimeoutPropertyInfo = "dhcp-timeout"
type AttrOrigin SettingIPConfigDhcpTimeoutPropertyInfo = SettingIPConfig
attrGet = getSettingIPConfigDhcpTimeout
attrSet = setSettingIPConfigDhcpTimeout
attrTransfer _ v = do
return v
attrConstruct = constructSettingIPConfigDhcpTimeout
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.dhcpTimeout"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#g:attr:dhcpTimeout"
})
#endif
getSettingIPConfigDns :: (MonadIO m, IsSettingIPConfig o) => o -> m (Maybe [T.Text])
getSettingIPConfigDns :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> m (Maybe [Text])
getSettingIPConfigDns o
obj = IO (Maybe [Text]) -> m (Maybe [Text])
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (Maybe [Text]) -> m (Maybe [Text]))
-> IO (Maybe [Text]) -> m (Maybe [Text])
forall a b. (a -> b) -> a -> b
$ o -> String -> IO (Maybe [Text])
forall a. GObject a => a -> String -> IO (Maybe [Text])
B.Properties.getObjectPropertyStringArray o
obj String
"dns"
setSettingIPConfigDns :: (MonadIO m, IsSettingIPConfig o) => o -> [T.Text] -> m ()
setSettingIPConfigDns :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> [Text] -> m ()
setSettingIPConfigDns o
obj [Text]
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Maybe [Text] -> IO ()
forall a. GObject a => a -> String -> Maybe [Text] -> IO ()
B.Properties.setObjectPropertyStringArray o
obj String
"dns" ([Text] -> Maybe [Text]
forall a. a -> Maybe a
Just [Text]
val)
constructSettingIPConfigDns :: (IsSettingIPConfig o, MIO.MonadIO m) => [T.Text] -> m (GValueConstruct o)
constructSettingIPConfigDns :: forall o (m :: * -> *).
(IsSettingIPConfig o, MonadIO m) =>
[Text] -> m (GValueConstruct o)
constructSettingIPConfigDns [Text]
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe [Text] -> IO (GValueConstruct o)
forall o. String -> Maybe [Text] -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyStringArray String
"dns" ([Text] -> Maybe [Text]
forall a. a -> Maybe a
P.Just [Text]
val)
clearSettingIPConfigDns :: (MonadIO m, IsSettingIPConfig o) => o -> m ()
clearSettingIPConfigDns :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> m ()
clearSettingIPConfigDns o
obj = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe [Text] -> IO ()
forall a. GObject a => a -> String -> Maybe [Text] -> IO ()
B.Properties.setObjectPropertyStringArray o
obj String
"dns" (Maybe [Text]
forall a. Maybe a
Nothing :: Maybe [T.Text])
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigDnsPropertyInfo
instance AttrInfo SettingIPConfigDnsPropertyInfo where
type AttrAllowedOps SettingIPConfigDnsPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint SettingIPConfigDnsPropertyInfo = IsSettingIPConfig
type AttrSetTypeConstraint SettingIPConfigDnsPropertyInfo = (~) [T.Text]
type AttrTransferTypeConstraint SettingIPConfigDnsPropertyInfo = (~) [T.Text]
type AttrTransferType SettingIPConfigDnsPropertyInfo = [T.Text]
type AttrGetType SettingIPConfigDnsPropertyInfo = (Maybe [T.Text])
type AttrLabel SettingIPConfigDnsPropertyInfo = "dns"
type AttrOrigin SettingIPConfigDnsPropertyInfo = SettingIPConfig
attrGet = getSettingIPConfigDns
attrSet = setSettingIPConfigDns
attrTransfer _ v = do
return v
attrConstruct = constructSettingIPConfigDns
attrClear = clearSettingIPConfigDns
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.dns"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#g:attr:dns"
})
#endif
getSettingIPConfigDnsOptions :: (MonadIO m, IsSettingIPConfig o) => o -> m (Maybe [T.Text])
getSettingIPConfigDnsOptions :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> m (Maybe [Text])
getSettingIPConfigDnsOptions o
obj = IO (Maybe [Text]) -> m (Maybe [Text])
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (Maybe [Text]) -> m (Maybe [Text]))
-> IO (Maybe [Text]) -> m (Maybe [Text])
forall a b. (a -> b) -> a -> b
$ o -> String -> IO (Maybe [Text])
forall a. GObject a => a -> String -> IO (Maybe [Text])
B.Properties.getObjectPropertyStringArray o
obj String
"dns-options"
setSettingIPConfigDnsOptions :: (MonadIO m, IsSettingIPConfig o) => o -> [T.Text] -> m ()
setSettingIPConfigDnsOptions :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> [Text] -> m ()
setSettingIPConfigDnsOptions o
obj [Text]
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Maybe [Text] -> IO ()
forall a. GObject a => a -> String -> Maybe [Text] -> IO ()
B.Properties.setObjectPropertyStringArray o
obj String
"dns-options" ([Text] -> Maybe [Text]
forall a. a -> Maybe a
Just [Text]
val)
constructSettingIPConfigDnsOptions :: (IsSettingIPConfig o, MIO.MonadIO m) => [T.Text] -> m (GValueConstruct o)
constructSettingIPConfigDnsOptions :: forall o (m :: * -> *).
(IsSettingIPConfig o, MonadIO m) =>
[Text] -> m (GValueConstruct o)
constructSettingIPConfigDnsOptions [Text]
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe [Text] -> IO (GValueConstruct o)
forall o. String -> Maybe [Text] -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyStringArray String
"dns-options" ([Text] -> Maybe [Text]
forall a. a -> Maybe a
P.Just [Text]
val)
clearSettingIPConfigDnsOptions :: (MonadIO m, IsSettingIPConfig o) => o -> m ()
clearSettingIPConfigDnsOptions :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> m ()
clearSettingIPConfigDnsOptions o
obj = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe [Text] -> IO ()
forall a. GObject a => a -> String -> Maybe [Text] -> IO ()
B.Properties.setObjectPropertyStringArray o
obj String
"dns-options" (Maybe [Text]
forall a. Maybe a
Nothing :: Maybe [T.Text])
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigDnsOptionsPropertyInfo
instance AttrInfo SettingIPConfigDnsOptionsPropertyInfo where
type AttrAllowedOps SettingIPConfigDnsOptionsPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint SettingIPConfigDnsOptionsPropertyInfo = IsSettingIPConfig
type AttrSetTypeConstraint SettingIPConfigDnsOptionsPropertyInfo = (~) [T.Text]
type AttrTransferTypeConstraint SettingIPConfigDnsOptionsPropertyInfo = (~) [T.Text]
type AttrTransferType SettingIPConfigDnsOptionsPropertyInfo = [T.Text]
type AttrGetType SettingIPConfigDnsOptionsPropertyInfo = (Maybe [T.Text])
type AttrLabel SettingIPConfigDnsOptionsPropertyInfo = "dns-options"
type AttrOrigin SettingIPConfigDnsOptionsPropertyInfo = SettingIPConfig
attrGet = getSettingIPConfigDnsOptions
attrSet = setSettingIPConfigDnsOptions
attrTransfer _ v = do
return v
attrConstruct = constructSettingIPConfigDnsOptions
attrClear = clearSettingIPConfigDnsOptions
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.dnsOptions"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#g:attr:dnsOptions"
})
#endif
getSettingIPConfigDnsPriority :: (MonadIO m, IsSettingIPConfig o) => o -> m Int32
getSettingIPConfigDnsPriority :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> m Int32
getSettingIPConfigDnsPriority o
obj = IO Int32 -> m Int32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Int32
forall a. GObject a => a -> String -> IO Int32
B.Properties.getObjectPropertyInt32 o
obj String
"dns-priority"
setSettingIPConfigDnsPriority :: (MonadIO m, IsSettingIPConfig o) => o -> Int32 -> m ()
setSettingIPConfigDnsPriority :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> Int32 -> m ()
setSettingIPConfigDnsPriority o
obj Int32
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Int32 -> IO ()
forall a. GObject a => a -> String -> Int32 -> IO ()
B.Properties.setObjectPropertyInt32 o
obj String
"dns-priority" Int32
val
constructSettingIPConfigDnsPriority :: (IsSettingIPConfig o, MIO.MonadIO m) => Int32 -> m (GValueConstruct o)
constructSettingIPConfigDnsPriority :: forall o (m :: * -> *).
(IsSettingIPConfig o, MonadIO m) =>
Int32 -> m (GValueConstruct o)
constructSettingIPConfigDnsPriority Int32
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Int32 -> IO (GValueConstruct o)
forall o. String -> Int32 -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyInt32 String
"dns-priority" Int32
val
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigDnsPriorityPropertyInfo
instance AttrInfo SettingIPConfigDnsPriorityPropertyInfo where
type AttrAllowedOps SettingIPConfigDnsPriorityPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint SettingIPConfigDnsPriorityPropertyInfo = IsSettingIPConfig
type AttrSetTypeConstraint SettingIPConfigDnsPriorityPropertyInfo = (~) Int32
type AttrTransferTypeConstraint SettingIPConfigDnsPriorityPropertyInfo = (~) Int32
type AttrTransferType SettingIPConfigDnsPriorityPropertyInfo = Int32
type AttrGetType SettingIPConfigDnsPriorityPropertyInfo = Int32
type AttrLabel SettingIPConfigDnsPriorityPropertyInfo = "dns-priority"
type AttrOrigin SettingIPConfigDnsPriorityPropertyInfo = SettingIPConfig
attrGet = getSettingIPConfigDnsPriority
attrSet = setSettingIPConfigDnsPriority
attrTransfer _ v = do
return v
attrConstruct = constructSettingIPConfigDnsPriority
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.dnsPriority"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#g:attr:dnsPriority"
})
#endif
getSettingIPConfigDnsSearch :: (MonadIO m, IsSettingIPConfig o) => o -> m (Maybe [T.Text])
getSettingIPConfigDnsSearch :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> m (Maybe [Text])
getSettingIPConfigDnsSearch o
obj = IO (Maybe [Text]) -> m (Maybe [Text])
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (Maybe [Text]) -> m (Maybe [Text]))
-> IO (Maybe [Text]) -> m (Maybe [Text])
forall a b. (a -> b) -> a -> b
$ o -> String -> IO (Maybe [Text])
forall a. GObject a => a -> String -> IO (Maybe [Text])
B.Properties.getObjectPropertyStringArray o
obj String
"dns-search"
setSettingIPConfigDnsSearch :: (MonadIO m, IsSettingIPConfig o) => o -> [T.Text] -> m ()
setSettingIPConfigDnsSearch :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> [Text] -> m ()
setSettingIPConfigDnsSearch o
obj [Text]
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Maybe [Text] -> IO ()
forall a. GObject a => a -> String -> Maybe [Text] -> IO ()
B.Properties.setObjectPropertyStringArray o
obj String
"dns-search" ([Text] -> Maybe [Text]
forall a. a -> Maybe a
Just [Text]
val)
constructSettingIPConfigDnsSearch :: (IsSettingIPConfig o, MIO.MonadIO m) => [T.Text] -> m (GValueConstruct o)
constructSettingIPConfigDnsSearch :: forall o (m :: * -> *).
(IsSettingIPConfig o, MonadIO m) =>
[Text] -> m (GValueConstruct o)
constructSettingIPConfigDnsSearch [Text]
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe [Text] -> IO (GValueConstruct o)
forall o. String -> Maybe [Text] -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyStringArray String
"dns-search" ([Text] -> Maybe [Text]
forall a. a -> Maybe a
P.Just [Text]
val)
clearSettingIPConfigDnsSearch :: (MonadIO m, IsSettingIPConfig o) => o -> m ()
clearSettingIPConfigDnsSearch :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> m ()
clearSettingIPConfigDnsSearch o
obj = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe [Text] -> IO ()
forall a. GObject a => a -> String -> Maybe [Text] -> IO ()
B.Properties.setObjectPropertyStringArray o
obj String
"dns-search" (Maybe [Text]
forall a. Maybe a
Nothing :: Maybe [T.Text])
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigDnsSearchPropertyInfo
instance AttrInfo SettingIPConfigDnsSearchPropertyInfo where
type AttrAllowedOps SettingIPConfigDnsSearchPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint SettingIPConfigDnsSearchPropertyInfo = IsSettingIPConfig
type AttrSetTypeConstraint SettingIPConfigDnsSearchPropertyInfo = (~) [T.Text]
type AttrTransferTypeConstraint SettingIPConfigDnsSearchPropertyInfo = (~) [T.Text]
type AttrTransferType SettingIPConfigDnsSearchPropertyInfo = [T.Text]
type AttrGetType SettingIPConfigDnsSearchPropertyInfo = (Maybe [T.Text])
type AttrLabel SettingIPConfigDnsSearchPropertyInfo = "dns-search"
type AttrOrigin SettingIPConfigDnsSearchPropertyInfo = SettingIPConfig
attrGet = getSettingIPConfigDnsSearch
attrSet = setSettingIPConfigDnsSearch
attrTransfer _ v = do
return v
attrConstruct = constructSettingIPConfigDnsSearch
attrClear = clearSettingIPConfigDnsSearch
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.dnsSearch"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#g:attr:dnsSearch"
})
#endif
getSettingIPConfigGateway :: (MonadIO m, IsSettingIPConfig o) => o -> m T.Text
getSettingIPConfigGateway :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> m Text
getSettingIPConfigGateway o
obj = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ Text -> IO (Maybe Text) -> IO Text
forall a. HasCallStack => Text -> IO (Maybe a) -> IO a
checkUnexpectedNothing Text
"getSettingIPConfigGateway" (IO (Maybe Text) -> IO Text) -> IO (Maybe Text) -> IO Text
forall a b. (a -> b) -> a -> b
$ o -> String -> IO (Maybe Text)
forall a. GObject a => a -> String -> IO (Maybe Text)
B.Properties.getObjectPropertyString o
obj String
"gateway"
setSettingIPConfigGateway :: (MonadIO m, IsSettingIPConfig o) => o -> T.Text -> m ()
setSettingIPConfigGateway :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> Text -> m ()
setSettingIPConfigGateway o
obj Text
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"gateway" (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
val)
constructSettingIPConfigGateway :: (IsSettingIPConfig o, MIO.MonadIO m) => T.Text -> m (GValueConstruct o)
constructSettingIPConfigGateway :: forall o (m :: * -> *).
(IsSettingIPConfig o, MonadIO m) =>
Text -> m (GValueConstruct o)
constructSettingIPConfigGateway Text
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe Text -> IO (GValueConstruct o)
forall o. String -> Maybe Text -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyString String
"gateway" (Text -> Maybe Text
forall a. a -> Maybe a
P.Just Text
val)
clearSettingIPConfigGateway :: (MonadIO m, IsSettingIPConfig o) => o -> m ()
clearSettingIPConfigGateway :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> m ()
clearSettingIPConfigGateway o
obj = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"gateway" (Maybe Text
forall a. Maybe a
Nothing :: Maybe T.Text)
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigGatewayPropertyInfo
instance AttrInfo SettingIPConfigGatewayPropertyInfo where
type AttrAllowedOps SettingIPConfigGatewayPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint SettingIPConfigGatewayPropertyInfo = IsSettingIPConfig
type AttrSetTypeConstraint SettingIPConfigGatewayPropertyInfo = (~) T.Text
type AttrTransferTypeConstraint SettingIPConfigGatewayPropertyInfo = (~) T.Text
type AttrTransferType SettingIPConfigGatewayPropertyInfo = T.Text
type AttrGetType SettingIPConfigGatewayPropertyInfo = T.Text
type AttrLabel SettingIPConfigGatewayPropertyInfo = "gateway"
type AttrOrigin SettingIPConfigGatewayPropertyInfo = SettingIPConfig
attrGet = getSettingIPConfigGateway
attrSet = setSettingIPConfigGateway
attrTransfer _ v = do
return v
attrConstruct = constructSettingIPConfigGateway
attrClear = clearSettingIPConfigGateway
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.gateway"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#g:attr:gateway"
})
#endif
getSettingIPConfigIgnoreAutoDns :: (MonadIO m, IsSettingIPConfig o) => o -> m Bool
getSettingIPConfigIgnoreAutoDns :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> m Bool
getSettingIPConfigIgnoreAutoDns o
obj = IO Bool -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Bool
forall a. GObject a => a -> String -> IO Bool
B.Properties.getObjectPropertyBool o
obj String
"ignore-auto-dns"
setSettingIPConfigIgnoreAutoDns :: (MonadIO m, IsSettingIPConfig o) => o -> Bool -> m ()
setSettingIPConfigIgnoreAutoDns :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> Bool -> m ()
setSettingIPConfigIgnoreAutoDns o
obj Bool
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Bool -> IO ()
forall a. GObject a => a -> String -> Bool -> IO ()
B.Properties.setObjectPropertyBool o
obj String
"ignore-auto-dns" Bool
val
constructSettingIPConfigIgnoreAutoDns :: (IsSettingIPConfig o, MIO.MonadIO m) => Bool -> m (GValueConstruct o)
constructSettingIPConfigIgnoreAutoDns :: forall o (m :: * -> *).
(IsSettingIPConfig o, MonadIO m) =>
Bool -> m (GValueConstruct o)
constructSettingIPConfigIgnoreAutoDns Bool
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Bool -> IO (GValueConstruct o)
forall o. String -> Bool -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyBool String
"ignore-auto-dns" Bool
val
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigIgnoreAutoDnsPropertyInfo
instance AttrInfo SettingIPConfigIgnoreAutoDnsPropertyInfo where
type AttrAllowedOps SettingIPConfigIgnoreAutoDnsPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint SettingIPConfigIgnoreAutoDnsPropertyInfo = IsSettingIPConfig
type AttrSetTypeConstraint SettingIPConfigIgnoreAutoDnsPropertyInfo = (~) Bool
type AttrTransferTypeConstraint SettingIPConfigIgnoreAutoDnsPropertyInfo = (~) Bool
type AttrTransferType SettingIPConfigIgnoreAutoDnsPropertyInfo = Bool
type AttrGetType SettingIPConfigIgnoreAutoDnsPropertyInfo = Bool
type AttrLabel SettingIPConfigIgnoreAutoDnsPropertyInfo = "ignore-auto-dns"
type AttrOrigin SettingIPConfigIgnoreAutoDnsPropertyInfo = SettingIPConfig
attrGet = getSettingIPConfigIgnoreAutoDns
attrSet = setSettingIPConfigIgnoreAutoDns
attrTransfer _ v = do
return v
attrConstruct = constructSettingIPConfigIgnoreAutoDns
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.ignoreAutoDns"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#g:attr:ignoreAutoDns"
})
#endif
getSettingIPConfigIgnoreAutoRoutes :: (MonadIO m, IsSettingIPConfig o) => o -> m Bool
getSettingIPConfigIgnoreAutoRoutes :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> m Bool
getSettingIPConfigIgnoreAutoRoutes o
obj = IO Bool -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Bool
forall a. GObject a => a -> String -> IO Bool
B.Properties.getObjectPropertyBool o
obj String
"ignore-auto-routes"
setSettingIPConfigIgnoreAutoRoutes :: (MonadIO m, IsSettingIPConfig o) => o -> Bool -> m ()
setSettingIPConfigIgnoreAutoRoutes :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> Bool -> m ()
setSettingIPConfigIgnoreAutoRoutes o
obj Bool
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Bool -> IO ()
forall a. GObject a => a -> String -> Bool -> IO ()
B.Properties.setObjectPropertyBool o
obj String
"ignore-auto-routes" Bool
val
constructSettingIPConfigIgnoreAutoRoutes :: (IsSettingIPConfig o, MIO.MonadIO m) => Bool -> m (GValueConstruct o)
constructSettingIPConfigIgnoreAutoRoutes :: forall o (m :: * -> *).
(IsSettingIPConfig o, MonadIO m) =>
Bool -> m (GValueConstruct o)
constructSettingIPConfigIgnoreAutoRoutes Bool
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Bool -> IO (GValueConstruct o)
forall o. String -> Bool -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyBool String
"ignore-auto-routes" Bool
val
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigIgnoreAutoRoutesPropertyInfo
instance AttrInfo SettingIPConfigIgnoreAutoRoutesPropertyInfo where
type AttrAllowedOps SettingIPConfigIgnoreAutoRoutesPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint SettingIPConfigIgnoreAutoRoutesPropertyInfo = IsSettingIPConfig
type AttrSetTypeConstraint SettingIPConfigIgnoreAutoRoutesPropertyInfo = (~) Bool
type AttrTransferTypeConstraint SettingIPConfigIgnoreAutoRoutesPropertyInfo = (~) Bool
type AttrTransferType SettingIPConfigIgnoreAutoRoutesPropertyInfo = Bool
type AttrGetType SettingIPConfigIgnoreAutoRoutesPropertyInfo = Bool
type AttrLabel SettingIPConfigIgnoreAutoRoutesPropertyInfo = "ignore-auto-routes"
type AttrOrigin SettingIPConfigIgnoreAutoRoutesPropertyInfo = SettingIPConfig
attrGet = getSettingIPConfigIgnoreAutoRoutes
attrSet = setSettingIPConfigIgnoreAutoRoutes
attrTransfer _ v = do
return v
attrConstruct = constructSettingIPConfigIgnoreAutoRoutes
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.ignoreAutoRoutes"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#g:attr:ignoreAutoRoutes"
})
#endif
getSettingIPConfigMayFail :: (MonadIO m, IsSettingIPConfig o) => o -> m Bool
getSettingIPConfigMayFail :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> m Bool
getSettingIPConfigMayFail o
obj = IO Bool -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Bool
forall a. GObject a => a -> String -> IO Bool
B.Properties.getObjectPropertyBool o
obj String
"may-fail"
setSettingIPConfigMayFail :: (MonadIO m, IsSettingIPConfig o) => o -> Bool -> m ()
setSettingIPConfigMayFail :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> Bool -> m ()
setSettingIPConfigMayFail o
obj Bool
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Bool -> IO ()
forall a. GObject a => a -> String -> Bool -> IO ()
B.Properties.setObjectPropertyBool o
obj String
"may-fail" Bool
val
constructSettingIPConfigMayFail :: (IsSettingIPConfig o, MIO.MonadIO m) => Bool -> m (GValueConstruct o)
constructSettingIPConfigMayFail :: forall o (m :: * -> *).
(IsSettingIPConfig o, MonadIO m) =>
Bool -> m (GValueConstruct o)
constructSettingIPConfigMayFail Bool
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Bool -> IO (GValueConstruct o)
forall o. String -> Bool -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyBool String
"may-fail" Bool
val
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigMayFailPropertyInfo
instance AttrInfo SettingIPConfigMayFailPropertyInfo where
type AttrAllowedOps SettingIPConfigMayFailPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint SettingIPConfigMayFailPropertyInfo = IsSettingIPConfig
type AttrSetTypeConstraint SettingIPConfigMayFailPropertyInfo = (~) Bool
type AttrTransferTypeConstraint SettingIPConfigMayFailPropertyInfo = (~) Bool
type AttrTransferType SettingIPConfigMayFailPropertyInfo = Bool
type AttrGetType SettingIPConfigMayFailPropertyInfo = Bool
type AttrLabel SettingIPConfigMayFailPropertyInfo = "may-fail"
type AttrOrigin SettingIPConfigMayFailPropertyInfo = SettingIPConfig
attrGet = getSettingIPConfigMayFail
attrSet = setSettingIPConfigMayFail
attrTransfer _ v = do
return v
attrConstruct = constructSettingIPConfigMayFail
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.mayFail"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#g:attr:mayFail"
})
#endif
getSettingIPConfigMethod :: (MonadIO m, IsSettingIPConfig o) => o -> m T.Text
getSettingIPConfigMethod :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> m Text
getSettingIPConfigMethod o
obj = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ Text -> IO (Maybe Text) -> IO Text
forall a. HasCallStack => Text -> IO (Maybe a) -> IO a
checkUnexpectedNothing Text
"getSettingIPConfigMethod" (IO (Maybe Text) -> IO Text) -> IO (Maybe Text) -> IO Text
forall a b. (a -> b) -> a -> b
$ o -> String -> IO (Maybe Text)
forall a. GObject a => a -> String -> IO (Maybe Text)
B.Properties.getObjectPropertyString o
obj String
"method"
setSettingIPConfigMethod :: (MonadIO m, IsSettingIPConfig o) => o -> T.Text -> m ()
setSettingIPConfigMethod :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> Text -> m ()
setSettingIPConfigMethod o
obj Text
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"method" (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
val)
constructSettingIPConfigMethod :: (IsSettingIPConfig o, MIO.MonadIO m) => T.Text -> m (GValueConstruct o)
constructSettingIPConfigMethod :: forall o (m :: * -> *).
(IsSettingIPConfig o, MonadIO m) =>
Text -> m (GValueConstruct o)
constructSettingIPConfigMethod Text
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe Text -> IO (GValueConstruct o)
forall o. String -> Maybe Text -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyString String
"method" (Text -> Maybe Text
forall a. a -> Maybe a
P.Just Text
val)
clearSettingIPConfigMethod :: (MonadIO m, IsSettingIPConfig o) => o -> m ()
clearSettingIPConfigMethod :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> m ()
clearSettingIPConfigMethod o
obj = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"method" (Maybe Text
forall a. Maybe a
Nothing :: Maybe T.Text)
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigMethodPropertyInfo
instance AttrInfo SettingIPConfigMethodPropertyInfo where
type AttrAllowedOps SettingIPConfigMethodPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint SettingIPConfigMethodPropertyInfo = IsSettingIPConfig
type AttrSetTypeConstraint SettingIPConfigMethodPropertyInfo = (~) T.Text
type AttrTransferTypeConstraint SettingIPConfigMethodPropertyInfo = (~) T.Text
type AttrTransferType SettingIPConfigMethodPropertyInfo = T.Text
type AttrGetType SettingIPConfigMethodPropertyInfo = T.Text
type AttrLabel SettingIPConfigMethodPropertyInfo = "method"
type AttrOrigin SettingIPConfigMethodPropertyInfo = SettingIPConfig
attrGet = getSettingIPConfigMethod
attrSet = setSettingIPConfigMethod
attrTransfer _ v = do
return v
attrConstruct = constructSettingIPConfigMethod
attrClear = clearSettingIPConfigMethod
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.method"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#g:attr:method"
})
#endif
getSettingIPConfigNeverDefault :: (MonadIO m, IsSettingIPConfig o) => o -> m Bool
getSettingIPConfigNeverDefault :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> m Bool
getSettingIPConfigNeverDefault o
obj = IO Bool -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Bool
forall a. GObject a => a -> String -> IO Bool
B.Properties.getObjectPropertyBool o
obj String
"never-default"
setSettingIPConfigNeverDefault :: (MonadIO m, IsSettingIPConfig o) => o -> Bool -> m ()
setSettingIPConfigNeverDefault :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> Bool -> m ()
setSettingIPConfigNeverDefault o
obj Bool
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Bool -> IO ()
forall a. GObject a => a -> String -> Bool -> IO ()
B.Properties.setObjectPropertyBool o
obj String
"never-default" Bool
val
constructSettingIPConfigNeverDefault :: (IsSettingIPConfig o, MIO.MonadIO m) => Bool -> m (GValueConstruct o)
constructSettingIPConfigNeverDefault :: forall o (m :: * -> *).
(IsSettingIPConfig o, MonadIO m) =>
Bool -> m (GValueConstruct o)
constructSettingIPConfigNeverDefault Bool
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Bool -> IO (GValueConstruct o)
forall o. String -> Bool -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyBool String
"never-default" Bool
val
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigNeverDefaultPropertyInfo
instance AttrInfo SettingIPConfigNeverDefaultPropertyInfo where
type AttrAllowedOps SettingIPConfigNeverDefaultPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint SettingIPConfigNeverDefaultPropertyInfo = IsSettingIPConfig
type AttrSetTypeConstraint SettingIPConfigNeverDefaultPropertyInfo = (~) Bool
type AttrTransferTypeConstraint SettingIPConfigNeverDefaultPropertyInfo = (~) Bool
type AttrTransferType SettingIPConfigNeverDefaultPropertyInfo = Bool
type AttrGetType SettingIPConfigNeverDefaultPropertyInfo = Bool
type AttrLabel SettingIPConfigNeverDefaultPropertyInfo = "never-default"
type AttrOrigin SettingIPConfigNeverDefaultPropertyInfo = SettingIPConfig
attrGet = getSettingIPConfigNeverDefault
attrSet = setSettingIPConfigNeverDefault
attrTransfer _ v = do
return v
attrConstruct = constructSettingIPConfigNeverDefault
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.neverDefault"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#g:attr:neverDefault"
})
#endif
getSettingIPConfigReplaceLocalRule :: (MonadIO m, IsSettingIPConfig o) => o -> m NM.Enums.Ternary
getSettingIPConfigReplaceLocalRule :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> m Ternary
getSettingIPConfigReplaceLocalRule o
obj = IO Ternary -> m Ternary
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Ternary -> m Ternary) -> IO Ternary -> m Ternary
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Ternary
forall a b. (GObject a, Enum b, BoxedEnum b) => a -> String -> IO b
B.Properties.getObjectPropertyEnum o
obj String
"replace-local-rule"
setSettingIPConfigReplaceLocalRule :: (MonadIO m, IsSettingIPConfig o) => o -> NM.Enums.Ternary -> m ()
setSettingIPConfigReplaceLocalRule :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> Ternary -> m ()
setSettingIPConfigReplaceLocalRule o
obj Ternary
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Ternary -> IO ()
forall a b.
(GObject a, Enum b, BoxedEnum b) =>
a -> String -> b -> IO ()
B.Properties.setObjectPropertyEnum o
obj String
"replace-local-rule" Ternary
val
constructSettingIPConfigReplaceLocalRule :: (IsSettingIPConfig o, MIO.MonadIO m) => NM.Enums.Ternary -> m (GValueConstruct o)
constructSettingIPConfigReplaceLocalRule :: forall o (m :: * -> *).
(IsSettingIPConfig o, MonadIO m) =>
Ternary -> m (GValueConstruct o)
constructSettingIPConfigReplaceLocalRule Ternary
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Ternary -> IO (GValueConstruct o)
forall a o.
(Enum a, BoxedEnum a) =>
String -> a -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyEnum String
"replace-local-rule" Ternary
val
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigReplaceLocalRulePropertyInfo
instance AttrInfo SettingIPConfigReplaceLocalRulePropertyInfo where
type AttrAllowedOps SettingIPConfigReplaceLocalRulePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint SettingIPConfigReplaceLocalRulePropertyInfo = IsSettingIPConfig
type AttrSetTypeConstraint SettingIPConfigReplaceLocalRulePropertyInfo = (~) NM.Enums.Ternary
type AttrTransferTypeConstraint SettingIPConfigReplaceLocalRulePropertyInfo = (~) NM.Enums.Ternary
type AttrTransferType SettingIPConfigReplaceLocalRulePropertyInfo = NM.Enums.Ternary
type AttrGetType SettingIPConfigReplaceLocalRulePropertyInfo = NM.Enums.Ternary
type AttrLabel SettingIPConfigReplaceLocalRulePropertyInfo = "replace-local-rule"
type AttrOrigin SettingIPConfigReplaceLocalRulePropertyInfo = SettingIPConfig
attrGet = getSettingIPConfigReplaceLocalRule
attrSet = setSettingIPConfigReplaceLocalRule
attrTransfer _ v = do
return v
attrConstruct = constructSettingIPConfigReplaceLocalRule
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.replaceLocalRule"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#g:attr:replaceLocalRule"
})
#endif
getSettingIPConfigRequiredTimeout :: (MonadIO m, IsSettingIPConfig o) => o -> m Int32
getSettingIPConfigRequiredTimeout :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> m Int32
getSettingIPConfigRequiredTimeout o
obj = IO Int32 -> m Int32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Int32
forall a. GObject a => a -> String -> IO Int32
B.Properties.getObjectPropertyInt32 o
obj String
"required-timeout"
setSettingIPConfigRequiredTimeout :: (MonadIO m, IsSettingIPConfig o) => o -> Int32 -> m ()
setSettingIPConfigRequiredTimeout :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> Int32 -> m ()
setSettingIPConfigRequiredTimeout o
obj Int32
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Int32 -> IO ()
forall a. GObject a => a -> String -> Int32 -> IO ()
B.Properties.setObjectPropertyInt32 o
obj String
"required-timeout" Int32
val
constructSettingIPConfigRequiredTimeout :: (IsSettingIPConfig o, MIO.MonadIO m) => Int32 -> m (GValueConstruct o)
constructSettingIPConfigRequiredTimeout :: forall o (m :: * -> *).
(IsSettingIPConfig o, MonadIO m) =>
Int32 -> m (GValueConstruct o)
constructSettingIPConfigRequiredTimeout Int32
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Int32 -> IO (GValueConstruct o)
forall o. String -> Int32 -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyInt32 String
"required-timeout" Int32
val
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigRequiredTimeoutPropertyInfo
instance AttrInfo SettingIPConfigRequiredTimeoutPropertyInfo where
type AttrAllowedOps SettingIPConfigRequiredTimeoutPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint SettingIPConfigRequiredTimeoutPropertyInfo = IsSettingIPConfig
type AttrSetTypeConstraint SettingIPConfigRequiredTimeoutPropertyInfo = (~) Int32
type AttrTransferTypeConstraint SettingIPConfigRequiredTimeoutPropertyInfo = (~) Int32
type AttrTransferType SettingIPConfigRequiredTimeoutPropertyInfo = Int32
type AttrGetType SettingIPConfigRequiredTimeoutPropertyInfo = Int32
type AttrLabel SettingIPConfigRequiredTimeoutPropertyInfo = "required-timeout"
type AttrOrigin SettingIPConfigRequiredTimeoutPropertyInfo = SettingIPConfig
attrGet = getSettingIPConfigRequiredTimeout
attrSet = setSettingIPConfigRequiredTimeout
attrTransfer _ v = do
return v
attrConstruct = constructSettingIPConfigRequiredTimeout
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.requiredTimeout"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#g:attr:requiredTimeout"
})
#endif
getSettingIPConfigRouteMetric :: (MonadIO m, IsSettingIPConfig o) => o -> m Int64
getSettingIPConfigRouteMetric :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> m Int64
getSettingIPConfigRouteMetric o
obj = IO Int64 -> m Int64
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Int64 -> m Int64) -> IO Int64 -> m Int64
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Int64
forall a. GObject a => a -> String -> IO Int64
B.Properties.getObjectPropertyInt64 o
obj String
"route-metric"
setSettingIPConfigRouteMetric :: (MonadIO m, IsSettingIPConfig o) => o -> Int64 -> m ()
setSettingIPConfigRouteMetric :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> Int64 -> m ()
setSettingIPConfigRouteMetric o
obj Int64
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Int64 -> IO ()
forall a. GObject a => a -> String -> Int64 -> IO ()
B.Properties.setObjectPropertyInt64 o
obj String
"route-metric" Int64
val
constructSettingIPConfigRouteMetric :: (IsSettingIPConfig o, MIO.MonadIO m) => Int64 -> m (GValueConstruct o)
constructSettingIPConfigRouteMetric :: forall o (m :: * -> *).
(IsSettingIPConfig o, MonadIO m) =>
Int64 -> m (GValueConstruct o)
constructSettingIPConfigRouteMetric Int64
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Int64 -> IO (GValueConstruct o)
forall o. String -> Int64 -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyInt64 String
"route-metric" Int64
val
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigRouteMetricPropertyInfo
instance AttrInfo SettingIPConfigRouteMetricPropertyInfo where
type AttrAllowedOps SettingIPConfigRouteMetricPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint SettingIPConfigRouteMetricPropertyInfo = IsSettingIPConfig
type AttrSetTypeConstraint SettingIPConfigRouteMetricPropertyInfo = (~) Int64
type AttrTransferTypeConstraint SettingIPConfigRouteMetricPropertyInfo = (~) Int64
type AttrTransferType SettingIPConfigRouteMetricPropertyInfo = Int64
type AttrGetType SettingIPConfigRouteMetricPropertyInfo = Int64
type AttrLabel SettingIPConfigRouteMetricPropertyInfo = "route-metric"
type AttrOrigin SettingIPConfigRouteMetricPropertyInfo = SettingIPConfig
attrGet = getSettingIPConfigRouteMetric
attrSet = setSettingIPConfigRouteMetric
attrTransfer _ v = do
return v
attrConstruct = constructSettingIPConfigRouteMetric
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.routeMetric"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#g:attr:routeMetric"
})
#endif
getSettingIPConfigRouteTable :: (MonadIO m, IsSettingIPConfig o) => o -> m Word32
getSettingIPConfigRouteTable :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> m Word32
getSettingIPConfigRouteTable o
obj = IO Word32 -> m Word32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Word32 -> m Word32) -> IO Word32 -> m Word32
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Word32
forall a. GObject a => a -> String -> IO Word32
B.Properties.getObjectPropertyUInt32 o
obj String
"route-table"
setSettingIPConfigRouteTable :: (MonadIO m, IsSettingIPConfig o) => o -> Word32 -> m ()
setSettingIPConfigRouteTable :: forall (m :: * -> *) o.
(MonadIO m, IsSettingIPConfig o) =>
o -> Word32 -> m ()
setSettingIPConfigRouteTable o
obj Word32
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Word32 -> IO ()
forall a. GObject a => a -> String -> Word32 -> IO ()
B.Properties.setObjectPropertyUInt32 o
obj String
"route-table" Word32
val
constructSettingIPConfigRouteTable :: (IsSettingIPConfig o, MIO.MonadIO m) => Word32 -> m (GValueConstruct o)
constructSettingIPConfigRouteTable :: forall o (m :: * -> *).
(IsSettingIPConfig o, MonadIO m) =>
Word32 -> m (GValueConstruct o)
constructSettingIPConfigRouteTable Word32
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Word32 -> IO (GValueConstruct o)
forall o. String -> Word32 -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyUInt32 String
"route-table" Word32
val
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigRouteTablePropertyInfo
instance AttrInfo SettingIPConfigRouteTablePropertyInfo where
type AttrAllowedOps SettingIPConfigRouteTablePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint SettingIPConfigRouteTablePropertyInfo = IsSettingIPConfig
type AttrSetTypeConstraint SettingIPConfigRouteTablePropertyInfo = (~) Word32
type AttrTransferTypeConstraint SettingIPConfigRouteTablePropertyInfo = (~) Word32
type AttrTransferType SettingIPConfigRouteTablePropertyInfo = Word32
type AttrGetType SettingIPConfigRouteTablePropertyInfo = Word32
type AttrLabel SettingIPConfigRouteTablePropertyInfo = "route-table"
type AttrOrigin SettingIPConfigRouteTablePropertyInfo = SettingIPConfig
attrGet = getSettingIPConfigRouteTable
attrSet = setSettingIPConfigRouteTable
attrTransfer _ v = do
return v
attrConstruct = constructSettingIPConfigRouteTable
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.routeTable"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#g:attr:routeTable"
})
#endif
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigRoutesPropertyInfo
instance AttrInfo SettingIPConfigRoutesPropertyInfo where
type AttrAllowedOps SettingIPConfigRoutesPropertyInfo = '[]
type AttrSetTypeConstraint SettingIPConfigRoutesPropertyInfo = (~) ()
type AttrTransferTypeConstraint SettingIPConfigRoutesPropertyInfo = (~) ()
type AttrTransferType SettingIPConfigRoutesPropertyInfo = ()
type AttrBaseTypeConstraint SettingIPConfigRoutesPropertyInfo = (~) ()
type AttrGetType SettingIPConfigRoutesPropertyInfo = ()
type AttrLabel SettingIPConfigRoutesPropertyInfo = ""
type AttrOrigin SettingIPConfigRoutesPropertyInfo = SettingIPConfig
attrGet = undefined
attrSet = undefined
attrConstruct = undefined
attrClear = undefined
attrTransfer = undefined
#endif
#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList SettingIPConfig
type instance O.AttributeList SettingIPConfig = SettingIPConfigAttributeList
type SettingIPConfigAttributeList = ('[ '("addresses", SettingIPConfigAddressesPropertyInfo), '("autoRouteExtGw", SettingIPConfigAutoRouteExtGwPropertyInfo), '("dadTimeout", SettingIPConfigDadTimeoutPropertyInfo), '("dhcpDscp", SettingIPConfigDhcpDscpPropertyInfo), '("dhcpHostname", SettingIPConfigDhcpHostnamePropertyInfo), '("dhcpHostnameFlags", SettingIPConfigDhcpHostnameFlagsPropertyInfo), '("dhcpIaid", SettingIPConfigDhcpIaidPropertyInfo), '("dhcpRejectServers", SettingIPConfigDhcpRejectServersPropertyInfo), '("dhcpSendHostname", SettingIPConfigDhcpSendHostnamePropertyInfo), '("dhcpSendRelease", SettingIPConfigDhcpSendReleasePropertyInfo), '("dhcpTimeout", SettingIPConfigDhcpTimeoutPropertyInfo), '("dns", SettingIPConfigDnsPropertyInfo), '("dnsOptions", SettingIPConfigDnsOptionsPropertyInfo), '("dnsPriority", SettingIPConfigDnsPriorityPropertyInfo), '("dnsSearch", SettingIPConfigDnsSearchPropertyInfo), '("gateway", SettingIPConfigGatewayPropertyInfo), '("ignoreAutoDns", SettingIPConfigIgnoreAutoDnsPropertyInfo), '("ignoreAutoRoutes", SettingIPConfigIgnoreAutoRoutesPropertyInfo), '("mayFail", SettingIPConfigMayFailPropertyInfo), '("method", SettingIPConfigMethodPropertyInfo), '("name", NM.Setting.SettingNamePropertyInfo), '("neverDefault", SettingIPConfigNeverDefaultPropertyInfo), '("replaceLocalRule", SettingIPConfigReplaceLocalRulePropertyInfo), '("requiredTimeout", SettingIPConfigRequiredTimeoutPropertyInfo), '("routeMetric", SettingIPConfigRouteMetricPropertyInfo), '("routeTable", SettingIPConfigRouteTablePropertyInfo), '("routes", SettingIPConfigRoutesPropertyInfo)] :: [(Symbol, DK.Type)])
#endif
#if defined(ENABLE_OVERLOADING)
settingIPConfigAddresses :: AttrLabelProxy "addresses"
settingIPConfigAddresses = AttrLabelProxy
settingIPConfigAutoRouteExtGw :: AttrLabelProxy "autoRouteExtGw"
settingIPConfigAutoRouteExtGw = AttrLabelProxy
settingIPConfigDadTimeout :: AttrLabelProxy "dadTimeout"
settingIPConfigDadTimeout = AttrLabelProxy
settingIPConfigDhcpDscp :: AttrLabelProxy "dhcpDscp"
settingIPConfigDhcpDscp = AttrLabelProxy
settingIPConfigDhcpHostname :: AttrLabelProxy "dhcpHostname"
settingIPConfigDhcpHostname = AttrLabelProxy
settingIPConfigDhcpHostnameFlags :: AttrLabelProxy "dhcpHostnameFlags"
settingIPConfigDhcpHostnameFlags = AttrLabelProxy
settingIPConfigDhcpIaid :: AttrLabelProxy "dhcpIaid"
settingIPConfigDhcpIaid = AttrLabelProxy
settingIPConfigDhcpRejectServers :: AttrLabelProxy "dhcpRejectServers"
settingIPConfigDhcpRejectServers = AttrLabelProxy
settingIPConfigDhcpSendHostname :: AttrLabelProxy "dhcpSendHostname"
settingIPConfigDhcpSendHostname = AttrLabelProxy
settingIPConfigDhcpSendRelease :: AttrLabelProxy "dhcpSendRelease"
settingIPConfigDhcpSendRelease = AttrLabelProxy
settingIPConfigDhcpTimeout :: AttrLabelProxy "dhcpTimeout"
settingIPConfigDhcpTimeout = AttrLabelProxy
settingIPConfigDns :: AttrLabelProxy "dns"
settingIPConfigDns = AttrLabelProxy
settingIPConfigDnsOptions :: AttrLabelProxy "dnsOptions"
settingIPConfigDnsOptions = AttrLabelProxy
settingIPConfigDnsPriority :: AttrLabelProxy "dnsPriority"
settingIPConfigDnsPriority = AttrLabelProxy
settingIPConfigDnsSearch :: AttrLabelProxy "dnsSearch"
settingIPConfigDnsSearch = AttrLabelProxy
settingIPConfigGateway :: AttrLabelProxy "gateway"
settingIPConfigGateway = AttrLabelProxy
settingIPConfigIgnoreAutoDns :: AttrLabelProxy "ignoreAutoDns"
settingIPConfigIgnoreAutoDns = AttrLabelProxy
settingIPConfigIgnoreAutoRoutes :: AttrLabelProxy "ignoreAutoRoutes"
settingIPConfigIgnoreAutoRoutes = AttrLabelProxy
settingIPConfigMayFail :: AttrLabelProxy "mayFail"
settingIPConfigMayFail = AttrLabelProxy
settingIPConfigMethod :: AttrLabelProxy "method"
settingIPConfigMethod = AttrLabelProxy
settingIPConfigNeverDefault :: AttrLabelProxy "neverDefault"
settingIPConfigNeverDefault = AttrLabelProxy
settingIPConfigReplaceLocalRule :: AttrLabelProxy "replaceLocalRule"
settingIPConfigReplaceLocalRule = AttrLabelProxy
settingIPConfigRequiredTimeout :: AttrLabelProxy "requiredTimeout"
settingIPConfigRequiredTimeout = AttrLabelProxy
settingIPConfigRouteMetric :: AttrLabelProxy "routeMetric"
settingIPConfigRouteMetric = AttrLabelProxy
settingIPConfigRouteTable :: AttrLabelProxy "routeTable"
settingIPConfigRouteTable = AttrLabelProxy
settingIPConfigRoutes :: AttrLabelProxy "routes"
settingIPConfigRoutes = AttrLabelProxy
#endif
#if defined(ENABLE_OVERLOADING)
type instance O.SignalList SettingIPConfig = SettingIPConfigSignalList
type SettingIPConfigSignalList = ('[ '("notify", GObject.Object.ObjectNotifySignalInfo)] :: [(Symbol, DK.Type)])
#endif
foreign import ccall "nm_setting_ip_config_add_address" nm_setting_ip_config_add_address ::
Ptr SettingIPConfig ->
Ptr NM.IPAddress.IPAddress ->
IO CInt
settingIPConfigAddAddress ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> NM.IPAddress.IPAddress
-> m Bool
settingIPConfigAddAddress :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> IPAddress -> m Bool
settingIPConfigAddAddress a
setting IPAddress
address = IO Bool -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Ptr IPAddress
address' <- IPAddress -> IO (Ptr IPAddress)
forall a. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr a)
unsafeManagedPtrGetPtr IPAddress
address
CInt
result <- Ptr SettingIPConfig -> Ptr IPAddress -> IO CInt
nm_setting_ip_config_add_address Ptr SettingIPConfig
setting' Ptr IPAddress
address'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
IPAddress -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr IPAddress
address
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigAddAddressMethodInfo
instance (signature ~ (NM.IPAddress.IPAddress -> m Bool), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigAddAddressMethodInfo a signature where
overloadedMethod = settingIPConfigAddAddress
instance O.OverloadedMethodInfo SettingIPConfigAddAddressMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigAddAddress",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigAddAddress"
})
#endif
foreign import ccall "nm_setting_ip_config_add_dhcp_reject_server" nm_setting_ip_config_add_dhcp_reject_server ::
Ptr SettingIPConfig ->
CString ->
IO ()
settingIPConfigAddDhcpRejectServer ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> T.Text
-> m ()
settingIPConfigAddDhcpRejectServer :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> Text -> m ()
settingIPConfigAddDhcpRejectServer a
setting Text
server = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CString
server' <- Text -> IO CString
textToCString Text
server
Ptr SettingIPConfig -> CString -> IO ()
nm_setting_ip_config_add_dhcp_reject_server Ptr SettingIPConfig
setting' CString
server'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
server'
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigAddDhcpRejectServerMethodInfo
instance (signature ~ (T.Text -> m ()), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigAddDhcpRejectServerMethodInfo a signature where
overloadedMethod = settingIPConfigAddDhcpRejectServer
instance O.OverloadedMethodInfo SettingIPConfigAddDhcpRejectServerMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigAddDhcpRejectServer",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigAddDhcpRejectServer"
})
#endif
foreign import ccall "nm_setting_ip_config_add_dns" nm_setting_ip_config_add_dns ::
Ptr SettingIPConfig ->
CString ->
IO CInt
settingIPConfigAddDns ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> T.Text
-> m Bool
settingIPConfigAddDns :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> Text -> m Bool
settingIPConfigAddDns a
setting Text
dns = IO Bool -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CString
dns' <- Text -> IO CString
textToCString Text
dns
CInt
result <- Ptr SettingIPConfig -> CString -> IO CInt
nm_setting_ip_config_add_dns Ptr SettingIPConfig
setting' CString
dns'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
dns'
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigAddDnsMethodInfo
instance (signature ~ (T.Text -> m Bool), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigAddDnsMethodInfo a signature where
overloadedMethod = settingIPConfigAddDns
instance O.OverloadedMethodInfo SettingIPConfigAddDnsMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigAddDns",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigAddDns"
})
#endif
foreign import ccall "nm_setting_ip_config_add_dns_option" nm_setting_ip_config_add_dns_option ::
Ptr SettingIPConfig ->
CString ->
IO CInt
settingIPConfigAddDnsOption ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> T.Text
-> m Bool
settingIPConfigAddDnsOption :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> Text -> m Bool
settingIPConfigAddDnsOption a
setting Text
dnsOption = IO Bool -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CString
dnsOption' <- Text -> IO CString
textToCString Text
dnsOption
CInt
result <- Ptr SettingIPConfig -> CString -> IO CInt
nm_setting_ip_config_add_dns_option Ptr SettingIPConfig
setting' CString
dnsOption'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
dnsOption'
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigAddDnsOptionMethodInfo
instance (signature ~ (T.Text -> m Bool), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigAddDnsOptionMethodInfo a signature where
overloadedMethod = settingIPConfigAddDnsOption
instance O.OverloadedMethodInfo SettingIPConfigAddDnsOptionMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigAddDnsOption",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigAddDnsOption"
})
#endif
foreign import ccall "nm_setting_ip_config_add_dns_search" nm_setting_ip_config_add_dns_search ::
Ptr SettingIPConfig ->
CString ->
IO CInt
settingIPConfigAddDnsSearch ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> T.Text
-> m Bool
settingIPConfigAddDnsSearch :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> Text -> m Bool
settingIPConfigAddDnsSearch a
setting Text
dnsSearch = IO Bool -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CString
dnsSearch' <- Text -> IO CString
textToCString Text
dnsSearch
CInt
result <- Ptr SettingIPConfig -> CString -> IO CInt
nm_setting_ip_config_add_dns_search Ptr SettingIPConfig
setting' CString
dnsSearch'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
dnsSearch'
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigAddDnsSearchMethodInfo
instance (signature ~ (T.Text -> m Bool), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigAddDnsSearchMethodInfo a signature where
overloadedMethod = settingIPConfigAddDnsSearch
instance O.OverloadedMethodInfo SettingIPConfigAddDnsSearchMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigAddDnsSearch",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigAddDnsSearch"
})
#endif
foreign import ccall "nm_setting_ip_config_add_route" nm_setting_ip_config_add_route ::
Ptr SettingIPConfig ->
Ptr NM.IPRoute.IPRoute ->
IO CInt
settingIPConfigAddRoute ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> NM.IPRoute.IPRoute
-> m Bool
settingIPConfigAddRoute :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> IPRoute -> m Bool
settingIPConfigAddRoute a
setting IPRoute
route = IO Bool -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Ptr IPRoute
route' <- IPRoute -> IO (Ptr IPRoute)
forall a. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr a)
unsafeManagedPtrGetPtr IPRoute
route
CInt
result <- Ptr SettingIPConfig -> Ptr IPRoute -> IO CInt
nm_setting_ip_config_add_route Ptr SettingIPConfig
setting' Ptr IPRoute
route'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
IPRoute -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr IPRoute
route
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigAddRouteMethodInfo
instance (signature ~ (NM.IPRoute.IPRoute -> m Bool), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigAddRouteMethodInfo a signature where
overloadedMethod = settingIPConfigAddRoute
instance O.OverloadedMethodInfo SettingIPConfigAddRouteMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigAddRoute",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigAddRoute"
})
#endif
foreign import ccall "nm_setting_ip_config_add_routing_rule" nm_setting_ip_config_add_routing_rule ::
Ptr SettingIPConfig ->
Ptr NM.IPRoutingRule.IPRoutingRule ->
IO ()
settingIPConfigAddRoutingRule ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> NM.IPRoutingRule.IPRoutingRule
-> m ()
settingIPConfigAddRoutingRule :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> IPRoutingRule -> m ()
settingIPConfigAddRoutingRule a
setting IPRoutingRule
routingRule = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Ptr IPRoutingRule
routingRule' <- IPRoutingRule -> IO (Ptr IPRoutingRule)
forall a. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr a)
unsafeManagedPtrGetPtr IPRoutingRule
routingRule
Ptr SettingIPConfig -> Ptr IPRoutingRule -> IO ()
nm_setting_ip_config_add_routing_rule Ptr SettingIPConfig
setting' Ptr IPRoutingRule
routingRule'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
IPRoutingRule -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr IPRoutingRule
routingRule
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigAddRoutingRuleMethodInfo
instance (signature ~ (NM.IPRoutingRule.IPRoutingRule -> m ()), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigAddRoutingRuleMethodInfo a signature where
overloadedMethod = settingIPConfigAddRoutingRule
instance O.OverloadedMethodInfo SettingIPConfigAddRoutingRuleMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigAddRoutingRule",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigAddRoutingRule"
})
#endif
foreign import ccall "nm_setting_ip_config_clear_addresses" nm_setting_ip_config_clear_addresses ::
Ptr SettingIPConfig ->
IO ()
settingIPConfigClearAddresses ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> m ()
settingIPConfigClearAddresses :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> m ()
settingIPConfigClearAddresses a
setting = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Ptr SettingIPConfig -> IO ()
nm_setting_ip_config_clear_addresses Ptr SettingIPConfig
setting'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigClearAddressesMethodInfo
instance (signature ~ (m ()), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigClearAddressesMethodInfo a signature where
overloadedMethod = settingIPConfigClearAddresses
instance O.OverloadedMethodInfo SettingIPConfigClearAddressesMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigClearAddresses",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigClearAddresses"
})
#endif
foreign import ccall "nm_setting_ip_config_clear_dhcp_reject_servers" nm_setting_ip_config_clear_dhcp_reject_servers ::
Ptr SettingIPConfig ->
IO ()
settingIPConfigClearDhcpRejectServers ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> m ()
settingIPConfigClearDhcpRejectServers :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> m ()
settingIPConfigClearDhcpRejectServers a
setting = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Ptr SettingIPConfig -> IO ()
nm_setting_ip_config_clear_dhcp_reject_servers Ptr SettingIPConfig
setting'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigClearDhcpRejectServersMethodInfo
instance (signature ~ (m ()), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigClearDhcpRejectServersMethodInfo a signature where
overloadedMethod = settingIPConfigClearDhcpRejectServers
instance O.OverloadedMethodInfo SettingIPConfigClearDhcpRejectServersMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigClearDhcpRejectServers",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigClearDhcpRejectServers"
})
#endif
foreign import ccall "nm_setting_ip_config_clear_dns" nm_setting_ip_config_clear_dns ::
Ptr SettingIPConfig ->
IO ()
settingIPConfigClearDns ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> m ()
settingIPConfigClearDns :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> m ()
settingIPConfigClearDns a
setting = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Ptr SettingIPConfig -> IO ()
nm_setting_ip_config_clear_dns Ptr SettingIPConfig
setting'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigClearDnsMethodInfo
instance (signature ~ (m ()), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigClearDnsMethodInfo a signature where
overloadedMethod = settingIPConfigClearDns
instance O.OverloadedMethodInfo SettingIPConfigClearDnsMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigClearDns",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigClearDns"
})
#endif
foreign import ccall "nm_setting_ip_config_clear_dns_options" nm_setting_ip_config_clear_dns_options ::
Ptr SettingIPConfig ->
CInt ->
IO ()
settingIPConfigClearDnsOptions ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> Bool
-> m ()
settingIPConfigClearDnsOptions :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> Bool -> m ()
settingIPConfigClearDnsOptions a
setting Bool
isSet = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
let isSet' :: CInt
isSet' = (Int -> CInt
forall a b. (Integral a, Num b) => a -> b
P.fromIntegral (Int -> CInt) -> (Bool -> Int) -> Bool -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Bool -> Int
forall a. Enum a => a -> Int
P.fromEnum) Bool
isSet
Ptr SettingIPConfig -> CInt -> IO ()
nm_setting_ip_config_clear_dns_options Ptr SettingIPConfig
setting' CInt
isSet'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigClearDnsOptionsMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigClearDnsOptionsMethodInfo a signature where
overloadedMethod = settingIPConfigClearDnsOptions
instance O.OverloadedMethodInfo SettingIPConfigClearDnsOptionsMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigClearDnsOptions",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigClearDnsOptions"
})
#endif
foreign import ccall "nm_setting_ip_config_clear_dns_searches" nm_setting_ip_config_clear_dns_searches ::
Ptr SettingIPConfig ->
IO ()
settingIPConfigClearDnsSearches ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> m ()
settingIPConfigClearDnsSearches :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> m ()
settingIPConfigClearDnsSearches a
setting = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Ptr SettingIPConfig -> IO ()
nm_setting_ip_config_clear_dns_searches Ptr SettingIPConfig
setting'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigClearDnsSearchesMethodInfo
instance (signature ~ (m ()), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigClearDnsSearchesMethodInfo a signature where
overloadedMethod = settingIPConfigClearDnsSearches
instance O.OverloadedMethodInfo SettingIPConfigClearDnsSearchesMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigClearDnsSearches",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigClearDnsSearches"
})
#endif
foreign import ccall "nm_setting_ip_config_clear_routes" nm_setting_ip_config_clear_routes ::
Ptr SettingIPConfig ->
IO ()
settingIPConfigClearRoutes ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> m ()
settingIPConfigClearRoutes :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> m ()
settingIPConfigClearRoutes a
setting = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Ptr SettingIPConfig -> IO ()
nm_setting_ip_config_clear_routes Ptr SettingIPConfig
setting'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigClearRoutesMethodInfo
instance (signature ~ (m ()), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigClearRoutesMethodInfo a signature where
overloadedMethod = settingIPConfigClearRoutes
instance O.OverloadedMethodInfo SettingIPConfigClearRoutesMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigClearRoutes",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigClearRoutes"
})
#endif
foreign import ccall "nm_setting_ip_config_clear_routing_rules" nm_setting_ip_config_clear_routing_rules ::
Ptr SettingIPConfig ->
IO ()
settingIPConfigClearRoutingRules ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> m ()
settingIPConfigClearRoutingRules :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> m ()
settingIPConfigClearRoutingRules a
setting = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Ptr SettingIPConfig -> IO ()
nm_setting_ip_config_clear_routing_rules Ptr SettingIPConfig
setting'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigClearRoutingRulesMethodInfo
instance (signature ~ (m ()), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigClearRoutingRulesMethodInfo a signature where
overloadedMethod = settingIPConfigClearRoutingRules
instance O.OverloadedMethodInfo SettingIPConfigClearRoutingRulesMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigClearRoutingRules",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigClearRoutingRules"
})
#endif
foreign import ccall "nm_setting_ip_config_get_address" nm_setting_ip_config_get_address ::
Ptr SettingIPConfig ->
Int32 ->
IO (Ptr NM.IPAddress.IPAddress)
settingIPConfigGetAddress ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> Int32
-> m NM.IPAddress.IPAddress
settingIPConfigGetAddress :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> Int32 -> m IPAddress
settingIPConfigGetAddress a
setting Int32
idx = IO IPAddress -> m IPAddress
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO IPAddress -> m IPAddress) -> IO IPAddress -> m IPAddress
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Ptr IPAddress
result <- Ptr SettingIPConfig -> Int32 -> IO (Ptr IPAddress)
nm_setting_ip_config_get_address Ptr SettingIPConfig
setting' Int32
idx
Text -> Ptr IPAddress -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingIPConfigGetAddress" Ptr IPAddress
result
IPAddress
result' <- ((ManagedPtr IPAddress -> IPAddress)
-> Ptr IPAddress -> IO IPAddress
forall a.
(HasCallStack, GBoxed a) =>
(ManagedPtr a -> a) -> Ptr a -> IO a
newBoxed ManagedPtr IPAddress -> IPAddress
NM.IPAddress.IPAddress) Ptr IPAddress
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
IPAddress -> IO IPAddress
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return IPAddress
result'
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigGetAddressMethodInfo
instance (signature ~ (Int32 -> m NM.IPAddress.IPAddress), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigGetAddressMethodInfo a signature where
overloadedMethod = settingIPConfigGetAddress
instance O.OverloadedMethodInfo SettingIPConfigGetAddressMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigGetAddress",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigGetAddress"
})
#endif
foreign import ccall "nm_setting_ip_config_get_auto_route_ext_gw" nm_setting_ip_config_get_auto_route_ext_gw ::
Ptr SettingIPConfig ->
IO CInt
settingIPConfigGetAutoRouteExtGw ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> m NM.Enums.Ternary
settingIPConfigGetAutoRouteExtGw :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> m Ternary
settingIPConfigGetAutoRouteExtGw a
setting = IO Ternary -> m Ternary
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Ternary -> m Ternary) -> IO Ternary -> m Ternary
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CInt
result <- Ptr SettingIPConfig -> IO CInt
nm_setting_ip_config_get_auto_route_ext_gw Ptr SettingIPConfig
setting'
let result' :: Ternary
result' = (Int -> Ternary
forall a. Enum a => Int -> a
toEnum (Int -> Ternary) -> (CInt -> Int) -> CInt -> Ternary
forall b c a. (b -> c) -> (a -> b) -> a -> c
. CInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Ternary -> IO Ternary
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Ternary
result'
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigGetAutoRouteExtGwMethodInfo
instance (signature ~ (m NM.Enums.Ternary), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigGetAutoRouteExtGwMethodInfo a signature where
overloadedMethod = settingIPConfigGetAutoRouteExtGw
instance O.OverloadedMethodInfo SettingIPConfigGetAutoRouteExtGwMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigGetAutoRouteExtGw",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigGetAutoRouteExtGw"
})
#endif
foreign import ccall "nm_setting_ip_config_get_dad_timeout" nm_setting_ip_config_get_dad_timeout ::
Ptr SettingIPConfig ->
IO Int32
settingIPConfigGetDadTimeout ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> m Int32
settingIPConfigGetDadTimeout :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> m Int32
settingIPConfigGetDadTimeout a
setting = IO Int32 -> m Int32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Int32
result <- Ptr SettingIPConfig -> IO Int32
nm_setting_ip_config_get_dad_timeout Ptr SettingIPConfig
setting'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Int32 -> IO Int32
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Int32
result
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigGetDadTimeoutMethodInfo
instance (signature ~ (m Int32), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigGetDadTimeoutMethodInfo a signature where
overloadedMethod = settingIPConfigGetDadTimeout
instance O.OverloadedMethodInfo SettingIPConfigGetDadTimeoutMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigGetDadTimeout",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigGetDadTimeout"
})
#endif
foreign import ccall "nm_setting_ip_config_get_dhcp_dscp" nm_setting_ip_config_get_dhcp_dscp ::
Ptr SettingIPConfig ->
IO CString
settingIPConfigGetDhcpDscp ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> m T.Text
settingIPConfigGetDhcpDscp :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> m Text
settingIPConfigGetDhcpDscp a
setting = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CString
result <- Ptr SettingIPConfig -> IO CString
nm_setting_ip_config_get_dhcp_dscp Ptr SettingIPConfig
setting'
Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingIPConfigGetDhcpDscp" CString
result
Text
result' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Text -> IO Text
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result'
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigGetDhcpDscpMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigGetDhcpDscpMethodInfo a signature where
overloadedMethod = settingIPConfigGetDhcpDscp
instance O.OverloadedMethodInfo SettingIPConfigGetDhcpDscpMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigGetDhcpDscp",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigGetDhcpDscp"
})
#endif
foreign import ccall "nm_setting_ip_config_get_dhcp_hostname" nm_setting_ip_config_get_dhcp_hostname ::
Ptr SettingIPConfig ->
IO CString
settingIPConfigGetDhcpHostname ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> m T.Text
settingIPConfigGetDhcpHostname :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> m Text
settingIPConfigGetDhcpHostname a
setting = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CString
result <- Ptr SettingIPConfig -> IO CString
nm_setting_ip_config_get_dhcp_hostname Ptr SettingIPConfig
setting'
Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingIPConfigGetDhcpHostname" CString
result
Text
result' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Text -> IO Text
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result'
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigGetDhcpHostnameMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigGetDhcpHostnameMethodInfo a signature where
overloadedMethod = settingIPConfigGetDhcpHostname
instance O.OverloadedMethodInfo SettingIPConfigGetDhcpHostnameMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigGetDhcpHostname",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigGetDhcpHostname"
})
#endif
foreign import ccall "nm_setting_ip_config_get_dhcp_hostname_flags" nm_setting_ip_config_get_dhcp_hostname_flags ::
Ptr SettingIPConfig ->
IO CUInt
settingIPConfigGetDhcpHostnameFlags ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> m [NM.Flags.DhcpHostnameFlags]
settingIPConfigGetDhcpHostnameFlags :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> m [DhcpHostnameFlags]
settingIPConfigGetDhcpHostnameFlags a
setting = IO [DhcpHostnameFlags] -> m [DhcpHostnameFlags]
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO [DhcpHostnameFlags] -> m [DhcpHostnameFlags])
-> IO [DhcpHostnameFlags] -> m [DhcpHostnameFlags]
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CUInt
result <- Ptr SettingIPConfig -> IO CUInt
nm_setting_ip_config_get_dhcp_hostname_flags Ptr SettingIPConfig
setting'
let result' :: [DhcpHostnameFlags]
result' = CUInt -> [DhcpHostnameFlags]
forall a b. (Storable a, Integral a, Bits a, IsGFlag b) => a -> [b]
wordToGFlags CUInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
[DhcpHostnameFlags] -> IO [DhcpHostnameFlags]
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return [DhcpHostnameFlags]
result'
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigGetDhcpHostnameFlagsMethodInfo
instance (signature ~ (m [NM.Flags.DhcpHostnameFlags]), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigGetDhcpHostnameFlagsMethodInfo a signature where
overloadedMethod = settingIPConfigGetDhcpHostnameFlags
instance O.OverloadedMethodInfo SettingIPConfigGetDhcpHostnameFlagsMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigGetDhcpHostnameFlags",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigGetDhcpHostnameFlags"
})
#endif
foreign import ccall "nm_setting_ip_config_get_dhcp_iaid" nm_setting_ip_config_get_dhcp_iaid ::
Ptr SettingIPConfig ->
IO CString
settingIPConfigGetDhcpIaid ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> m T.Text
settingIPConfigGetDhcpIaid :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> m Text
settingIPConfigGetDhcpIaid a
setting = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CString
result <- Ptr SettingIPConfig -> IO CString
nm_setting_ip_config_get_dhcp_iaid Ptr SettingIPConfig
setting'
Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingIPConfigGetDhcpIaid" CString
result
Text
result' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Text -> IO Text
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result'
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigGetDhcpIaidMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigGetDhcpIaidMethodInfo a signature where
overloadedMethod = settingIPConfigGetDhcpIaid
instance O.OverloadedMethodInfo SettingIPConfigGetDhcpIaidMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigGetDhcpIaid",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigGetDhcpIaid"
})
#endif
foreign import ccall "nm_setting_ip_config_get_dhcp_reject_servers" nm_setting_ip_config_get_dhcp_reject_servers ::
Ptr SettingIPConfig ->
Ptr Word32 ->
IO (Ptr CString)
settingIPConfigGetDhcpRejectServers ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> m (([T.Text], Word32))
settingIPConfigGetDhcpRejectServers :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> m ([Text], Word32)
settingIPConfigGetDhcpRejectServers a
setting = IO ([Text], Word32) -> m ([Text], Word32)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO ([Text], Word32) -> m ([Text], Word32))
-> IO ([Text], Word32) -> m ([Text], Word32)
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Ptr Word32
outLen <- IO (Ptr Word32)
forall a. Storable a => IO (Ptr a)
allocMem :: IO (Ptr Word32)
Ptr CString
result <- Ptr SettingIPConfig -> Ptr Word32 -> IO (Ptr CString)
nm_setting_ip_config_get_dhcp_reject_servers Ptr SettingIPConfig
setting' Ptr Word32
outLen
Text -> Ptr CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingIPConfigGetDhcpRejectServers" Ptr CString
result
[Text]
result' <- HasCallStack => Ptr CString -> IO [Text]
Ptr CString -> IO [Text]
unpackZeroTerminatedUTF8CArray Ptr CString
result
Word32
outLen' <- Ptr Word32 -> IO Word32
forall a. Storable a => Ptr a -> IO a
peek Ptr Word32
outLen
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Ptr Word32 -> IO ()
forall a. Ptr a -> IO ()
freeMem Ptr Word32
outLen
([Text], Word32) -> IO ([Text], Word32)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ([Text]
result', Word32
outLen')
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigGetDhcpRejectServersMethodInfo
instance (signature ~ (m (([T.Text], Word32))), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigGetDhcpRejectServersMethodInfo a signature where
overloadedMethod = settingIPConfigGetDhcpRejectServers
instance O.OverloadedMethodInfo SettingIPConfigGetDhcpRejectServersMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigGetDhcpRejectServers",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigGetDhcpRejectServers"
})
#endif
foreign import ccall "nm_setting_ip_config_get_dhcp_send_hostname" nm_setting_ip_config_get_dhcp_send_hostname ::
Ptr SettingIPConfig ->
IO CInt
settingIPConfigGetDhcpSendHostname ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> m Bool
settingIPConfigGetDhcpSendHostname :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> m Bool
settingIPConfigGetDhcpSendHostname a
setting = IO Bool -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CInt
result <- Ptr SettingIPConfig -> IO CInt
nm_setting_ip_config_get_dhcp_send_hostname Ptr SettingIPConfig
setting'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigGetDhcpSendHostnameMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigGetDhcpSendHostnameMethodInfo a signature where
overloadedMethod = settingIPConfigGetDhcpSendHostname
instance O.OverloadedMethodInfo SettingIPConfigGetDhcpSendHostnameMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigGetDhcpSendHostname",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigGetDhcpSendHostname"
})
#endif
foreign import ccall "nm_setting_ip_config_get_dhcp_send_release" nm_setting_ip_config_get_dhcp_send_release ::
Ptr SettingIPConfig ->
IO CInt
settingIPConfigGetDhcpSendRelease ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> m NM.Enums.Ternary
settingIPConfigGetDhcpSendRelease :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> m Ternary
settingIPConfigGetDhcpSendRelease a
setting = IO Ternary -> m Ternary
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Ternary -> m Ternary) -> IO Ternary -> m Ternary
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CInt
result <- Ptr SettingIPConfig -> IO CInt
nm_setting_ip_config_get_dhcp_send_release Ptr SettingIPConfig
setting'
let result' :: Ternary
result' = (Int -> Ternary
forall a. Enum a => Int -> a
toEnum (Int -> Ternary) -> (CInt -> Int) -> CInt -> Ternary
forall b c a. (b -> c) -> (a -> b) -> a -> c
. CInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Ternary -> IO Ternary
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Ternary
result'
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigGetDhcpSendReleaseMethodInfo
instance (signature ~ (m NM.Enums.Ternary), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigGetDhcpSendReleaseMethodInfo a signature where
overloadedMethod = settingIPConfigGetDhcpSendRelease
instance O.OverloadedMethodInfo SettingIPConfigGetDhcpSendReleaseMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigGetDhcpSendRelease",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigGetDhcpSendRelease"
})
#endif
foreign import ccall "nm_setting_ip_config_get_dhcp_timeout" nm_setting_ip_config_get_dhcp_timeout ::
Ptr SettingIPConfig ->
IO Int32
settingIPConfigGetDhcpTimeout ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> m Int32
settingIPConfigGetDhcpTimeout :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> m Int32
settingIPConfigGetDhcpTimeout a
setting = IO Int32 -> m Int32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Int32
result <- Ptr SettingIPConfig -> IO Int32
nm_setting_ip_config_get_dhcp_timeout Ptr SettingIPConfig
setting'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Int32 -> IO Int32
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Int32
result
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigGetDhcpTimeoutMethodInfo
instance (signature ~ (m Int32), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigGetDhcpTimeoutMethodInfo a signature where
overloadedMethod = settingIPConfigGetDhcpTimeout
instance O.OverloadedMethodInfo SettingIPConfigGetDhcpTimeoutMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigGetDhcpTimeout",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigGetDhcpTimeout"
})
#endif
foreign import ccall "nm_setting_ip_config_get_dns" nm_setting_ip_config_get_dns ::
Ptr SettingIPConfig ->
Int32 ->
IO CString
settingIPConfigGetDns ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> Int32
-> m T.Text
settingIPConfigGetDns :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> Int32 -> m Text
settingIPConfigGetDns a
setting Int32
idx = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CString
result <- Ptr SettingIPConfig -> Int32 -> IO CString
nm_setting_ip_config_get_dns Ptr SettingIPConfig
setting' Int32
idx
Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingIPConfigGetDns" CString
result
Text
result' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Text -> IO Text
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result'
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigGetDnsMethodInfo
instance (signature ~ (Int32 -> m T.Text), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigGetDnsMethodInfo a signature where
overloadedMethod = settingIPConfigGetDns
instance O.OverloadedMethodInfo SettingIPConfigGetDnsMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigGetDns",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigGetDns"
})
#endif
foreign import ccall "nm_setting_ip_config_get_dns_option" nm_setting_ip_config_get_dns_option ::
Ptr SettingIPConfig ->
Word32 ->
IO CString
settingIPConfigGetDnsOption ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> Word32
-> m T.Text
settingIPConfigGetDnsOption :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> Word32 -> m Text
settingIPConfigGetDnsOption a
setting Word32
idx = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CString
result <- Ptr SettingIPConfig -> Word32 -> IO CString
nm_setting_ip_config_get_dns_option Ptr SettingIPConfig
setting' Word32
idx
Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingIPConfigGetDnsOption" CString
result
Text
result' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Text -> IO Text
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result'
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigGetDnsOptionMethodInfo
instance (signature ~ (Word32 -> m T.Text), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigGetDnsOptionMethodInfo a signature where
overloadedMethod = settingIPConfigGetDnsOption
instance O.OverloadedMethodInfo SettingIPConfigGetDnsOptionMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigGetDnsOption",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigGetDnsOption"
})
#endif
foreign import ccall "nm_setting_ip_config_get_dns_priority" nm_setting_ip_config_get_dns_priority ::
Ptr SettingIPConfig ->
IO Int32
settingIPConfigGetDnsPriority ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> m Int32
settingIPConfigGetDnsPriority :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> m Int32
settingIPConfigGetDnsPriority a
setting = IO Int32 -> m Int32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Int32
result <- Ptr SettingIPConfig -> IO Int32
nm_setting_ip_config_get_dns_priority Ptr SettingIPConfig
setting'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Int32 -> IO Int32
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Int32
result
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigGetDnsPriorityMethodInfo
instance (signature ~ (m Int32), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigGetDnsPriorityMethodInfo a signature where
overloadedMethod = settingIPConfigGetDnsPriority
instance O.OverloadedMethodInfo SettingIPConfigGetDnsPriorityMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigGetDnsPriority",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigGetDnsPriority"
})
#endif
foreign import ccall "nm_setting_ip_config_get_dns_search" nm_setting_ip_config_get_dns_search ::
Ptr SettingIPConfig ->
Int32 ->
IO CString
settingIPConfigGetDnsSearch ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> Int32
-> m T.Text
settingIPConfigGetDnsSearch :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> Int32 -> m Text
settingIPConfigGetDnsSearch a
setting Int32
idx = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CString
result <- Ptr SettingIPConfig -> Int32 -> IO CString
nm_setting_ip_config_get_dns_search Ptr SettingIPConfig
setting' Int32
idx
Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingIPConfigGetDnsSearch" CString
result
Text
result' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Text -> IO Text
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result'
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigGetDnsSearchMethodInfo
instance (signature ~ (Int32 -> m T.Text), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigGetDnsSearchMethodInfo a signature where
overloadedMethod = settingIPConfigGetDnsSearch
instance O.OverloadedMethodInfo SettingIPConfigGetDnsSearchMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigGetDnsSearch",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigGetDnsSearch"
})
#endif
foreign import ccall "nm_setting_ip_config_get_gateway" nm_setting_ip_config_get_gateway ::
Ptr SettingIPConfig ->
IO CString
settingIPConfigGetGateway ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> m T.Text
settingIPConfigGetGateway :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> m Text
settingIPConfigGetGateway a
setting = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CString
result <- Ptr SettingIPConfig -> IO CString
nm_setting_ip_config_get_gateway Ptr SettingIPConfig
setting'
Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingIPConfigGetGateway" CString
result
Text
result' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Text -> IO Text
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result'
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigGetGatewayMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigGetGatewayMethodInfo a signature where
overloadedMethod = settingIPConfigGetGateway
instance O.OverloadedMethodInfo SettingIPConfigGetGatewayMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigGetGateway",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigGetGateway"
})
#endif
foreign import ccall "nm_setting_ip_config_get_ignore_auto_dns" nm_setting_ip_config_get_ignore_auto_dns ::
Ptr SettingIPConfig ->
IO CInt
settingIPConfigGetIgnoreAutoDns ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> m Bool
settingIPConfigGetIgnoreAutoDns :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> m Bool
settingIPConfigGetIgnoreAutoDns a
setting = IO Bool -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CInt
result <- Ptr SettingIPConfig -> IO CInt
nm_setting_ip_config_get_ignore_auto_dns Ptr SettingIPConfig
setting'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigGetIgnoreAutoDnsMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigGetIgnoreAutoDnsMethodInfo a signature where
overloadedMethod = settingIPConfigGetIgnoreAutoDns
instance O.OverloadedMethodInfo SettingIPConfigGetIgnoreAutoDnsMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigGetIgnoreAutoDns",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigGetIgnoreAutoDns"
})
#endif
foreign import ccall "nm_setting_ip_config_get_ignore_auto_routes" nm_setting_ip_config_get_ignore_auto_routes ::
Ptr SettingIPConfig ->
IO CInt
settingIPConfigGetIgnoreAutoRoutes ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> m Bool
settingIPConfigGetIgnoreAutoRoutes :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> m Bool
settingIPConfigGetIgnoreAutoRoutes a
setting = IO Bool -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CInt
result <- Ptr SettingIPConfig -> IO CInt
nm_setting_ip_config_get_ignore_auto_routes Ptr SettingIPConfig
setting'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigGetIgnoreAutoRoutesMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigGetIgnoreAutoRoutesMethodInfo a signature where
overloadedMethod = settingIPConfigGetIgnoreAutoRoutes
instance O.OverloadedMethodInfo SettingIPConfigGetIgnoreAutoRoutesMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigGetIgnoreAutoRoutes",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigGetIgnoreAutoRoutes"
})
#endif
foreign import ccall "nm_setting_ip_config_get_may_fail" nm_setting_ip_config_get_may_fail ::
Ptr SettingIPConfig ->
IO CInt
settingIPConfigGetMayFail ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> m Bool
settingIPConfigGetMayFail :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> m Bool
settingIPConfigGetMayFail a
setting = IO Bool -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CInt
result <- Ptr SettingIPConfig -> IO CInt
nm_setting_ip_config_get_may_fail Ptr SettingIPConfig
setting'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigGetMayFailMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigGetMayFailMethodInfo a signature where
overloadedMethod = settingIPConfigGetMayFail
instance O.OverloadedMethodInfo SettingIPConfigGetMayFailMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigGetMayFail",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigGetMayFail"
})
#endif
foreign import ccall "nm_setting_ip_config_get_method" nm_setting_ip_config_get_method ::
Ptr SettingIPConfig ->
IO CString
settingIPConfigGetMethod ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> m T.Text
settingIPConfigGetMethod :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> m Text
settingIPConfigGetMethod a
setting = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CString
result <- Ptr SettingIPConfig -> IO CString
nm_setting_ip_config_get_method Ptr SettingIPConfig
setting'
Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingIPConfigGetMethod" CString
result
Text
result' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Text -> IO Text
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result'
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigGetMethodMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigGetMethodMethodInfo a signature where
overloadedMethod = settingIPConfigGetMethod
instance O.OverloadedMethodInfo SettingIPConfigGetMethodMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigGetMethod",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigGetMethod"
})
#endif
foreign import ccall "nm_setting_ip_config_get_never_default" nm_setting_ip_config_get_never_default ::
Ptr SettingIPConfig ->
IO CInt
settingIPConfigGetNeverDefault ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> m Bool
settingIPConfigGetNeverDefault :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> m Bool
settingIPConfigGetNeverDefault a
setting = IO Bool -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CInt
result <- Ptr SettingIPConfig -> IO CInt
nm_setting_ip_config_get_never_default Ptr SettingIPConfig
setting'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigGetNeverDefaultMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigGetNeverDefaultMethodInfo a signature where
overloadedMethod = settingIPConfigGetNeverDefault
instance O.OverloadedMethodInfo SettingIPConfigGetNeverDefaultMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigGetNeverDefault",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigGetNeverDefault"
})
#endif
foreign import ccall "nm_setting_ip_config_get_num_addresses" nm_setting_ip_config_get_num_addresses ::
Ptr SettingIPConfig ->
IO Word32
settingIPConfigGetNumAddresses ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> m Word32
settingIPConfigGetNumAddresses :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> m Word32
settingIPConfigGetNumAddresses a
setting = IO Word32 -> m Word32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Word32 -> m Word32) -> IO Word32 -> m Word32
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Word32
result <- Ptr SettingIPConfig -> IO Word32
nm_setting_ip_config_get_num_addresses Ptr SettingIPConfig
setting'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Word32 -> IO Word32
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Word32
result
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigGetNumAddressesMethodInfo
instance (signature ~ (m Word32), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigGetNumAddressesMethodInfo a signature where
overloadedMethod = settingIPConfigGetNumAddresses
instance O.OverloadedMethodInfo SettingIPConfigGetNumAddressesMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigGetNumAddresses",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigGetNumAddresses"
})
#endif
foreign import ccall "nm_setting_ip_config_get_num_dns" nm_setting_ip_config_get_num_dns ::
Ptr SettingIPConfig ->
IO Word32
settingIPConfigGetNumDns ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> m Word32
settingIPConfigGetNumDns :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> m Word32
settingIPConfigGetNumDns a
setting = IO Word32 -> m Word32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Word32 -> m Word32) -> IO Word32 -> m Word32
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Word32
result <- Ptr SettingIPConfig -> IO Word32
nm_setting_ip_config_get_num_dns Ptr SettingIPConfig
setting'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Word32 -> IO Word32
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Word32
result
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigGetNumDnsMethodInfo
instance (signature ~ (m Word32), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigGetNumDnsMethodInfo a signature where
overloadedMethod = settingIPConfigGetNumDns
instance O.OverloadedMethodInfo SettingIPConfigGetNumDnsMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigGetNumDns",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigGetNumDns"
})
#endif
foreign import ccall "nm_setting_ip_config_get_num_dns_options" nm_setting_ip_config_get_num_dns_options ::
Ptr SettingIPConfig ->
IO Word32
settingIPConfigGetNumDnsOptions ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> m Word32
settingIPConfigGetNumDnsOptions :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> m Word32
settingIPConfigGetNumDnsOptions a
setting = IO Word32 -> m Word32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Word32 -> m Word32) -> IO Word32 -> m Word32
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Word32
result <- Ptr SettingIPConfig -> IO Word32
nm_setting_ip_config_get_num_dns_options Ptr SettingIPConfig
setting'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Word32 -> IO Word32
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Word32
result
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigGetNumDnsOptionsMethodInfo
instance (signature ~ (m Word32), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigGetNumDnsOptionsMethodInfo a signature where
overloadedMethod = settingIPConfigGetNumDnsOptions
instance O.OverloadedMethodInfo SettingIPConfigGetNumDnsOptionsMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigGetNumDnsOptions",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigGetNumDnsOptions"
})
#endif
foreign import ccall "nm_setting_ip_config_get_num_dns_searches" nm_setting_ip_config_get_num_dns_searches ::
Ptr SettingIPConfig ->
IO Word32
settingIPConfigGetNumDnsSearches ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> m Word32
settingIPConfigGetNumDnsSearches :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> m Word32
settingIPConfigGetNumDnsSearches a
setting = IO Word32 -> m Word32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Word32 -> m Word32) -> IO Word32 -> m Word32
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Word32
result <- Ptr SettingIPConfig -> IO Word32
nm_setting_ip_config_get_num_dns_searches Ptr SettingIPConfig
setting'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Word32 -> IO Word32
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Word32
result
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigGetNumDnsSearchesMethodInfo
instance (signature ~ (m Word32), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigGetNumDnsSearchesMethodInfo a signature where
overloadedMethod = settingIPConfigGetNumDnsSearches
instance O.OverloadedMethodInfo SettingIPConfigGetNumDnsSearchesMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigGetNumDnsSearches",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigGetNumDnsSearches"
})
#endif
foreign import ccall "nm_setting_ip_config_get_num_routes" nm_setting_ip_config_get_num_routes ::
Ptr SettingIPConfig ->
IO Word32
settingIPConfigGetNumRoutes ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> m Word32
settingIPConfigGetNumRoutes :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> m Word32
settingIPConfigGetNumRoutes a
setting = IO Word32 -> m Word32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Word32 -> m Word32) -> IO Word32 -> m Word32
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Word32
result <- Ptr SettingIPConfig -> IO Word32
nm_setting_ip_config_get_num_routes Ptr SettingIPConfig
setting'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Word32 -> IO Word32
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Word32
result
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigGetNumRoutesMethodInfo
instance (signature ~ (m Word32), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigGetNumRoutesMethodInfo a signature where
overloadedMethod = settingIPConfigGetNumRoutes
instance O.OverloadedMethodInfo SettingIPConfigGetNumRoutesMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigGetNumRoutes",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigGetNumRoutes"
})
#endif
foreign import ccall "nm_setting_ip_config_get_num_routing_rules" nm_setting_ip_config_get_num_routing_rules ::
Ptr SettingIPConfig ->
IO Word32
settingIPConfigGetNumRoutingRules ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> m Word32
settingIPConfigGetNumRoutingRules :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> m Word32
settingIPConfigGetNumRoutingRules a
setting = IO Word32 -> m Word32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Word32 -> m Word32) -> IO Word32 -> m Word32
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Word32
result <- Ptr SettingIPConfig -> IO Word32
nm_setting_ip_config_get_num_routing_rules Ptr SettingIPConfig
setting'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Word32 -> IO Word32
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Word32
result
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigGetNumRoutingRulesMethodInfo
instance (signature ~ (m Word32), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigGetNumRoutingRulesMethodInfo a signature where
overloadedMethod = settingIPConfigGetNumRoutingRules
instance O.OverloadedMethodInfo SettingIPConfigGetNumRoutingRulesMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigGetNumRoutingRules",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigGetNumRoutingRules"
})
#endif
foreign import ccall "nm_setting_ip_config_get_replace_local_rule" nm_setting_ip_config_get_replace_local_rule ::
Ptr SettingIPConfig ->
IO CInt
settingIPConfigGetReplaceLocalRule ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> m NM.Enums.Ternary
settingIPConfigGetReplaceLocalRule :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> m Ternary
settingIPConfigGetReplaceLocalRule a
setting = IO Ternary -> m Ternary
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Ternary -> m Ternary) -> IO Ternary -> m Ternary
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CInt
result <- Ptr SettingIPConfig -> IO CInt
nm_setting_ip_config_get_replace_local_rule Ptr SettingIPConfig
setting'
let result' :: Ternary
result' = (Int -> Ternary
forall a. Enum a => Int -> a
toEnum (Int -> Ternary) -> (CInt -> Int) -> CInt -> Ternary
forall b c a. (b -> c) -> (a -> b) -> a -> c
. CInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Ternary -> IO Ternary
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Ternary
result'
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigGetReplaceLocalRuleMethodInfo
instance (signature ~ (m NM.Enums.Ternary), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigGetReplaceLocalRuleMethodInfo a signature where
overloadedMethod = settingIPConfigGetReplaceLocalRule
instance O.OverloadedMethodInfo SettingIPConfigGetReplaceLocalRuleMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigGetReplaceLocalRule",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigGetReplaceLocalRule"
})
#endif
foreign import ccall "nm_setting_ip_config_get_required_timeout" nm_setting_ip_config_get_required_timeout ::
Ptr SettingIPConfig ->
IO Int32
settingIPConfigGetRequiredTimeout ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> m Int32
settingIPConfigGetRequiredTimeout :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> m Int32
settingIPConfigGetRequiredTimeout a
setting = IO Int32 -> m Int32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Int32
result <- Ptr SettingIPConfig -> IO Int32
nm_setting_ip_config_get_required_timeout Ptr SettingIPConfig
setting'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Int32 -> IO Int32
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Int32
result
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigGetRequiredTimeoutMethodInfo
instance (signature ~ (m Int32), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigGetRequiredTimeoutMethodInfo a signature where
overloadedMethod = settingIPConfigGetRequiredTimeout
instance O.OverloadedMethodInfo SettingIPConfigGetRequiredTimeoutMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigGetRequiredTimeout",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigGetRequiredTimeout"
})
#endif
foreign import ccall "nm_setting_ip_config_get_route" nm_setting_ip_config_get_route ::
Ptr SettingIPConfig ->
Int32 ->
IO (Ptr NM.IPRoute.IPRoute)
settingIPConfigGetRoute ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> Int32
-> m NM.IPRoute.IPRoute
settingIPConfigGetRoute :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> Int32 -> m IPRoute
settingIPConfigGetRoute a
setting Int32
idx = IO IPRoute -> m IPRoute
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO IPRoute -> m IPRoute) -> IO IPRoute -> m IPRoute
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Ptr IPRoute
result <- Ptr SettingIPConfig -> Int32 -> IO (Ptr IPRoute)
nm_setting_ip_config_get_route Ptr SettingIPConfig
setting' Int32
idx
Text -> Ptr IPRoute -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingIPConfigGetRoute" Ptr IPRoute
result
IPRoute
result' <- ((ManagedPtr IPRoute -> IPRoute) -> Ptr IPRoute -> IO IPRoute
forall a.
(HasCallStack, GBoxed a) =>
(ManagedPtr a -> a) -> Ptr a -> IO a
newBoxed ManagedPtr IPRoute -> IPRoute
NM.IPRoute.IPRoute) Ptr IPRoute
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
IPRoute -> IO IPRoute
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return IPRoute
result'
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigGetRouteMethodInfo
instance (signature ~ (Int32 -> m NM.IPRoute.IPRoute), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigGetRouteMethodInfo a signature where
overloadedMethod = settingIPConfigGetRoute
instance O.OverloadedMethodInfo SettingIPConfigGetRouteMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigGetRoute",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigGetRoute"
})
#endif
foreign import ccall "nm_setting_ip_config_get_route_metric" nm_setting_ip_config_get_route_metric ::
Ptr SettingIPConfig ->
IO Int64
settingIPConfigGetRouteMetric ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> m Int64
settingIPConfigGetRouteMetric :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> m Int64
settingIPConfigGetRouteMetric a
setting = IO Int64 -> m Int64
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Int64 -> m Int64) -> IO Int64 -> m Int64
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Int64
result <- Ptr SettingIPConfig -> IO Int64
nm_setting_ip_config_get_route_metric Ptr SettingIPConfig
setting'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Int64 -> IO Int64
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Int64
result
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigGetRouteMetricMethodInfo
instance (signature ~ (m Int64), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigGetRouteMetricMethodInfo a signature where
overloadedMethod = settingIPConfigGetRouteMetric
instance O.OverloadedMethodInfo SettingIPConfigGetRouteMetricMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigGetRouteMetric",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigGetRouteMetric"
})
#endif
foreign import ccall "nm_setting_ip_config_get_route_table" nm_setting_ip_config_get_route_table ::
Ptr SettingIPConfig ->
IO Word32
settingIPConfigGetRouteTable ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> m Word32
settingIPConfigGetRouteTable :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> m Word32
settingIPConfigGetRouteTable a
setting = IO Word32 -> m Word32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Word32 -> m Word32) -> IO Word32 -> m Word32
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Word32
result <- Ptr SettingIPConfig -> IO Word32
nm_setting_ip_config_get_route_table Ptr SettingIPConfig
setting'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Word32 -> IO Word32
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Word32
result
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigGetRouteTableMethodInfo
instance (signature ~ (m Word32), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigGetRouteTableMethodInfo a signature where
overloadedMethod = settingIPConfigGetRouteTable
instance O.OverloadedMethodInfo SettingIPConfigGetRouteTableMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigGetRouteTable",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigGetRouteTable"
})
#endif
foreign import ccall "nm_setting_ip_config_get_routing_rule" nm_setting_ip_config_get_routing_rule ::
Ptr SettingIPConfig ->
Word32 ->
IO (Ptr NM.IPRoutingRule.IPRoutingRule)
settingIPConfigGetRoutingRule ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> Word32
-> m NM.IPRoutingRule.IPRoutingRule
settingIPConfigGetRoutingRule :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> Word32 -> m IPRoutingRule
settingIPConfigGetRoutingRule a
setting Word32
idx = IO IPRoutingRule -> m IPRoutingRule
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO IPRoutingRule -> m IPRoutingRule)
-> IO IPRoutingRule -> m IPRoutingRule
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Ptr IPRoutingRule
result <- Ptr SettingIPConfig -> Word32 -> IO (Ptr IPRoutingRule)
nm_setting_ip_config_get_routing_rule Ptr SettingIPConfig
setting' Word32
idx
Text -> Ptr IPRoutingRule -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingIPConfigGetRoutingRule" Ptr IPRoutingRule
result
IPRoutingRule
result' <- ((ManagedPtr IPRoutingRule -> IPRoutingRule)
-> Ptr IPRoutingRule -> IO IPRoutingRule
forall a.
(HasCallStack, GBoxed a) =>
(ManagedPtr a -> a) -> Ptr a -> IO a
newBoxed ManagedPtr IPRoutingRule -> IPRoutingRule
NM.IPRoutingRule.IPRoutingRule) Ptr IPRoutingRule
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
IPRoutingRule -> IO IPRoutingRule
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return IPRoutingRule
result'
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigGetRoutingRuleMethodInfo
instance (signature ~ (Word32 -> m NM.IPRoutingRule.IPRoutingRule), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigGetRoutingRuleMethodInfo a signature where
overloadedMethod = settingIPConfigGetRoutingRule
instance O.OverloadedMethodInfo SettingIPConfigGetRoutingRuleMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigGetRoutingRule",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigGetRoutingRule"
})
#endif
foreign import ccall "nm_setting_ip_config_has_dns_options" nm_setting_ip_config_has_dns_options ::
Ptr SettingIPConfig ->
IO CInt
settingIPConfigHasDnsOptions ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> m Bool
settingIPConfigHasDnsOptions :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> m Bool
settingIPConfigHasDnsOptions a
setting = IO Bool -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CInt
result <- Ptr SettingIPConfig -> IO CInt
nm_setting_ip_config_has_dns_options Ptr SettingIPConfig
setting'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigHasDnsOptionsMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigHasDnsOptionsMethodInfo a signature where
overloadedMethod = settingIPConfigHasDnsOptions
instance O.OverloadedMethodInfo SettingIPConfigHasDnsOptionsMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigHasDnsOptions",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigHasDnsOptions"
})
#endif
foreign import ccall "nm_setting_ip_config_remove_address" nm_setting_ip_config_remove_address ::
Ptr SettingIPConfig ->
Int32 ->
IO ()
settingIPConfigRemoveAddress ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> Int32
-> m ()
settingIPConfigRemoveAddress :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> Int32 -> m ()
settingIPConfigRemoveAddress a
setting Int32
idx = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Ptr SettingIPConfig -> Int32 -> IO ()
nm_setting_ip_config_remove_address Ptr SettingIPConfig
setting' Int32
idx
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigRemoveAddressMethodInfo
instance (signature ~ (Int32 -> m ()), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigRemoveAddressMethodInfo a signature where
overloadedMethod = settingIPConfigRemoveAddress
instance O.OverloadedMethodInfo SettingIPConfigRemoveAddressMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigRemoveAddress",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigRemoveAddress"
})
#endif
foreign import ccall "nm_setting_ip_config_remove_address_by_value" nm_setting_ip_config_remove_address_by_value ::
Ptr SettingIPConfig ->
Ptr NM.IPAddress.IPAddress ->
IO CInt
settingIPConfigRemoveAddressByValue ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> NM.IPAddress.IPAddress
-> m Bool
settingIPConfigRemoveAddressByValue :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> IPAddress -> m Bool
settingIPConfigRemoveAddressByValue a
setting IPAddress
address = IO Bool -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Ptr IPAddress
address' <- IPAddress -> IO (Ptr IPAddress)
forall a. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr a)
unsafeManagedPtrGetPtr IPAddress
address
CInt
result <- Ptr SettingIPConfig -> Ptr IPAddress -> IO CInt
nm_setting_ip_config_remove_address_by_value Ptr SettingIPConfig
setting' Ptr IPAddress
address'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
IPAddress -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr IPAddress
address
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigRemoveAddressByValueMethodInfo
instance (signature ~ (NM.IPAddress.IPAddress -> m Bool), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigRemoveAddressByValueMethodInfo a signature where
overloadedMethod = settingIPConfigRemoveAddressByValue
instance O.OverloadedMethodInfo SettingIPConfigRemoveAddressByValueMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigRemoveAddressByValue",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigRemoveAddressByValue"
})
#endif
foreign import ccall "nm_setting_ip_config_remove_dhcp_reject_server" nm_setting_ip_config_remove_dhcp_reject_server ::
Ptr SettingIPConfig ->
Word32 ->
IO ()
settingIPConfigRemoveDhcpRejectServer ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> Word32
-> m ()
settingIPConfigRemoveDhcpRejectServer :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> Word32 -> m ()
settingIPConfigRemoveDhcpRejectServer a
setting Word32
idx = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Ptr SettingIPConfig -> Word32 -> IO ()
nm_setting_ip_config_remove_dhcp_reject_server Ptr SettingIPConfig
setting' Word32
idx
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigRemoveDhcpRejectServerMethodInfo
instance (signature ~ (Word32 -> m ()), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigRemoveDhcpRejectServerMethodInfo a signature where
overloadedMethod = settingIPConfigRemoveDhcpRejectServer
instance O.OverloadedMethodInfo SettingIPConfigRemoveDhcpRejectServerMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigRemoveDhcpRejectServer",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigRemoveDhcpRejectServer"
})
#endif
foreign import ccall "nm_setting_ip_config_remove_dns" nm_setting_ip_config_remove_dns ::
Ptr SettingIPConfig ->
Int32 ->
IO ()
settingIPConfigRemoveDns ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> Int32
-> m ()
settingIPConfigRemoveDns :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> Int32 -> m ()
settingIPConfigRemoveDns a
setting Int32
idx = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Ptr SettingIPConfig -> Int32 -> IO ()
nm_setting_ip_config_remove_dns Ptr SettingIPConfig
setting' Int32
idx
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigRemoveDnsMethodInfo
instance (signature ~ (Int32 -> m ()), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigRemoveDnsMethodInfo a signature where
overloadedMethod = settingIPConfigRemoveDns
instance O.OverloadedMethodInfo SettingIPConfigRemoveDnsMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigRemoveDns",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigRemoveDns"
})
#endif
foreign import ccall "nm_setting_ip_config_remove_dns_by_value" nm_setting_ip_config_remove_dns_by_value ::
Ptr SettingIPConfig ->
CString ->
IO CInt
settingIPConfigRemoveDnsByValue ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> T.Text
-> m Bool
settingIPConfigRemoveDnsByValue :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> Text -> m Bool
settingIPConfigRemoveDnsByValue a
setting Text
dns = IO Bool -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CString
dns' <- Text -> IO CString
textToCString Text
dns
CInt
result <- Ptr SettingIPConfig -> CString -> IO CInt
nm_setting_ip_config_remove_dns_by_value Ptr SettingIPConfig
setting' CString
dns'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
dns'
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigRemoveDnsByValueMethodInfo
instance (signature ~ (T.Text -> m Bool), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigRemoveDnsByValueMethodInfo a signature where
overloadedMethod = settingIPConfigRemoveDnsByValue
instance O.OverloadedMethodInfo SettingIPConfigRemoveDnsByValueMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigRemoveDnsByValue",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigRemoveDnsByValue"
})
#endif
foreign import ccall "nm_setting_ip_config_remove_dns_option" nm_setting_ip_config_remove_dns_option ::
Ptr SettingIPConfig ->
Int32 ->
IO ()
settingIPConfigRemoveDnsOption ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> Int32
-> m ()
settingIPConfigRemoveDnsOption :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> Int32 -> m ()
settingIPConfigRemoveDnsOption a
setting Int32
idx = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Ptr SettingIPConfig -> Int32 -> IO ()
nm_setting_ip_config_remove_dns_option Ptr SettingIPConfig
setting' Int32
idx
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigRemoveDnsOptionMethodInfo
instance (signature ~ (Int32 -> m ()), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigRemoveDnsOptionMethodInfo a signature where
overloadedMethod = settingIPConfigRemoveDnsOption
instance O.OverloadedMethodInfo SettingIPConfigRemoveDnsOptionMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigRemoveDnsOption",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigRemoveDnsOption"
})
#endif
foreign import ccall "nm_setting_ip_config_remove_dns_option_by_value" nm_setting_ip_config_remove_dns_option_by_value ::
Ptr SettingIPConfig ->
CString ->
IO CInt
settingIPConfigRemoveDnsOptionByValue ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> T.Text
-> m Bool
settingIPConfigRemoveDnsOptionByValue :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> Text -> m Bool
settingIPConfigRemoveDnsOptionByValue a
setting Text
dnsOption = IO Bool -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CString
dnsOption' <- Text -> IO CString
textToCString Text
dnsOption
CInt
result <- Ptr SettingIPConfig -> CString -> IO CInt
nm_setting_ip_config_remove_dns_option_by_value Ptr SettingIPConfig
setting' CString
dnsOption'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
dnsOption'
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigRemoveDnsOptionByValueMethodInfo
instance (signature ~ (T.Text -> m Bool), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigRemoveDnsOptionByValueMethodInfo a signature where
overloadedMethod = settingIPConfigRemoveDnsOptionByValue
instance O.OverloadedMethodInfo SettingIPConfigRemoveDnsOptionByValueMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigRemoveDnsOptionByValue",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigRemoveDnsOptionByValue"
})
#endif
foreign import ccall "nm_setting_ip_config_remove_dns_search" nm_setting_ip_config_remove_dns_search ::
Ptr SettingIPConfig ->
Int32 ->
IO ()
settingIPConfigRemoveDnsSearch ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> Int32
-> m ()
settingIPConfigRemoveDnsSearch :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> Int32 -> m ()
settingIPConfigRemoveDnsSearch a
setting Int32
idx = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Ptr SettingIPConfig -> Int32 -> IO ()
nm_setting_ip_config_remove_dns_search Ptr SettingIPConfig
setting' Int32
idx
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigRemoveDnsSearchMethodInfo
instance (signature ~ (Int32 -> m ()), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigRemoveDnsSearchMethodInfo a signature where
overloadedMethod = settingIPConfigRemoveDnsSearch
instance O.OverloadedMethodInfo SettingIPConfigRemoveDnsSearchMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigRemoveDnsSearch",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigRemoveDnsSearch"
})
#endif
foreign import ccall "nm_setting_ip_config_remove_dns_search_by_value" nm_setting_ip_config_remove_dns_search_by_value ::
Ptr SettingIPConfig ->
CString ->
IO CInt
settingIPConfigRemoveDnsSearchByValue ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> T.Text
-> m Bool
settingIPConfigRemoveDnsSearchByValue :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> Text -> m Bool
settingIPConfigRemoveDnsSearchByValue a
setting Text
dnsSearch = IO Bool -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CString
dnsSearch' <- Text -> IO CString
textToCString Text
dnsSearch
CInt
result <- Ptr SettingIPConfig -> CString -> IO CInt
nm_setting_ip_config_remove_dns_search_by_value Ptr SettingIPConfig
setting' CString
dnsSearch'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
dnsSearch'
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigRemoveDnsSearchByValueMethodInfo
instance (signature ~ (T.Text -> m Bool), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigRemoveDnsSearchByValueMethodInfo a signature where
overloadedMethod = settingIPConfigRemoveDnsSearchByValue
instance O.OverloadedMethodInfo SettingIPConfigRemoveDnsSearchByValueMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigRemoveDnsSearchByValue",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigRemoveDnsSearchByValue"
})
#endif
foreign import ccall "nm_setting_ip_config_remove_route" nm_setting_ip_config_remove_route ::
Ptr SettingIPConfig ->
Int32 ->
IO ()
settingIPConfigRemoveRoute ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> Int32
-> m ()
settingIPConfigRemoveRoute :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> Int32 -> m ()
settingIPConfigRemoveRoute a
setting Int32
idx = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Ptr SettingIPConfig -> Int32 -> IO ()
nm_setting_ip_config_remove_route Ptr SettingIPConfig
setting' Int32
idx
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigRemoveRouteMethodInfo
instance (signature ~ (Int32 -> m ()), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigRemoveRouteMethodInfo a signature where
overloadedMethod = settingIPConfigRemoveRoute
instance O.OverloadedMethodInfo SettingIPConfigRemoveRouteMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigRemoveRoute",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigRemoveRoute"
})
#endif
foreign import ccall "nm_setting_ip_config_remove_route_by_value" nm_setting_ip_config_remove_route_by_value ::
Ptr SettingIPConfig ->
Ptr NM.IPRoute.IPRoute ->
IO CInt
settingIPConfigRemoveRouteByValue ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> NM.IPRoute.IPRoute
-> m Bool
settingIPConfigRemoveRouteByValue :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> IPRoute -> m Bool
settingIPConfigRemoveRouteByValue a
setting IPRoute
route = IO Bool -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Ptr IPRoute
route' <- IPRoute -> IO (Ptr IPRoute)
forall a. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr a)
unsafeManagedPtrGetPtr IPRoute
route
CInt
result <- Ptr SettingIPConfig -> Ptr IPRoute -> IO CInt
nm_setting_ip_config_remove_route_by_value Ptr SettingIPConfig
setting' Ptr IPRoute
route'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
IPRoute -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr IPRoute
route
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigRemoveRouteByValueMethodInfo
instance (signature ~ (NM.IPRoute.IPRoute -> m Bool), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigRemoveRouteByValueMethodInfo a signature where
overloadedMethod = settingIPConfigRemoveRouteByValue
instance O.OverloadedMethodInfo SettingIPConfigRemoveRouteByValueMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigRemoveRouteByValue",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigRemoveRouteByValue"
})
#endif
foreign import ccall "nm_setting_ip_config_remove_routing_rule" nm_setting_ip_config_remove_routing_rule ::
Ptr SettingIPConfig ->
Word32 ->
IO ()
settingIPConfigRemoveRoutingRule ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a
-> Word32
-> m ()
settingIPConfigRemoveRoutingRule :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingIPConfig a) =>
a -> Word32 -> m ()
settingIPConfigRemoveRoutingRule a
setting Word32
idx = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingIPConfig
setting' <- a -> IO (Ptr SettingIPConfig)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Ptr SettingIPConfig -> Word32 -> IO ()
nm_setting_ip_config_remove_routing_rule Ptr SettingIPConfig
setting' Word32
idx
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data SettingIPConfigRemoveRoutingRuleMethodInfo
instance (signature ~ (Word32 -> m ()), MonadIO m, IsSettingIPConfig a) => O.OverloadedMethod SettingIPConfigRemoveRoutingRuleMethodInfo a signature where
overloadedMethod = settingIPConfigRemoveRoutingRule
instance O.OverloadedMethodInfo SettingIPConfigRemoveRoutingRuleMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingIPConfig.settingIPConfigRemoveRoutingRule",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingIPConfig.html#v:settingIPConfigRemoveRoutingRule"
})
#endif