{-# LANGUAGE TypeApplications #-}
#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.NM.Objects.SettingInfiniband
(
SettingInfiniband(..) ,
IsSettingInfiniband ,
toSettingInfiniband ,
#if defined(ENABLE_OVERLOADING)
ResolveSettingInfinibandMethod ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingInfinibandGetMacAddressMethodInfo,
#endif
settingInfinibandGetMacAddress ,
#if defined(ENABLE_OVERLOADING)
SettingInfinibandGetMtuMethodInfo ,
#endif
settingInfinibandGetMtu ,
#if defined(ENABLE_OVERLOADING)
SettingInfinibandGetPKeyMethodInfo ,
#endif
settingInfinibandGetPKey ,
#if defined(ENABLE_OVERLOADING)
SettingInfinibandGetParentMethodInfo ,
#endif
settingInfinibandGetParent ,
#if defined(ENABLE_OVERLOADING)
SettingInfinibandGetTransportModeMethodInfo,
#endif
settingInfinibandGetTransportMode ,
#if defined(ENABLE_OVERLOADING)
SettingInfinibandGetVirtualInterfaceNameMethodInfo,
#endif
settingInfinibandGetVirtualInterfaceName,
settingInfinibandNew ,
#if defined(ENABLE_OVERLOADING)
SettingInfinibandMacAddressPropertyInfo ,
#endif
clearSettingInfinibandMacAddress ,
constructSettingInfinibandMacAddress ,
getSettingInfinibandMacAddress ,
setSettingInfinibandMacAddress ,
#if defined(ENABLE_OVERLOADING)
settingInfinibandMacAddress ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingInfinibandMtuPropertyInfo ,
#endif
constructSettingInfinibandMtu ,
getSettingInfinibandMtu ,
setSettingInfinibandMtu ,
#if defined(ENABLE_OVERLOADING)
settingInfinibandMtu ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingInfinibandPKeyPropertyInfo ,
#endif
constructSettingInfinibandPKey ,
getSettingInfinibandPKey ,
setSettingInfinibandPKey ,
#if defined(ENABLE_OVERLOADING)
settingInfinibandPKey ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingInfinibandParentPropertyInfo ,
#endif
clearSettingInfinibandParent ,
constructSettingInfinibandParent ,
getSettingInfinibandParent ,
setSettingInfinibandParent ,
#if defined(ENABLE_OVERLOADING)
settingInfinibandParent ,
#endif
#if defined(ENABLE_OVERLOADING)
SettingInfinibandTransportModePropertyInfo,
#endif
clearSettingInfinibandTransportMode ,
constructSettingInfinibandTransportMode ,
getSettingInfinibandTransportMode ,
setSettingInfinibandTransportMode ,
#if defined(ENABLE_OVERLOADING)
settingInfinibandTransportMode ,
#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.SettingIPConfig as NM.SettingIPConfig
import {-# SOURCE #-} qualified GI.NM.Objects.SettingIPTunnel as NM.SettingIPTunnel
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.Objects.Setting as NM.Setting
#endif
newtype SettingInfiniband = SettingInfiniband (SP.ManagedPtr SettingInfiniband)
deriving (SettingInfiniband -> SettingInfiniband -> Bool
(SettingInfiniband -> SettingInfiniband -> Bool)
-> (SettingInfiniband -> SettingInfiniband -> Bool)
-> Eq SettingInfiniband
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SettingInfiniband -> SettingInfiniband -> Bool
== :: SettingInfiniband -> SettingInfiniband -> Bool
$c/= :: SettingInfiniband -> SettingInfiniband -> Bool
/= :: SettingInfiniband -> SettingInfiniband -> Bool
Eq)
instance SP.ManagedPtrNewtype SettingInfiniband where
toManagedPtr :: SettingInfiniband -> ManagedPtr SettingInfiniband
toManagedPtr (SettingInfiniband ManagedPtr SettingInfiniband
p) = ManagedPtr SettingInfiniband
p
foreign import ccall "nm_setting_infiniband_get_type"
c_nm_setting_infiniband_get_type :: IO B.Types.GType
instance B.Types.TypedObject SettingInfiniband where
glibType :: IO GType
glibType = IO GType
c_nm_setting_infiniband_get_type
instance B.Types.GObject SettingInfiniband
class (SP.GObject o, O.IsDescendantOf SettingInfiniband o) => IsSettingInfiniband o
instance (SP.GObject o, O.IsDescendantOf SettingInfiniband o) => IsSettingInfiniband o
instance O.HasParentTypes SettingInfiniband
type instance O.ParentTypes SettingInfiniband = '[NM.Setting.Setting, GObject.Object.Object]
toSettingInfiniband :: (MIO.MonadIO m, IsSettingInfiniband o) => o -> m SettingInfiniband
toSettingInfiniband :: forall (m :: * -> *) o.
(MonadIO m, IsSettingInfiniband o) =>
o -> m SettingInfiniband
toSettingInfiniband = IO SettingInfiniband -> m SettingInfiniband
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO SettingInfiniband -> m SettingInfiniband)
-> (o -> IO SettingInfiniband) -> o -> m SettingInfiniband
forall b c a. (b -> c) -> (a -> b) -> a -> c
. (ManagedPtr SettingInfiniband -> SettingInfiniband)
-> o -> IO SettingInfiniband
forall o o'.
(HasCallStack, ManagedPtrNewtype o, TypedObject o,
ManagedPtrNewtype o', TypedObject o') =>
(ManagedPtr o' -> o') -> o -> IO o'
B.ManagedPtr.unsafeCastTo ManagedPtr SettingInfiniband -> SettingInfiniband
SettingInfiniband
instance B.GValue.IsGValue (Maybe SettingInfiniband) where
gvalueGType_ :: IO GType
gvalueGType_ = IO GType
c_nm_setting_infiniband_get_type
gvalueSet_ :: Ptr GValue -> Maybe SettingInfiniband -> IO ()
gvalueSet_ Ptr GValue
gv Maybe SettingInfiniband
P.Nothing = Ptr GValue -> Ptr SettingInfiniband -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv (Ptr SettingInfiniband
forall a. Ptr a
FP.nullPtr :: FP.Ptr SettingInfiniband)
gvalueSet_ Ptr GValue
gv (P.Just SettingInfiniband
obj) = SettingInfiniband -> (Ptr SettingInfiniband -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
B.ManagedPtr.withManagedPtr SettingInfiniband
obj (Ptr GValue -> Ptr SettingInfiniband -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv)
gvalueGet_ :: Ptr GValue -> IO (Maybe SettingInfiniband)
gvalueGet_ Ptr GValue
gv = do
Ptr SettingInfiniband
ptr <- Ptr GValue -> IO (Ptr SettingInfiniband)
forall a. GObject a => Ptr GValue -> IO (Ptr a)
B.GValue.get_object Ptr GValue
gv :: IO (FP.Ptr SettingInfiniband)
if Ptr SettingInfiniband
ptr Ptr SettingInfiniband -> Ptr SettingInfiniband -> Bool
forall a. Eq a => a -> a -> Bool
/= Ptr SettingInfiniband
forall a. Ptr a
FP.nullPtr
then SettingInfiniband -> Maybe SettingInfiniband
forall a. a -> Maybe a
P.Just (SettingInfiniband -> Maybe SettingInfiniband)
-> IO SettingInfiniband -> IO (Maybe SettingInfiniband)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> (ManagedPtr SettingInfiniband -> SettingInfiniband)
-> Ptr SettingInfiniband -> IO SettingInfiniband
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
B.ManagedPtr.newObject ManagedPtr SettingInfiniband -> SettingInfiniband
SettingInfiniband Ptr SettingInfiniband
ptr
else Maybe SettingInfiniband -> IO (Maybe SettingInfiniband)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe SettingInfiniband
forall a. Maybe a
P.Nothing
#if defined(ENABLE_OVERLOADING)
type family ResolveSettingInfinibandMethod (t :: Symbol) (o :: DK.Type) :: DK.Type where
ResolveSettingInfinibandMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveSettingInfinibandMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveSettingInfinibandMethod "compare" o = NM.Setting.SettingCompareMethodInfo
ResolveSettingInfinibandMethod "diff" o = NM.Setting.SettingDiffMethodInfo
ResolveSettingInfinibandMethod "duplicate" o = NM.Setting.SettingDuplicateMethodInfo
ResolveSettingInfinibandMethod "enumerateValues" o = NM.Setting.SettingEnumerateValuesMethodInfo
ResolveSettingInfinibandMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveSettingInfinibandMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveSettingInfinibandMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolveSettingInfinibandMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveSettingInfinibandMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveSettingInfinibandMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveSettingInfinibandMethod "optionClearByName" o = NM.Setting.SettingOptionClearByNameMethodInfo
ResolveSettingInfinibandMethod "optionGet" o = NM.Setting.SettingOptionGetMethodInfo
ResolveSettingInfinibandMethod "optionGetAllNames" o = NM.Setting.SettingOptionGetAllNamesMethodInfo
ResolveSettingInfinibandMethod "optionGetBoolean" o = NM.Setting.SettingOptionGetBooleanMethodInfo
ResolveSettingInfinibandMethod "optionGetUint32" o = NM.Setting.SettingOptionGetUint32MethodInfo
ResolveSettingInfinibandMethod "optionSet" o = NM.Setting.SettingOptionSetMethodInfo
ResolveSettingInfinibandMethod "optionSetBoolean" o = NM.Setting.SettingOptionSetBooleanMethodInfo
ResolveSettingInfinibandMethod "optionSetUint32" o = NM.Setting.SettingOptionSetUint32MethodInfo
ResolveSettingInfinibandMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveSettingInfinibandMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveSettingInfinibandMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveSettingInfinibandMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveSettingInfinibandMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveSettingInfinibandMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveSettingInfinibandMethod "toString" o = NM.Setting.SettingToStringMethodInfo
ResolveSettingInfinibandMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveSettingInfinibandMethod "verify" o = NM.Setting.SettingVerifyMethodInfo
ResolveSettingInfinibandMethod "verifySecrets" o = NM.Setting.SettingVerifySecretsMethodInfo
ResolveSettingInfinibandMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveSettingInfinibandMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveSettingInfinibandMethod "getDbusPropertyType" o = NM.Setting.SettingGetDbusPropertyTypeMethodInfo
ResolveSettingInfinibandMethod "getMacAddress" o = SettingInfinibandGetMacAddressMethodInfo
ResolveSettingInfinibandMethod "getMtu" o = SettingInfinibandGetMtuMethodInfo
ResolveSettingInfinibandMethod "getName" o = NM.Setting.SettingGetNameMethodInfo
ResolveSettingInfinibandMethod "getPKey" o = SettingInfinibandGetPKeyMethodInfo
ResolveSettingInfinibandMethod "getParent" o = SettingInfinibandGetParentMethodInfo
ResolveSettingInfinibandMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveSettingInfinibandMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveSettingInfinibandMethod "getSecretFlags" o = NM.Setting.SettingGetSecretFlagsMethodInfo
ResolveSettingInfinibandMethod "getTransportMode" o = SettingInfinibandGetTransportModeMethodInfo
ResolveSettingInfinibandMethod "getVirtualInterfaceName" o = SettingInfinibandGetVirtualInterfaceNameMethodInfo
ResolveSettingInfinibandMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveSettingInfinibandMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
ResolveSettingInfinibandMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveSettingInfinibandMethod "setSecretFlags" o = NM.Setting.SettingSetSecretFlagsMethodInfo
ResolveSettingInfinibandMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveSettingInfinibandMethod t SettingInfiniband, O.OverloadedMethod info SettingInfiniband p) => OL.IsLabel t (SettingInfiniband -> 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 ~ ResolveSettingInfinibandMethod t SettingInfiniband, O.OverloadedMethod info SettingInfiniband p, R.HasField t SettingInfiniband p) => R.HasField t SettingInfiniband p where
getField = O.overloadedMethod @info
#endif
instance (info ~ ResolveSettingInfinibandMethod t SettingInfiniband, O.OverloadedMethodInfo info SettingInfiniband) => OL.IsLabel t (O.MethodProxy info SettingInfiniband) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.MethodProxy
#else
fromLabel _ = O.MethodProxy
#endif
#endif
getSettingInfinibandMacAddress :: (MonadIO m, IsSettingInfiniband o) => o -> m T.Text
getSettingInfinibandMacAddress :: forall (m :: * -> *) o.
(MonadIO m, IsSettingInfiniband o) =>
o -> m Text
getSettingInfinibandMacAddress 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
"getSettingInfinibandMacAddress" (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
"mac-address"
setSettingInfinibandMacAddress :: (MonadIO m, IsSettingInfiniband o) => o -> T.Text -> m ()
setSettingInfinibandMacAddress :: forall (m :: * -> *) o.
(MonadIO m, IsSettingInfiniband o) =>
o -> Text -> m ()
setSettingInfinibandMacAddress 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
"mac-address" (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
val)
constructSettingInfinibandMacAddress :: (IsSettingInfiniband o, MIO.MonadIO m) => T.Text -> m (GValueConstruct o)
constructSettingInfinibandMacAddress :: forall o (m :: * -> *).
(IsSettingInfiniband o, MonadIO m) =>
Text -> m (GValueConstruct o)
constructSettingInfinibandMacAddress 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
"mac-address" (Text -> Maybe Text
forall a. a -> Maybe a
P.Just Text
val)
clearSettingInfinibandMacAddress :: (MonadIO m, IsSettingInfiniband o) => o -> m ()
clearSettingInfinibandMacAddress :: forall (m :: * -> *) o.
(MonadIO m, IsSettingInfiniband o) =>
o -> m ()
clearSettingInfinibandMacAddress 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
"mac-address" (Maybe Text
forall a. Maybe a
Nothing :: Maybe T.Text)
#if defined(ENABLE_OVERLOADING)
data SettingInfinibandMacAddressPropertyInfo
instance AttrInfo SettingInfinibandMacAddressPropertyInfo where
type AttrAllowedOps SettingInfinibandMacAddressPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint SettingInfinibandMacAddressPropertyInfo = IsSettingInfiniband
type AttrSetTypeConstraint SettingInfinibandMacAddressPropertyInfo = (~) T.Text
type AttrTransferTypeConstraint SettingInfinibandMacAddressPropertyInfo = (~) T.Text
type AttrTransferType SettingInfinibandMacAddressPropertyInfo = T.Text
type AttrGetType SettingInfinibandMacAddressPropertyInfo = T.Text
type AttrLabel SettingInfinibandMacAddressPropertyInfo = "mac-address"
type AttrOrigin SettingInfinibandMacAddressPropertyInfo = SettingInfiniband
attrGet = getSettingInfinibandMacAddress
attrSet = setSettingInfinibandMacAddress
attrTransfer _ v = do
return v
attrConstruct = constructSettingInfinibandMacAddress
attrClear = clearSettingInfinibandMacAddress
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingInfiniband.macAddress"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingInfiniband.html#g:attr:macAddress"
})
#endif
getSettingInfinibandMtu :: (MonadIO m, IsSettingInfiniband o) => o -> m Word32
getSettingInfinibandMtu :: forall (m :: * -> *) o.
(MonadIO m, IsSettingInfiniband o) =>
o -> m Word32
getSettingInfinibandMtu 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
"mtu"
setSettingInfinibandMtu :: (MonadIO m, IsSettingInfiniband o) => o -> Word32 -> m ()
setSettingInfinibandMtu :: forall (m :: * -> *) o.
(MonadIO m, IsSettingInfiniband o) =>
o -> Word32 -> m ()
setSettingInfinibandMtu 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
"mtu" Word32
val
constructSettingInfinibandMtu :: (IsSettingInfiniband o, MIO.MonadIO m) => Word32 -> m (GValueConstruct o)
constructSettingInfinibandMtu :: forall o (m :: * -> *).
(IsSettingInfiniband o, MonadIO m) =>
Word32 -> m (GValueConstruct o)
constructSettingInfinibandMtu 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
"mtu" Word32
val
#if defined(ENABLE_OVERLOADING)
data SettingInfinibandMtuPropertyInfo
instance AttrInfo SettingInfinibandMtuPropertyInfo where
type AttrAllowedOps SettingInfinibandMtuPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint SettingInfinibandMtuPropertyInfo = IsSettingInfiniband
type AttrSetTypeConstraint SettingInfinibandMtuPropertyInfo = (~) Word32
type AttrTransferTypeConstraint SettingInfinibandMtuPropertyInfo = (~) Word32
type AttrTransferType SettingInfinibandMtuPropertyInfo = Word32
type AttrGetType SettingInfinibandMtuPropertyInfo = Word32
type AttrLabel SettingInfinibandMtuPropertyInfo = "mtu"
type AttrOrigin SettingInfinibandMtuPropertyInfo = SettingInfiniband
attrGet = getSettingInfinibandMtu
attrSet = setSettingInfinibandMtu
attrTransfer _ v = do
return v
attrConstruct = constructSettingInfinibandMtu
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingInfiniband.mtu"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingInfiniband.html#g:attr:mtu"
})
#endif
getSettingInfinibandPKey :: (MonadIO m, IsSettingInfiniband o) => o -> m Int32
getSettingInfinibandPKey :: forall (m :: * -> *) o.
(MonadIO m, IsSettingInfiniband o) =>
o -> m Int32
getSettingInfinibandPKey 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
"p-key"
setSettingInfinibandPKey :: (MonadIO m, IsSettingInfiniband o) => o -> Int32 -> m ()
setSettingInfinibandPKey :: forall (m :: * -> *) o.
(MonadIO m, IsSettingInfiniband o) =>
o -> Int32 -> m ()
setSettingInfinibandPKey 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
"p-key" Int32
val
constructSettingInfinibandPKey :: (IsSettingInfiniband o, MIO.MonadIO m) => Int32 -> m (GValueConstruct o)
constructSettingInfinibandPKey :: forall o (m :: * -> *).
(IsSettingInfiniband o, MonadIO m) =>
Int32 -> m (GValueConstruct o)
constructSettingInfinibandPKey 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
"p-key" Int32
val
#if defined(ENABLE_OVERLOADING)
data SettingInfinibandPKeyPropertyInfo
instance AttrInfo SettingInfinibandPKeyPropertyInfo where
type AttrAllowedOps SettingInfinibandPKeyPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint SettingInfinibandPKeyPropertyInfo = IsSettingInfiniband
type AttrSetTypeConstraint SettingInfinibandPKeyPropertyInfo = (~) Int32
type AttrTransferTypeConstraint SettingInfinibandPKeyPropertyInfo = (~) Int32
type AttrTransferType SettingInfinibandPKeyPropertyInfo = Int32
type AttrGetType SettingInfinibandPKeyPropertyInfo = Int32
type AttrLabel SettingInfinibandPKeyPropertyInfo = "p-key"
type AttrOrigin SettingInfinibandPKeyPropertyInfo = SettingInfiniband
attrGet = getSettingInfinibandPKey
attrSet = setSettingInfinibandPKey
attrTransfer _ v = do
return v
attrConstruct = constructSettingInfinibandPKey
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingInfiniband.pKey"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingInfiniband.html#g:attr:pKey"
})
#endif
getSettingInfinibandParent :: (MonadIO m, IsSettingInfiniband o) => o -> m T.Text
getSettingInfinibandParent :: forall (m :: * -> *) o.
(MonadIO m, IsSettingInfiniband o) =>
o -> m Text
getSettingInfinibandParent 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
"getSettingInfinibandParent" (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
"parent"
setSettingInfinibandParent :: (MonadIO m, IsSettingInfiniband o) => o -> T.Text -> m ()
setSettingInfinibandParent :: forall (m :: * -> *) o.
(MonadIO m, IsSettingInfiniband o) =>
o -> Text -> m ()
setSettingInfinibandParent 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
"parent" (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
val)
constructSettingInfinibandParent :: (IsSettingInfiniband o, MIO.MonadIO m) => T.Text -> m (GValueConstruct o)
constructSettingInfinibandParent :: forall o (m :: * -> *).
(IsSettingInfiniband o, MonadIO m) =>
Text -> m (GValueConstruct o)
constructSettingInfinibandParent 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
"parent" (Text -> Maybe Text
forall a. a -> Maybe a
P.Just Text
val)
clearSettingInfinibandParent :: (MonadIO m, IsSettingInfiniband o) => o -> m ()
clearSettingInfinibandParent :: forall (m :: * -> *) o.
(MonadIO m, IsSettingInfiniband o) =>
o -> m ()
clearSettingInfinibandParent 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
"parent" (Maybe Text
forall a. Maybe a
Nothing :: Maybe T.Text)
#if defined(ENABLE_OVERLOADING)
data SettingInfinibandParentPropertyInfo
instance AttrInfo SettingInfinibandParentPropertyInfo where
type AttrAllowedOps SettingInfinibandParentPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint SettingInfinibandParentPropertyInfo = IsSettingInfiniband
type AttrSetTypeConstraint SettingInfinibandParentPropertyInfo = (~) T.Text
type AttrTransferTypeConstraint SettingInfinibandParentPropertyInfo = (~) T.Text
type AttrTransferType SettingInfinibandParentPropertyInfo = T.Text
type AttrGetType SettingInfinibandParentPropertyInfo = T.Text
type AttrLabel SettingInfinibandParentPropertyInfo = "parent"
type AttrOrigin SettingInfinibandParentPropertyInfo = SettingInfiniband
attrGet = getSettingInfinibandParent
attrSet = setSettingInfinibandParent
attrTransfer _ v = do
return v
attrConstruct = constructSettingInfinibandParent
attrClear = clearSettingInfinibandParent
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingInfiniband.parent"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingInfiniband.html#g:attr:parent"
})
#endif
getSettingInfinibandTransportMode :: (MonadIO m, IsSettingInfiniband o) => o -> m T.Text
getSettingInfinibandTransportMode :: forall (m :: * -> *) o.
(MonadIO m, IsSettingInfiniband o) =>
o -> m Text
getSettingInfinibandTransportMode 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
"getSettingInfinibandTransportMode" (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
"transport-mode"
setSettingInfinibandTransportMode :: (MonadIO m, IsSettingInfiniband o) => o -> T.Text -> m ()
setSettingInfinibandTransportMode :: forall (m :: * -> *) o.
(MonadIO m, IsSettingInfiniband o) =>
o -> Text -> m ()
setSettingInfinibandTransportMode 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
"transport-mode" (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
val)
constructSettingInfinibandTransportMode :: (IsSettingInfiniband o, MIO.MonadIO m) => T.Text -> m (GValueConstruct o)
constructSettingInfinibandTransportMode :: forall o (m :: * -> *).
(IsSettingInfiniband o, MonadIO m) =>
Text -> m (GValueConstruct o)
constructSettingInfinibandTransportMode 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
"transport-mode" (Text -> Maybe Text
forall a. a -> Maybe a
P.Just Text
val)
clearSettingInfinibandTransportMode :: (MonadIO m, IsSettingInfiniband o) => o -> m ()
clearSettingInfinibandTransportMode :: forall (m :: * -> *) o.
(MonadIO m, IsSettingInfiniband o) =>
o -> m ()
clearSettingInfinibandTransportMode 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
"transport-mode" (Maybe Text
forall a. Maybe a
Nothing :: Maybe T.Text)
#if defined(ENABLE_OVERLOADING)
data SettingInfinibandTransportModePropertyInfo
instance AttrInfo SettingInfinibandTransportModePropertyInfo where
type AttrAllowedOps SettingInfinibandTransportModePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint SettingInfinibandTransportModePropertyInfo = IsSettingInfiniband
type AttrSetTypeConstraint SettingInfinibandTransportModePropertyInfo = (~) T.Text
type AttrTransferTypeConstraint SettingInfinibandTransportModePropertyInfo = (~) T.Text
type AttrTransferType SettingInfinibandTransportModePropertyInfo = T.Text
type AttrGetType SettingInfinibandTransportModePropertyInfo = T.Text
type AttrLabel SettingInfinibandTransportModePropertyInfo = "transport-mode"
type AttrOrigin SettingInfinibandTransportModePropertyInfo = SettingInfiniband
attrGet = getSettingInfinibandTransportMode
attrSet = setSettingInfinibandTransportMode
attrTransfer _ v = do
return v
attrConstruct = constructSettingInfinibandTransportMode
attrClear = clearSettingInfinibandTransportMode
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingInfiniband.transportMode"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingInfiniband.html#g:attr:transportMode"
})
#endif
#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList SettingInfiniband
type instance O.AttributeList SettingInfiniband = SettingInfinibandAttributeList
type SettingInfinibandAttributeList = ('[ '("macAddress", SettingInfinibandMacAddressPropertyInfo), '("mtu", SettingInfinibandMtuPropertyInfo), '("name", NM.Setting.SettingNamePropertyInfo), '("pKey", SettingInfinibandPKeyPropertyInfo), '("parent", SettingInfinibandParentPropertyInfo), '("transportMode", SettingInfinibandTransportModePropertyInfo)] :: [(Symbol, DK.Type)])
#endif
#if defined(ENABLE_OVERLOADING)
settingInfinibandMacAddress :: AttrLabelProxy "macAddress"
settingInfinibandMacAddress = AttrLabelProxy
settingInfinibandMtu :: AttrLabelProxy "mtu"
settingInfinibandMtu = AttrLabelProxy
settingInfinibandPKey :: AttrLabelProxy "pKey"
settingInfinibandPKey = AttrLabelProxy
settingInfinibandParent :: AttrLabelProxy "parent"
settingInfinibandParent = AttrLabelProxy
settingInfinibandTransportMode :: AttrLabelProxy "transportMode"
settingInfinibandTransportMode = AttrLabelProxy
#endif
#if defined(ENABLE_OVERLOADING)
type instance O.SignalList SettingInfiniband = SettingInfinibandSignalList
type SettingInfinibandSignalList = ('[ '("notify", GObject.Object.ObjectNotifySignalInfo)] :: [(Symbol, DK.Type)])
#endif
foreign import ccall "nm_setting_infiniband_new" nm_setting_infiniband_new ::
IO (Ptr SettingInfiniband)
settingInfinibandNew ::
(B.CallStack.HasCallStack, MonadIO m) =>
m SettingInfiniband
settingInfinibandNew :: forall (m :: * -> *).
(HasCallStack, MonadIO m) =>
m SettingInfiniband
settingInfinibandNew = IO SettingInfiniband -> m SettingInfiniband
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SettingInfiniband -> m SettingInfiniband)
-> IO SettingInfiniband -> m SettingInfiniband
forall a b. (a -> b) -> a -> b
$ do
Ptr SettingInfiniband
result <- IO (Ptr SettingInfiniband)
nm_setting_infiniband_new
Text -> Ptr SettingInfiniband -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingInfinibandNew" Ptr SettingInfiniband
result
SettingInfiniband
result' <- ((ManagedPtr SettingInfiniband -> SettingInfiniband)
-> Ptr SettingInfiniband -> IO SettingInfiniband
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
wrapObject ManagedPtr SettingInfiniband -> SettingInfiniband
SettingInfiniband) Ptr SettingInfiniband
result
SettingInfiniband -> IO SettingInfiniband
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return SettingInfiniband
result'
#if defined(ENABLE_OVERLOADING)
#endif
foreign import ccall "nm_setting_infiniband_get_mac_address" nm_setting_infiniband_get_mac_address ::
Ptr SettingInfiniband ->
IO CString
settingInfinibandGetMacAddress ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingInfiniband a) =>
a
-> m T.Text
settingInfinibandGetMacAddress :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingInfiniband a) =>
a -> m Text
settingInfinibandGetMacAddress 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 SettingInfiniband
setting' <- a -> IO (Ptr SettingInfiniband)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CString
result <- Ptr SettingInfiniband -> IO CString
nm_setting_infiniband_get_mac_address Ptr SettingInfiniband
setting'
Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingInfinibandGetMacAddress" 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 SettingInfinibandGetMacAddressMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsSettingInfiniband a) => O.OverloadedMethod SettingInfinibandGetMacAddressMethodInfo a signature where
overloadedMethod = settingInfinibandGetMacAddress
instance O.OverloadedMethodInfo SettingInfinibandGetMacAddressMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingInfiniband.settingInfinibandGetMacAddress",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingInfiniband.html#v:settingInfinibandGetMacAddress"
})
#endif
foreign import ccall "nm_setting_infiniband_get_mtu" nm_setting_infiniband_get_mtu ::
Ptr SettingInfiniband ->
IO Word32
settingInfinibandGetMtu ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingInfiniband a) =>
a
-> m Word32
settingInfinibandGetMtu :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingInfiniband a) =>
a -> m Word32
settingInfinibandGetMtu 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 SettingInfiniband
setting' <- a -> IO (Ptr SettingInfiniband)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Word32
result <- Ptr SettingInfiniband -> IO Word32
nm_setting_infiniband_get_mtu Ptr SettingInfiniband
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 SettingInfinibandGetMtuMethodInfo
instance (signature ~ (m Word32), MonadIO m, IsSettingInfiniband a) => O.OverloadedMethod SettingInfinibandGetMtuMethodInfo a signature where
overloadedMethod = settingInfinibandGetMtu
instance O.OverloadedMethodInfo SettingInfinibandGetMtuMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingInfiniband.settingInfinibandGetMtu",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingInfiniband.html#v:settingInfinibandGetMtu"
})
#endif
foreign import ccall "nm_setting_infiniband_get_p_key" nm_setting_infiniband_get_p_key ::
Ptr SettingInfiniband ->
IO Int32
settingInfinibandGetPKey ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingInfiniband a) =>
a
-> m Int32
settingInfinibandGetPKey :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingInfiniband a) =>
a -> m Int32
settingInfinibandGetPKey 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 SettingInfiniband
setting' <- a -> IO (Ptr SettingInfiniband)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
Int32
result <- Ptr SettingInfiniband -> IO Int32
nm_setting_infiniband_get_p_key Ptr SettingInfiniband
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 SettingInfinibandGetPKeyMethodInfo
instance (signature ~ (m Int32), MonadIO m, IsSettingInfiniband a) => O.OverloadedMethod SettingInfinibandGetPKeyMethodInfo a signature where
overloadedMethod = settingInfinibandGetPKey
instance O.OverloadedMethodInfo SettingInfinibandGetPKeyMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingInfiniband.settingInfinibandGetPKey",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingInfiniband.html#v:settingInfinibandGetPKey"
})
#endif
foreign import ccall "nm_setting_infiniband_get_parent" nm_setting_infiniband_get_parent ::
Ptr SettingInfiniband ->
IO CString
settingInfinibandGetParent ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingInfiniband a) =>
a
-> m T.Text
settingInfinibandGetParent :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingInfiniband a) =>
a -> m Text
settingInfinibandGetParent 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 SettingInfiniband
setting' <- a -> IO (Ptr SettingInfiniband)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CString
result <- Ptr SettingInfiniband -> IO CString
nm_setting_infiniband_get_parent Ptr SettingInfiniband
setting'
Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingInfinibandGetParent" 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 SettingInfinibandGetParentMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsSettingInfiniband a) => O.OverloadedMethod SettingInfinibandGetParentMethodInfo a signature where
overloadedMethod = settingInfinibandGetParent
instance O.OverloadedMethodInfo SettingInfinibandGetParentMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingInfiniband.settingInfinibandGetParent",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingInfiniband.html#v:settingInfinibandGetParent"
})
#endif
foreign import ccall "nm_setting_infiniband_get_transport_mode" nm_setting_infiniband_get_transport_mode ::
Ptr SettingInfiniband ->
IO CString
settingInfinibandGetTransportMode ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingInfiniband a) =>
a
-> m T.Text
settingInfinibandGetTransportMode :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingInfiniband a) =>
a -> m Text
settingInfinibandGetTransportMode 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 SettingInfiniband
setting' <- a -> IO (Ptr SettingInfiniband)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CString
result <- Ptr SettingInfiniband -> IO CString
nm_setting_infiniband_get_transport_mode Ptr SettingInfiniband
setting'
Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingInfinibandGetTransportMode" 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 SettingInfinibandGetTransportModeMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsSettingInfiniband a) => O.OverloadedMethod SettingInfinibandGetTransportModeMethodInfo a signature where
overloadedMethod = settingInfinibandGetTransportMode
instance O.OverloadedMethodInfo SettingInfinibandGetTransportModeMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingInfiniband.settingInfinibandGetTransportMode",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingInfiniband.html#v:settingInfinibandGetTransportMode"
})
#endif
foreign import ccall "nm_setting_infiniband_get_virtual_interface_name" nm_setting_infiniband_get_virtual_interface_name ::
Ptr SettingInfiniband ->
IO CString
settingInfinibandGetVirtualInterfaceName ::
(B.CallStack.HasCallStack, MonadIO m, IsSettingInfiniband a) =>
a
-> m T.Text
settingInfinibandGetVirtualInterfaceName :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingInfiniband a) =>
a -> m Text
settingInfinibandGetVirtualInterfaceName 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 SettingInfiniband
setting' <- a -> IO (Ptr SettingInfiniband)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
CString
result <- Ptr SettingInfiniband -> IO CString
nm_setting_infiniband_get_virtual_interface_name Ptr SettingInfiniband
setting'
Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingInfinibandGetVirtualInterfaceName" 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 SettingInfinibandGetVirtualInterfaceNameMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsSettingInfiniband a) => O.OverloadedMethod SettingInfinibandGetVirtualInterfaceNameMethodInfo a signature where
overloadedMethod = settingInfinibandGetVirtualInterfaceName
instance O.OverloadedMethodInfo SettingInfinibandGetVirtualInterfaceNameMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.SettingInfiniband.settingInfinibandGetVirtualInterfaceName",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingInfiniband.html#v:settingInfinibandGetVirtualInterfaceName"
})
#endif