{-# LANGUAGE TypeApplications #-}
#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.NM.Objects.DeviceOvsBridge
(
DeviceOvsBridge(..) ,
IsDeviceOvsBridge ,
toDeviceOvsBridge ,
#if defined(ENABLE_OVERLOADING)
ResolveDeviceOvsBridgeMethod ,
#endif
#if defined(ENABLE_OVERLOADING)
DeviceOvsBridgeGetSlavesMethodInfo ,
#endif
deviceOvsBridgeGetSlaves ,
#if defined(ENABLE_OVERLOADING)
DeviceOvsBridgeSlavesPropertyInfo ,
#endif
#if defined(ENABLE_OVERLOADING)
deviceOvsBridgeSlaves ,
#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.MainContext as GLib.MainContext
import qualified GI.GLib.Structs.VariantType as GLib.VariantType
import qualified GI.GObject.Objects.Object as GObject.Object
import qualified GI.Gio.Callbacks as Gio.Callbacks
import qualified GI.Gio.Interfaces.AsyncInitable as Gio.AsyncInitable
import qualified GI.Gio.Interfaces.AsyncResult as Gio.AsyncResult
import qualified GI.Gio.Interfaces.Initable as Gio.Initable
import qualified GI.Gio.Objects.Cancellable as Gio.Cancellable
import qualified GI.Gio.Objects.DBusConnection as Gio.DBusConnection
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.ActiveConnection as NM.ActiveConnection
import {-# SOURCE #-} qualified GI.NM.Objects.Checkpoint as NM.Checkpoint
import {-# SOURCE #-} qualified GI.NM.Objects.Client as NM.Client
import {-# SOURCE #-} qualified GI.NM.Objects.Device as NM.Device
import {-# SOURCE #-} qualified GI.NM.Objects.DhcpConfig as NM.DhcpConfig
import {-# SOURCE #-} qualified GI.NM.Objects.IPConfig as NM.IPConfig
import {-# SOURCE #-} qualified GI.NM.Objects.Object as NM.Object
import {-# SOURCE #-} qualified GI.NM.Objects.RemoteConnection as NM.RemoteConnection
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.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.DnsEntry as NM.DnsEntry
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.LldpNeighbor as NM.LldpNeighbor
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.Device as NM.Device
import {-# SOURCE #-} qualified GI.NM.Objects.Object as NM.Object
#endif
newtype DeviceOvsBridge = DeviceOvsBridge (SP.ManagedPtr DeviceOvsBridge)
deriving (DeviceOvsBridge -> DeviceOvsBridge -> Bool
(DeviceOvsBridge -> DeviceOvsBridge -> Bool)
-> (DeviceOvsBridge -> DeviceOvsBridge -> Bool)
-> Eq DeviceOvsBridge
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DeviceOvsBridge -> DeviceOvsBridge -> Bool
== :: DeviceOvsBridge -> DeviceOvsBridge -> Bool
$c/= :: DeviceOvsBridge -> DeviceOvsBridge -> Bool
/= :: DeviceOvsBridge -> DeviceOvsBridge -> Bool
Eq)
instance SP.ManagedPtrNewtype DeviceOvsBridge where
toManagedPtr :: DeviceOvsBridge -> ManagedPtr DeviceOvsBridge
toManagedPtr (DeviceOvsBridge ManagedPtr DeviceOvsBridge
p) = ManagedPtr DeviceOvsBridge
p
foreign import ccall "nm_device_ovs_bridge_get_type"
c_nm_device_ovs_bridge_get_type :: IO B.Types.GType
instance B.Types.TypedObject DeviceOvsBridge where
glibType :: IO GType
glibType = IO GType
c_nm_device_ovs_bridge_get_type
instance B.Types.GObject DeviceOvsBridge
class (SP.GObject o, O.IsDescendantOf DeviceOvsBridge o) => IsDeviceOvsBridge o
instance (SP.GObject o, O.IsDescendantOf DeviceOvsBridge o) => IsDeviceOvsBridge o
instance O.HasParentTypes DeviceOvsBridge
type instance O.ParentTypes DeviceOvsBridge = '[NM.Device.Device, NM.Object.Object, GObject.Object.Object]
toDeviceOvsBridge :: (MIO.MonadIO m, IsDeviceOvsBridge o) => o -> m DeviceOvsBridge
toDeviceOvsBridge :: forall (m :: * -> *) o.
(MonadIO m, IsDeviceOvsBridge o) =>
o -> m DeviceOvsBridge
toDeviceOvsBridge = IO DeviceOvsBridge -> m DeviceOvsBridge
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO DeviceOvsBridge -> m DeviceOvsBridge)
-> (o -> IO DeviceOvsBridge) -> o -> m DeviceOvsBridge
forall b c a. (b -> c) -> (a -> b) -> a -> c
. (ManagedPtr DeviceOvsBridge -> DeviceOvsBridge)
-> o -> IO DeviceOvsBridge
forall o o'.
(HasCallStack, ManagedPtrNewtype o, TypedObject o,
ManagedPtrNewtype o', TypedObject o') =>
(ManagedPtr o' -> o') -> o -> IO o'
B.ManagedPtr.unsafeCastTo ManagedPtr DeviceOvsBridge -> DeviceOvsBridge
DeviceOvsBridge
instance B.GValue.IsGValue (Maybe DeviceOvsBridge) where
gvalueGType_ :: IO GType
gvalueGType_ = IO GType
c_nm_device_ovs_bridge_get_type
gvalueSet_ :: Ptr GValue -> Maybe DeviceOvsBridge -> IO ()
gvalueSet_ Ptr GValue
gv Maybe DeviceOvsBridge
P.Nothing = Ptr GValue -> Ptr DeviceOvsBridge -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv (Ptr DeviceOvsBridge
forall a. Ptr a
FP.nullPtr :: FP.Ptr DeviceOvsBridge)
gvalueSet_ Ptr GValue
gv (P.Just DeviceOvsBridge
obj) = DeviceOvsBridge -> (Ptr DeviceOvsBridge -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
B.ManagedPtr.withManagedPtr DeviceOvsBridge
obj (Ptr GValue -> Ptr DeviceOvsBridge -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv)
gvalueGet_ :: Ptr GValue -> IO (Maybe DeviceOvsBridge)
gvalueGet_ Ptr GValue
gv = do
Ptr DeviceOvsBridge
ptr <- Ptr GValue -> IO (Ptr DeviceOvsBridge)
forall a. GObject a => Ptr GValue -> IO (Ptr a)
B.GValue.get_object Ptr GValue
gv :: IO (FP.Ptr DeviceOvsBridge)
if Ptr DeviceOvsBridge
ptr Ptr DeviceOvsBridge -> Ptr DeviceOvsBridge -> Bool
forall a. Eq a => a -> a -> Bool
/= Ptr DeviceOvsBridge
forall a. Ptr a
FP.nullPtr
then DeviceOvsBridge -> Maybe DeviceOvsBridge
forall a. a -> Maybe a
P.Just (DeviceOvsBridge -> Maybe DeviceOvsBridge)
-> IO DeviceOvsBridge -> IO (Maybe DeviceOvsBridge)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> (ManagedPtr DeviceOvsBridge -> DeviceOvsBridge)
-> Ptr DeviceOvsBridge -> IO DeviceOvsBridge
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
B.ManagedPtr.newObject ManagedPtr DeviceOvsBridge -> DeviceOvsBridge
DeviceOvsBridge Ptr DeviceOvsBridge
ptr
else Maybe DeviceOvsBridge -> IO (Maybe DeviceOvsBridge)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe DeviceOvsBridge
forall a. Maybe a
P.Nothing
#if defined(ENABLE_OVERLOADING)
type family ResolveDeviceOvsBridgeMethod (t :: Symbol) (o :: DK.Type) :: DK.Type where
ResolveDeviceOvsBridgeMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveDeviceOvsBridgeMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveDeviceOvsBridgeMethod "connectionCompatible" o = NM.Device.DeviceConnectionCompatibleMethodInfo
ResolveDeviceOvsBridgeMethod "connectionValid" o = NM.Device.DeviceConnectionValidMethodInfo
ResolveDeviceOvsBridgeMethod "delete" o = NM.Device.DeviceDeleteMethodInfo
ResolveDeviceOvsBridgeMethod "deleteAsync" o = NM.Device.DeviceDeleteAsyncMethodInfo
ResolveDeviceOvsBridgeMethod "deleteFinish" o = NM.Device.DeviceDeleteFinishMethodInfo
ResolveDeviceOvsBridgeMethod "disconnect" o = NM.Device.DeviceDisconnectMethodInfo
ResolveDeviceOvsBridgeMethod "disconnectAsync" o = NM.Device.DeviceDisconnectAsyncMethodInfo
ResolveDeviceOvsBridgeMethod "disconnectFinish" o = NM.Device.DeviceDisconnectFinishMethodInfo
ResolveDeviceOvsBridgeMethod "filterConnections" o = NM.Device.DeviceFilterConnectionsMethodInfo
ResolveDeviceOvsBridgeMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveDeviceOvsBridgeMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveDeviceOvsBridgeMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolveDeviceOvsBridgeMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveDeviceOvsBridgeMethod "isReal" o = NM.Device.DeviceIsRealMethodInfo
ResolveDeviceOvsBridgeMethod "isSoftware" o = NM.Device.DeviceIsSoftwareMethodInfo
ResolveDeviceOvsBridgeMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveDeviceOvsBridgeMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveDeviceOvsBridgeMethod "reapply" o = NM.Device.DeviceReapplyMethodInfo
ResolveDeviceOvsBridgeMethod "reapplyAsync" o = NM.Device.DeviceReapplyAsyncMethodInfo
ResolveDeviceOvsBridgeMethod "reapplyFinish" o = NM.Device.DeviceReapplyFinishMethodInfo
ResolveDeviceOvsBridgeMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveDeviceOvsBridgeMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveDeviceOvsBridgeMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveDeviceOvsBridgeMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveDeviceOvsBridgeMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveDeviceOvsBridgeMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveDeviceOvsBridgeMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveDeviceOvsBridgeMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveDeviceOvsBridgeMethod "getActiveConnection" o = NM.Device.DeviceGetActiveConnectionMethodInfo
ResolveDeviceOvsBridgeMethod "getAppliedConnection" o = NM.Device.DeviceGetAppliedConnectionMethodInfo
ResolveDeviceOvsBridgeMethod "getAppliedConnectionAsync" o = NM.Device.DeviceGetAppliedConnectionAsyncMethodInfo
ResolveDeviceOvsBridgeMethod "getAppliedConnectionFinish" o = NM.Device.DeviceGetAppliedConnectionFinishMethodInfo
ResolveDeviceOvsBridgeMethod "getAutoconnect" o = NM.Device.DeviceGetAutoconnectMethodInfo
ResolveDeviceOvsBridgeMethod "getAvailableConnections" o = NM.Device.DeviceGetAvailableConnectionsMethodInfo
ResolveDeviceOvsBridgeMethod "getCapabilities" o = NM.Device.DeviceGetCapabilitiesMethodInfo
ResolveDeviceOvsBridgeMethod "getClient" o = NM.Object.ObjectGetClientMethodInfo
ResolveDeviceOvsBridgeMethod "getConnectivity" o = NM.Device.DeviceGetConnectivityMethodInfo
ResolveDeviceOvsBridgeMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveDeviceOvsBridgeMethod "getDescription" o = NM.Device.DeviceGetDescriptionMethodInfo
ResolveDeviceOvsBridgeMethod "getDeviceType" o = NM.Device.DeviceGetDeviceTypeMethodInfo
ResolveDeviceOvsBridgeMethod "getDhcp4Config" o = NM.Device.DeviceGetDhcp4ConfigMethodInfo
ResolveDeviceOvsBridgeMethod "getDhcp6Config" o = NM.Device.DeviceGetDhcp6ConfigMethodInfo
ResolveDeviceOvsBridgeMethod "getDriver" o = NM.Device.DeviceGetDriverMethodInfo
ResolveDeviceOvsBridgeMethod "getDriverVersion" o = NM.Device.DeviceGetDriverVersionMethodInfo
ResolveDeviceOvsBridgeMethod "getFirmwareMissing" o = NM.Device.DeviceGetFirmwareMissingMethodInfo
ResolveDeviceOvsBridgeMethod "getFirmwareVersion" o = NM.Device.DeviceGetFirmwareVersionMethodInfo
ResolveDeviceOvsBridgeMethod "getHwAddress" o = NM.Device.DeviceGetHwAddressMethodInfo
ResolveDeviceOvsBridgeMethod "getIface" o = NM.Device.DeviceGetIfaceMethodInfo
ResolveDeviceOvsBridgeMethod "getInterfaceFlags" o = NM.Device.DeviceGetInterfaceFlagsMethodInfo
ResolveDeviceOvsBridgeMethod "getIp4Config" o = NM.Device.DeviceGetIp4ConfigMethodInfo
ResolveDeviceOvsBridgeMethod "getIp6Config" o = NM.Device.DeviceGetIp6ConfigMethodInfo
ResolveDeviceOvsBridgeMethod "getIpIface" o = NM.Device.DeviceGetIpIfaceMethodInfo
ResolveDeviceOvsBridgeMethod "getLldpNeighbors" o = NM.Device.DeviceGetLldpNeighborsMethodInfo
ResolveDeviceOvsBridgeMethod "getManaged" o = NM.Device.DeviceGetManagedMethodInfo
ResolveDeviceOvsBridgeMethod "getMetered" o = NM.Device.DeviceGetMeteredMethodInfo
ResolveDeviceOvsBridgeMethod "getMtu" o = NM.Device.DeviceGetMtuMethodInfo
ResolveDeviceOvsBridgeMethod "getNmPluginMissing" o = NM.Device.DeviceGetNmPluginMissingMethodInfo
ResolveDeviceOvsBridgeMethod "getPath" o = NM.Device.DeviceGetPathMethodInfo
ResolveDeviceOvsBridgeMethod "getPhysicalPortId" o = NM.Device.DeviceGetPhysicalPortIdMethodInfo
ResolveDeviceOvsBridgeMethod "getPorts" o = NM.Device.DeviceGetPortsMethodInfo
ResolveDeviceOvsBridgeMethod "getProduct" o = NM.Device.DeviceGetProductMethodInfo
ResolveDeviceOvsBridgeMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveDeviceOvsBridgeMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveDeviceOvsBridgeMethod "getSettingType" o = NM.Device.DeviceGetSettingTypeMethodInfo
ResolveDeviceOvsBridgeMethod "getSlaves" o = DeviceOvsBridgeGetSlavesMethodInfo
ResolveDeviceOvsBridgeMethod "getState" o = NM.Device.DeviceGetStateMethodInfo
ResolveDeviceOvsBridgeMethod "getStateReason" o = NM.Device.DeviceGetStateReasonMethodInfo
ResolveDeviceOvsBridgeMethod "getTypeDescription" o = NM.Device.DeviceGetTypeDescriptionMethodInfo
ResolveDeviceOvsBridgeMethod "getUdi" o = NM.Device.DeviceGetUdiMethodInfo
ResolveDeviceOvsBridgeMethod "getVendor" o = NM.Device.DeviceGetVendorMethodInfo
ResolveDeviceOvsBridgeMethod "setAutoconnect" o = NM.Device.DeviceSetAutoconnectMethodInfo
ResolveDeviceOvsBridgeMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveDeviceOvsBridgeMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
ResolveDeviceOvsBridgeMethod "setManaged" o = NM.Device.DeviceSetManagedMethodInfo
ResolveDeviceOvsBridgeMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveDeviceOvsBridgeMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveDeviceOvsBridgeMethod t DeviceOvsBridge, O.OverloadedMethod info DeviceOvsBridge p) => OL.IsLabel t (DeviceOvsBridge -> 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 ~ ResolveDeviceOvsBridgeMethod t DeviceOvsBridge, O.OverloadedMethod info DeviceOvsBridge p, R.HasField t DeviceOvsBridge p) => R.HasField t DeviceOvsBridge p where
getField = O.overloadedMethod @info
#endif
instance (info ~ ResolveDeviceOvsBridgeMethod t DeviceOvsBridge, O.OverloadedMethodInfo info DeviceOvsBridge) => OL.IsLabel t (O.MethodProxy info DeviceOvsBridge) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.MethodProxy
#else
fromLabel _ = O.MethodProxy
#endif
#endif
#if defined(ENABLE_OVERLOADING)
data DeviceOvsBridgeSlavesPropertyInfo
instance AttrInfo DeviceOvsBridgeSlavesPropertyInfo where
type AttrAllowedOps DeviceOvsBridgeSlavesPropertyInfo = '[]
type AttrSetTypeConstraint DeviceOvsBridgeSlavesPropertyInfo = (~) ()
type AttrTransferTypeConstraint DeviceOvsBridgeSlavesPropertyInfo = (~) ()
type AttrTransferType DeviceOvsBridgeSlavesPropertyInfo = ()
type AttrBaseTypeConstraint DeviceOvsBridgeSlavesPropertyInfo = (~) ()
type AttrGetType DeviceOvsBridgeSlavesPropertyInfo = ()
type AttrLabel DeviceOvsBridgeSlavesPropertyInfo = ""
type AttrOrigin DeviceOvsBridgeSlavesPropertyInfo = DeviceOvsBridge
attrGet = undefined
attrSet = undefined
attrConstruct = undefined
attrClear = undefined
attrTransfer = undefined
#endif
#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList DeviceOvsBridge
type instance O.AttributeList DeviceOvsBridge = DeviceOvsBridgeAttributeList
type DeviceOvsBridgeAttributeList = ('[ '("activeConnection", NM.Device.DeviceActiveConnectionPropertyInfo), '("autoconnect", NM.Device.DeviceAutoconnectPropertyInfo), '("availableConnections", NM.Device.DeviceAvailableConnectionsPropertyInfo), '("capabilities", NM.Device.DeviceCapabilitiesPropertyInfo), '("client", NM.Object.ObjectClientPropertyInfo), '("deviceType", NM.Device.DeviceDeviceTypePropertyInfo), '("dhcp4Config", NM.Device.DeviceDhcp4ConfigPropertyInfo), '("dhcp6Config", NM.Device.DeviceDhcp6ConfigPropertyInfo), '("driver", NM.Device.DeviceDriverPropertyInfo), '("driverVersion", NM.Device.DeviceDriverVersionPropertyInfo), '("firmwareMissing", NM.Device.DeviceFirmwareMissingPropertyInfo), '("firmwareVersion", NM.Device.DeviceFirmwareVersionPropertyInfo), '("hwAddress", NM.Device.DeviceHwAddressPropertyInfo), '("interface", NM.Device.DeviceInterfacePropertyInfo), '("interfaceFlags", NM.Device.DeviceInterfaceFlagsPropertyInfo), '("ipInterface", NM.Device.DeviceIpInterfacePropertyInfo), '("ip4Config", NM.Device.DeviceIp4ConfigPropertyInfo), '("ip4Connectivity", NM.Device.DeviceIp4ConnectivityPropertyInfo), '("ip6Config", NM.Device.DeviceIp6ConfigPropertyInfo), '("ip6Connectivity", NM.Device.DeviceIp6ConnectivityPropertyInfo), '("lldpNeighbors", NM.Device.DeviceLldpNeighborsPropertyInfo), '("managed", NM.Device.DeviceManagedPropertyInfo), '("metered", NM.Device.DeviceMeteredPropertyInfo), '("mtu", NM.Device.DeviceMtuPropertyInfo), '("nmPluginMissing", NM.Device.DeviceNmPluginMissingPropertyInfo), '("path", NM.Device.DevicePathPropertyInfo), '("physicalPortId", NM.Device.DevicePhysicalPortIdPropertyInfo), '("ports", NM.Device.DevicePortsPropertyInfo), '("product", NM.Device.DeviceProductPropertyInfo), '("real", NM.Device.DeviceRealPropertyInfo), '("slaves", DeviceOvsBridgeSlavesPropertyInfo), '("state", NM.Device.DeviceStatePropertyInfo), '("stateReason", NM.Device.DeviceStateReasonPropertyInfo), '("udi", NM.Device.DeviceUdiPropertyInfo), '("vendor", NM.Device.DeviceVendorPropertyInfo)] :: [(Symbol, DK.Type)])
#endif
#if defined(ENABLE_OVERLOADING)
deviceOvsBridgeSlaves :: AttrLabelProxy "slaves"
deviceOvsBridgeSlaves = AttrLabelProxy
#endif
#if defined(ENABLE_OVERLOADING)
type instance O.SignalList DeviceOvsBridge = DeviceOvsBridgeSignalList
type DeviceOvsBridgeSignalList = ('[ '("notify", GObject.Object.ObjectNotifySignalInfo), '("stateChanged", NM.Device.DeviceStateChangedSignalInfo)] :: [(Symbol, DK.Type)])
#endif
foreign import ccall "nm_device_ovs_bridge_get_slaves" nm_device_ovs_bridge_get_slaves ::
Ptr DeviceOvsBridge ->
IO (Ptr (GPtrArray (Ptr NM.Device.Device)))
{-# DEPRECATED deviceOvsBridgeGetSlaves ["(Since version 1.34)","Use 'GI.NM.Objects.Device.deviceGetPorts' instead."] #-}
deviceOvsBridgeGetSlaves ::
(B.CallStack.HasCallStack, MonadIO m, IsDeviceOvsBridge a) =>
a
-> m [NM.Device.Device]
deviceOvsBridgeGetSlaves :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsDeviceOvsBridge a) =>
a -> m [Device]
deviceOvsBridgeGetSlaves a
device = IO [Device] -> m [Device]
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO [Device] -> m [Device]) -> IO [Device] -> m [Device]
forall a b. (a -> b) -> a -> b
$ do
Ptr DeviceOvsBridge
device' <- a -> IO (Ptr DeviceOvsBridge)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
device
Ptr (GPtrArray (Ptr Device))
result <- Ptr DeviceOvsBridge -> IO (Ptr (GPtrArray (Ptr Device)))
nm_device_ovs_bridge_get_slaves Ptr DeviceOvsBridge
device'
Text -> Ptr (GPtrArray (Ptr Device)) -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"deviceOvsBridgeGetSlaves" Ptr (GPtrArray (Ptr Device))
result
[Ptr Device]
result' <- Ptr (GPtrArray (Ptr Device)) -> IO [Ptr Device]
forall a. Ptr (GPtrArray (Ptr a)) -> IO [Ptr a]
unpackGPtrArray Ptr (GPtrArray (Ptr Device))
result
[Device]
result'' <- (Ptr Device -> IO Device) -> [Ptr Device] -> IO [Device]
forall (t :: * -> *) (m :: * -> *) a b.
(Traversable t, Monad m) =>
(a -> m b) -> t a -> m (t b)
forall (m :: * -> *) a b. Monad m => (a -> m b) -> [a] -> m [b]
mapM ((ManagedPtr Device -> Device) -> Ptr Device -> IO Device
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr Device -> Device
NM.Device.Device) [Ptr Device]
result'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
device
[Device] -> IO [Device]
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return [Device]
result''
#if defined(ENABLE_OVERLOADING)
data DeviceOvsBridgeGetSlavesMethodInfo
instance (signature ~ (m [NM.Device.Device]), MonadIO m, IsDeviceOvsBridge a) => O.OverloadedMethod DeviceOvsBridgeGetSlavesMethodInfo a signature where
overloadedMethod = deviceOvsBridgeGetSlaves
instance O.OverloadedMethodInfo DeviceOvsBridgeGetSlavesMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.DeviceOvsBridge.deviceOvsBridgeGetSlaves",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-DeviceOvsBridge.html#v:deviceOvsBridgeGetSlaves"
})
#endif