{-# LANGUAGE TypeApplications #-}
#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.NM.Objects.DeviceMacvlan
(
DeviceMacvlan(..) ,
IsDeviceMacvlan ,
toDeviceMacvlan ,
#if defined(ENABLE_OVERLOADING)
ResolveDeviceMacvlanMethod ,
#endif
#if defined(ENABLE_OVERLOADING)
DeviceMacvlanGetModeMethodInfo ,
#endif
deviceMacvlanGetMode ,
#if defined(ENABLE_OVERLOADING)
DeviceMacvlanGetNoPromiscMethodInfo ,
#endif
deviceMacvlanGetNoPromisc ,
#if defined(ENABLE_OVERLOADING)
DeviceMacvlanGetParentMethodInfo ,
#endif
deviceMacvlanGetParent ,
#if defined(ENABLE_OVERLOADING)
DeviceMacvlanGetTapMethodInfo ,
#endif
deviceMacvlanGetTap ,
#if defined(ENABLE_OVERLOADING)
DeviceMacvlanModePropertyInfo ,
#endif
#if defined(ENABLE_OVERLOADING)
deviceMacvlanMode ,
#endif
getDeviceMacvlanMode ,
#if defined(ENABLE_OVERLOADING)
DeviceMacvlanNoPromiscPropertyInfo ,
#endif
#if defined(ENABLE_OVERLOADING)
deviceMacvlanNoPromisc ,
#endif
getDeviceMacvlanNoPromisc ,
#if defined(ENABLE_OVERLOADING)
DeviceMacvlanParentPropertyInfo ,
#endif
#if defined(ENABLE_OVERLOADING)
deviceMacvlanParent ,
#endif
getDeviceMacvlanParent ,
#if defined(ENABLE_OVERLOADING)
DeviceMacvlanTapPropertyInfo ,
#endif
#if defined(ENABLE_OVERLOADING)
deviceMacvlanTap ,
#endif
getDeviceMacvlanTap ,
) 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 DeviceMacvlan = DeviceMacvlan (SP.ManagedPtr DeviceMacvlan)
deriving (DeviceMacvlan -> DeviceMacvlan -> Bool
(DeviceMacvlan -> DeviceMacvlan -> Bool)
-> (DeviceMacvlan -> DeviceMacvlan -> Bool) -> Eq DeviceMacvlan
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DeviceMacvlan -> DeviceMacvlan -> Bool
== :: DeviceMacvlan -> DeviceMacvlan -> Bool
$c/= :: DeviceMacvlan -> DeviceMacvlan -> Bool
/= :: DeviceMacvlan -> DeviceMacvlan -> Bool
Eq)
instance SP.ManagedPtrNewtype DeviceMacvlan where
toManagedPtr :: DeviceMacvlan -> ManagedPtr DeviceMacvlan
toManagedPtr (DeviceMacvlan ManagedPtr DeviceMacvlan
p) = ManagedPtr DeviceMacvlan
p
foreign import ccall "nm_device_macvlan_get_type"
c_nm_device_macvlan_get_type :: IO B.Types.GType
instance B.Types.TypedObject DeviceMacvlan where
glibType :: IO GType
glibType = IO GType
c_nm_device_macvlan_get_type
instance B.Types.GObject DeviceMacvlan
class (SP.GObject o, O.IsDescendantOf DeviceMacvlan o) => IsDeviceMacvlan o
instance (SP.GObject o, O.IsDescendantOf DeviceMacvlan o) => IsDeviceMacvlan o
instance O.HasParentTypes DeviceMacvlan
type instance O.ParentTypes DeviceMacvlan = '[NM.Device.Device, NM.Object.Object, GObject.Object.Object]
toDeviceMacvlan :: (MIO.MonadIO m, IsDeviceMacvlan o) => o -> m DeviceMacvlan
toDeviceMacvlan :: forall (m :: * -> *) o.
(MonadIO m, IsDeviceMacvlan o) =>
o -> m DeviceMacvlan
toDeviceMacvlan = IO DeviceMacvlan -> m DeviceMacvlan
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO DeviceMacvlan -> m DeviceMacvlan)
-> (o -> IO DeviceMacvlan) -> o -> m DeviceMacvlan
forall b c a. (b -> c) -> (a -> b) -> a -> c
. (ManagedPtr DeviceMacvlan -> DeviceMacvlan)
-> o -> IO DeviceMacvlan
forall o o'.
(HasCallStack, ManagedPtrNewtype o, TypedObject o,
ManagedPtrNewtype o', TypedObject o') =>
(ManagedPtr o' -> o') -> o -> IO o'
B.ManagedPtr.unsafeCastTo ManagedPtr DeviceMacvlan -> DeviceMacvlan
DeviceMacvlan
instance B.GValue.IsGValue (Maybe DeviceMacvlan) where
gvalueGType_ :: IO GType
gvalueGType_ = IO GType
c_nm_device_macvlan_get_type
gvalueSet_ :: Ptr GValue -> Maybe DeviceMacvlan -> IO ()
gvalueSet_ Ptr GValue
gv Maybe DeviceMacvlan
P.Nothing = Ptr GValue -> Ptr DeviceMacvlan -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv (Ptr DeviceMacvlan
forall a. Ptr a
FP.nullPtr :: FP.Ptr DeviceMacvlan)
gvalueSet_ Ptr GValue
gv (P.Just DeviceMacvlan
obj) = DeviceMacvlan -> (Ptr DeviceMacvlan -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
B.ManagedPtr.withManagedPtr DeviceMacvlan
obj (Ptr GValue -> Ptr DeviceMacvlan -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv)
gvalueGet_ :: Ptr GValue -> IO (Maybe DeviceMacvlan)
gvalueGet_ Ptr GValue
gv = do
Ptr DeviceMacvlan
ptr <- Ptr GValue -> IO (Ptr DeviceMacvlan)
forall a. GObject a => Ptr GValue -> IO (Ptr a)
B.GValue.get_object Ptr GValue
gv :: IO (FP.Ptr DeviceMacvlan)
if Ptr DeviceMacvlan
ptr Ptr DeviceMacvlan -> Ptr DeviceMacvlan -> Bool
forall a. Eq a => a -> a -> Bool
/= Ptr DeviceMacvlan
forall a. Ptr a
FP.nullPtr
then DeviceMacvlan -> Maybe DeviceMacvlan
forall a. a -> Maybe a
P.Just (DeviceMacvlan -> Maybe DeviceMacvlan)
-> IO DeviceMacvlan -> IO (Maybe DeviceMacvlan)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> (ManagedPtr DeviceMacvlan -> DeviceMacvlan)
-> Ptr DeviceMacvlan -> IO DeviceMacvlan
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
B.ManagedPtr.newObject ManagedPtr DeviceMacvlan -> DeviceMacvlan
DeviceMacvlan Ptr DeviceMacvlan
ptr
else Maybe DeviceMacvlan -> IO (Maybe DeviceMacvlan)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe DeviceMacvlan
forall a. Maybe a
P.Nothing
#if defined(ENABLE_OVERLOADING)
type family ResolveDeviceMacvlanMethod (t :: Symbol) (o :: DK.Type) :: DK.Type where
ResolveDeviceMacvlanMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveDeviceMacvlanMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveDeviceMacvlanMethod "connectionCompatible" o = NM.Device.DeviceConnectionCompatibleMethodInfo
ResolveDeviceMacvlanMethod "connectionValid" o = NM.Device.DeviceConnectionValidMethodInfo
ResolveDeviceMacvlanMethod "delete" o = NM.Device.DeviceDeleteMethodInfo
ResolveDeviceMacvlanMethod "deleteAsync" o = NM.Device.DeviceDeleteAsyncMethodInfo
ResolveDeviceMacvlanMethod "deleteFinish" o = NM.Device.DeviceDeleteFinishMethodInfo
ResolveDeviceMacvlanMethod "disconnect" o = NM.Device.DeviceDisconnectMethodInfo
ResolveDeviceMacvlanMethod "disconnectAsync" o = NM.Device.DeviceDisconnectAsyncMethodInfo
ResolveDeviceMacvlanMethod "disconnectFinish" o = NM.Device.DeviceDisconnectFinishMethodInfo
ResolveDeviceMacvlanMethod "filterConnections" o = NM.Device.DeviceFilterConnectionsMethodInfo
ResolveDeviceMacvlanMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveDeviceMacvlanMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveDeviceMacvlanMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolveDeviceMacvlanMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveDeviceMacvlanMethod "isReal" o = NM.Device.DeviceIsRealMethodInfo
ResolveDeviceMacvlanMethod "isSoftware" o = NM.Device.DeviceIsSoftwareMethodInfo
ResolveDeviceMacvlanMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveDeviceMacvlanMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveDeviceMacvlanMethod "reapply" o = NM.Device.DeviceReapplyMethodInfo
ResolveDeviceMacvlanMethod "reapplyAsync" o = NM.Device.DeviceReapplyAsyncMethodInfo
ResolveDeviceMacvlanMethod "reapplyFinish" o = NM.Device.DeviceReapplyFinishMethodInfo
ResolveDeviceMacvlanMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveDeviceMacvlanMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveDeviceMacvlanMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveDeviceMacvlanMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveDeviceMacvlanMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveDeviceMacvlanMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveDeviceMacvlanMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveDeviceMacvlanMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveDeviceMacvlanMethod "getActiveConnection" o = NM.Device.DeviceGetActiveConnectionMethodInfo
ResolveDeviceMacvlanMethod "getAppliedConnection" o = NM.Device.DeviceGetAppliedConnectionMethodInfo
ResolveDeviceMacvlanMethod "getAppliedConnectionAsync" o = NM.Device.DeviceGetAppliedConnectionAsyncMethodInfo
ResolveDeviceMacvlanMethod "getAppliedConnectionFinish" o = NM.Device.DeviceGetAppliedConnectionFinishMethodInfo
ResolveDeviceMacvlanMethod "getAutoconnect" o = NM.Device.DeviceGetAutoconnectMethodInfo
ResolveDeviceMacvlanMethod "getAvailableConnections" o = NM.Device.DeviceGetAvailableConnectionsMethodInfo
ResolveDeviceMacvlanMethod "getCapabilities" o = NM.Device.DeviceGetCapabilitiesMethodInfo
ResolveDeviceMacvlanMethod "getClient" o = NM.Object.ObjectGetClientMethodInfo
ResolveDeviceMacvlanMethod "getConnectivity" o = NM.Device.DeviceGetConnectivityMethodInfo
ResolveDeviceMacvlanMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveDeviceMacvlanMethod "getDescription" o = NM.Device.DeviceGetDescriptionMethodInfo
ResolveDeviceMacvlanMethod "getDeviceType" o = NM.Device.DeviceGetDeviceTypeMethodInfo
ResolveDeviceMacvlanMethod "getDhcp4Config" o = NM.Device.DeviceGetDhcp4ConfigMethodInfo
ResolveDeviceMacvlanMethod "getDhcp6Config" o = NM.Device.DeviceGetDhcp6ConfigMethodInfo
ResolveDeviceMacvlanMethod "getDriver" o = NM.Device.DeviceGetDriverMethodInfo
ResolveDeviceMacvlanMethod "getDriverVersion" o = NM.Device.DeviceGetDriverVersionMethodInfo
ResolveDeviceMacvlanMethod "getFirmwareMissing" o = NM.Device.DeviceGetFirmwareMissingMethodInfo
ResolveDeviceMacvlanMethod "getFirmwareVersion" o = NM.Device.DeviceGetFirmwareVersionMethodInfo
ResolveDeviceMacvlanMethod "getHwAddress" o = NM.Device.DeviceGetHwAddressMethodInfo
ResolveDeviceMacvlanMethod "getIface" o = NM.Device.DeviceGetIfaceMethodInfo
ResolveDeviceMacvlanMethod "getInterfaceFlags" o = NM.Device.DeviceGetInterfaceFlagsMethodInfo
ResolveDeviceMacvlanMethod "getIp4Config" o = NM.Device.DeviceGetIp4ConfigMethodInfo
ResolveDeviceMacvlanMethod "getIp6Config" o = NM.Device.DeviceGetIp6ConfigMethodInfo
ResolveDeviceMacvlanMethod "getIpIface" o = NM.Device.DeviceGetIpIfaceMethodInfo
ResolveDeviceMacvlanMethod "getLldpNeighbors" o = NM.Device.DeviceGetLldpNeighborsMethodInfo
ResolveDeviceMacvlanMethod "getManaged" o = NM.Device.DeviceGetManagedMethodInfo
ResolveDeviceMacvlanMethod "getMetered" o = NM.Device.DeviceGetMeteredMethodInfo
ResolveDeviceMacvlanMethod "getMode" o = DeviceMacvlanGetModeMethodInfo
ResolveDeviceMacvlanMethod "getMtu" o = NM.Device.DeviceGetMtuMethodInfo
ResolveDeviceMacvlanMethod "getNmPluginMissing" o = NM.Device.DeviceGetNmPluginMissingMethodInfo
ResolveDeviceMacvlanMethod "getNoPromisc" o = DeviceMacvlanGetNoPromiscMethodInfo
ResolveDeviceMacvlanMethod "getParent" o = DeviceMacvlanGetParentMethodInfo
ResolveDeviceMacvlanMethod "getPath" o = NM.Device.DeviceGetPathMethodInfo
ResolveDeviceMacvlanMethod "getPhysicalPortId" o = NM.Device.DeviceGetPhysicalPortIdMethodInfo
ResolveDeviceMacvlanMethod "getPorts" o = NM.Device.DeviceGetPortsMethodInfo
ResolveDeviceMacvlanMethod "getProduct" o = NM.Device.DeviceGetProductMethodInfo
ResolveDeviceMacvlanMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveDeviceMacvlanMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveDeviceMacvlanMethod "getSettingType" o = NM.Device.DeviceGetSettingTypeMethodInfo
ResolveDeviceMacvlanMethod "getState" o = NM.Device.DeviceGetStateMethodInfo
ResolveDeviceMacvlanMethod "getStateReason" o = NM.Device.DeviceGetStateReasonMethodInfo
ResolveDeviceMacvlanMethod "getTap" o = DeviceMacvlanGetTapMethodInfo
ResolveDeviceMacvlanMethod "getTypeDescription" o = NM.Device.DeviceGetTypeDescriptionMethodInfo
ResolveDeviceMacvlanMethod "getUdi" o = NM.Device.DeviceGetUdiMethodInfo
ResolveDeviceMacvlanMethod "getVendor" o = NM.Device.DeviceGetVendorMethodInfo
ResolveDeviceMacvlanMethod "setAutoconnect" o = NM.Device.DeviceSetAutoconnectMethodInfo
ResolveDeviceMacvlanMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveDeviceMacvlanMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
ResolveDeviceMacvlanMethod "setManaged" o = NM.Device.DeviceSetManagedMethodInfo
ResolveDeviceMacvlanMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveDeviceMacvlanMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveDeviceMacvlanMethod t DeviceMacvlan, O.OverloadedMethod info DeviceMacvlan p) => OL.IsLabel t (DeviceMacvlan -> 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 ~ ResolveDeviceMacvlanMethod t DeviceMacvlan, O.OverloadedMethod info DeviceMacvlan p, R.HasField t DeviceMacvlan p) => R.HasField t DeviceMacvlan p where
getField = O.overloadedMethod @info
#endif
instance (info ~ ResolveDeviceMacvlanMethod t DeviceMacvlan, O.OverloadedMethodInfo info DeviceMacvlan) => OL.IsLabel t (O.MethodProxy info DeviceMacvlan) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.MethodProxy
#else
fromLabel _ = O.MethodProxy
#endif
#endif
getDeviceMacvlanMode :: (MonadIO m, IsDeviceMacvlan o) => o -> m T.Text
getDeviceMacvlanMode :: forall (m :: * -> *) o.
(MonadIO m, IsDeviceMacvlan o) =>
o -> m Text
getDeviceMacvlanMode 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
"getDeviceMacvlanMode" (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
"mode"
#if defined(ENABLE_OVERLOADING)
data DeviceMacvlanModePropertyInfo
instance AttrInfo DeviceMacvlanModePropertyInfo where
type AttrAllowedOps DeviceMacvlanModePropertyInfo = '[ 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint DeviceMacvlanModePropertyInfo = IsDeviceMacvlan
type AttrSetTypeConstraint DeviceMacvlanModePropertyInfo = (~) ()
type AttrTransferTypeConstraint DeviceMacvlanModePropertyInfo = (~) ()
type AttrTransferType DeviceMacvlanModePropertyInfo = ()
type AttrGetType DeviceMacvlanModePropertyInfo = T.Text
type AttrLabel DeviceMacvlanModePropertyInfo = "mode"
type AttrOrigin DeviceMacvlanModePropertyInfo = DeviceMacvlan
attrGet = getDeviceMacvlanMode
attrSet = undefined
attrTransfer _ = undefined
attrConstruct = undefined
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.DeviceMacvlan.mode"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-DeviceMacvlan.html#g:attr:mode"
})
#endif
getDeviceMacvlanNoPromisc :: (MonadIO m, IsDeviceMacvlan o) => o -> m Bool
getDeviceMacvlanNoPromisc :: forall (m :: * -> *) o.
(MonadIO m, IsDeviceMacvlan o) =>
o -> m Bool
getDeviceMacvlanNoPromisc 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
"no-promisc"
#if defined(ENABLE_OVERLOADING)
data DeviceMacvlanNoPromiscPropertyInfo
instance AttrInfo DeviceMacvlanNoPromiscPropertyInfo where
type AttrAllowedOps DeviceMacvlanNoPromiscPropertyInfo = '[ 'AttrGet]
type AttrBaseTypeConstraint DeviceMacvlanNoPromiscPropertyInfo = IsDeviceMacvlan
type AttrSetTypeConstraint DeviceMacvlanNoPromiscPropertyInfo = (~) ()
type AttrTransferTypeConstraint DeviceMacvlanNoPromiscPropertyInfo = (~) ()
type AttrTransferType DeviceMacvlanNoPromiscPropertyInfo = ()
type AttrGetType DeviceMacvlanNoPromiscPropertyInfo = Bool
type AttrLabel DeviceMacvlanNoPromiscPropertyInfo = "no-promisc"
type AttrOrigin DeviceMacvlanNoPromiscPropertyInfo = DeviceMacvlan
attrGet = getDeviceMacvlanNoPromisc
attrSet = undefined
attrTransfer _ = undefined
attrConstruct = undefined
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.DeviceMacvlan.noPromisc"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-DeviceMacvlan.html#g:attr:noPromisc"
})
#endif
getDeviceMacvlanParent :: (MonadIO m, IsDeviceMacvlan o) => o -> m NM.Device.Device
getDeviceMacvlanParent :: forall (m :: * -> *) o.
(MonadIO m, IsDeviceMacvlan o) =>
o -> m Device
getDeviceMacvlanParent o
obj = IO Device -> m Device
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Device -> m Device) -> IO Device -> m Device
forall a b. (a -> b) -> a -> b
$ Text -> IO (Maybe Device) -> IO Device
forall a. HasCallStack => Text -> IO (Maybe a) -> IO a
checkUnexpectedNothing Text
"getDeviceMacvlanParent" (IO (Maybe Device) -> IO Device) -> IO (Maybe Device) -> IO Device
forall a b. (a -> b) -> a -> b
$ o -> String -> (ManagedPtr Device -> Device) -> IO (Maybe Device)
forall a b.
(GObject a, GObject b) =>
a -> String -> (ManagedPtr b -> b) -> IO (Maybe b)
B.Properties.getObjectPropertyObject o
obj String
"parent" ManagedPtr Device -> Device
NM.Device.Device
#if defined(ENABLE_OVERLOADING)
data DeviceMacvlanParentPropertyInfo
instance AttrInfo DeviceMacvlanParentPropertyInfo where
type AttrAllowedOps DeviceMacvlanParentPropertyInfo = '[ 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint DeviceMacvlanParentPropertyInfo = IsDeviceMacvlan
type AttrSetTypeConstraint DeviceMacvlanParentPropertyInfo = (~) ()
type AttrTransferTypeConstraint DeviceMacvlanParentPropertyInfo = (~) ()
type AttrTransferType DeviceMacvlanParentPropertyInfo = ()
type AttrGetType DeviceMacvlanParentPropertyInfo = NM.Device.Device
type AttrLabel DeviceMacvlanParentPropertyInfo = "parent"
type AttrOrigin DeviceMacvlanParentPropertyInfo = DeviceMacvlan
attrGet = getDeviceMacvlanParent
attrSet = undefined
attrTransfer _ = undefined
attrConstruct = undefined
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.DeviceMacvlan.parent"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-DeviceMacvlan.html#g:attr:parent"
})
#endif
getDeviceMacvlanTap :: (MonadIO m, IsDeviceMacvlan o) => o -> m Bool
getDeviceMacvlanTap :: forall (m :: * -> *) o.
(MonadIO m, IsDeviceMacvlan o) =>
o -> m Bool
getDeviceMacvlanTap 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
"tap"
#if defined(ENABLE_OVERLOADING)
data DeviceMacvlanTapPropertyInfo
instance AttrInfo DeviceMacvlanTapPropertyInfo where
type AttrAllowedOps DeviceMacvlanTapPropertyInfo = '[ 'AttrGet]
type AttrBaseTypeConstraint DeviceMacvlanTapPropertyInfo = IsDeviceMacvlan
type AttrSetTypeConstraint DeviceMacvlanTapPropertyInfo = (~) ()
type AttrTransferTypeConstraint DeviceMacvlanTapPropertyInfo = (~) ()
type AttrTransferType DeviceMacvlanTapPropertyInfo = ()
type AttrGetType DeviceMacvlanTapPropertyInfo = Bool
type AttrLabel DeviceMacvlanTapPropertyInfo = "tap"
type AttrOrigin DeviceMacvlanTapPropertyInfo = DeviceMacvlan
attrGet = getDeviceMacvlanTap
attrSet = undefined
attrTransfer _ = undefined
attrConstruct = undefined
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.DeviceMacvlan.tap"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-DeviceMacvlan.html#g:attr:tap"
})
#endif
#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList DeviceMacvlan
type instance O.AttributeList DeviceMacvlan = DeviceMacvlanAttributeList
type DeviceMacvlanAttributeList = ('[ '("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), '("mode", DeviceMacvlanModePropertyInfo), '("mtu", NM.Device.DeviceMtuPropertyInfo), '("nmPluginMissing", NM.Device.DeviceNmPluginMissingPropertyInfo), '("noPromisc", DeviceMacvlanNoPromiscPropertyInfo), '("parent", DeviceMacvlanParentPropertyInfo), '("path", NM.Device.DevicePathPropertyInfo), '("physicalPortId", NM.Device.DevicePhysicalPortIdPropertyInfo), '("ports", NM.Device.DevicePortsPropertyInfo), '("product", NM.Device.DeviceProductPropertyInfo), '("real", NM.Device.DeviceRealPropertyInfo), '("state", NM.Device.DeviceStatePropertyInfo), '("stateReason", NM.Device.DeviceStateReasonPropertyInfo), '("tap", DeviceMacvlanTapPropertyInfo), '("udi", NM.Device.DeviceUdiPropertyInfo), '("vendor", NM.Device.DeviceVendorPropertyInfo)] :: [(Symbol, DK.Type)])
#endif
#if defined(ENABLE_OVERLOADING)
deviceMacvlanMode :: AttrLabelProxy "mode"
deviceMacvlanMode = AttrLabelProxy
deviceMacvlanNoPromisc :: AttrLabelProxy "noPromisc"
deviceMacvlanNoPromisc = AttrLabelProxy
deviceMacvlanParent :: AttrLabelProxy "parent"
deviceMacvlanParent = AttrLabelProxy
deviceMacvlanTap :: AttrLabelProxy "tap"
deviceMacvlanTap = AttrLabelProxy
#endif
#if defined(ENABLE_OVERLOADING)
type instance O.SignalList DeviceMacvlan = DeviceMacvlanSignalList
type DeviceMacvlanSignalList = ('[ '("notify", GObject.Object.ObjectNotifySignalInfo), '("stateChanged", NM.Device.DeviceStateChangedSignalInfo)] :: [(Symbol, DK.Type)])
#endif
foreign import ccall "nm_device_macvlan_get_mode" nm_device_macvlan_get_mode ::
Ptr DeviceMacvlan ->
IO CString
deviceMacvlanGetMode ::
(B.CallStack.HasCallStack, MonadIO m, IsDeviceMacvlan a) =>
a
-> m T.Text
deviceMacvlanGetMode :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsDeviceMacvlan a) =>
a -> m Text
deviceMacvlanGetMode a
device = 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 DeviceMacvlan
device' <- a -> IO (Ptr DeviceMacvlan)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
device
CString
result <- Ptr DeviceMacvlan -> IO CString
nm_device_macvlan_get_mode Ptr DeviceMacvlan
device'
Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"deviceMacvlanGetMode" CString
result
Text
result' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
device
Text -> IO Text
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result'
#if defined(ENABLE_OVERLOADING)
data DeviceMacvlanGetModeMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsDeviceMacvlan a) => O.OverloadedMethod DeviceMacvlanGetModeMethodInfo a signature where
overloadedMethod = deviceMacvlanGetMode
instance O.OverloadedMethodInfo DeviceMacvlanGetModeMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.DeviceMacvlan.deviceMacvlanGetMode",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-DeviceMacvlan.html#v:deviceMacvlanGetMode"
})
#endif
foreign import ccall "nm_device_macvlan_get_no_promisc" nm_device_macvlan_get_no_promisc ::
Ptr DeviceMacvlan ->
IO CInt
deviceMacvlanGetNoPromisc ::
(B.CallStack.HasCallStack, MonadIO m, IsDeviceMacvlan a) =>
a
-> m Bool
deviceMacvlanGetNoPromisc :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsDeviceMacvlan a) =>
a -> m Bool
deviceMacvlanGetNoPromisc a
device = 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 DeviceMacvlan
device' <- a -> IO (Ptr DeviceMacvlan)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
device
CInt
result <- Ptr DeviceMacvlan -> IO CInt
nm_device_macvlan_get_no_promisc Ptr DeviceMacvlan
device'
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
device
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data DeviceMacvlanGetNoPromiscMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsDeviceMacvlan a) => O.OverloadedMethod DeviceMacvlanGetNoPromiscMethodInfo a signature where
overloadedMethod = deviceMacvlanGetNoPromisc
instance O.OverloadedMethodInfo DeviceMacvlanGetNoPromiscMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.DeviceMacvlan.deviceMacvlanGetNoPromisc",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-DeviceMacvlan.html#v:deviceMacvlanGetNoPromisc"
})
#endif
foreign import ccall "nm_device_macvlan_get_parent" nm_device_macvlan_get_parent ::
Ptr DeviceMacvlan ->
IO (Ptr NM.Device.Device)
deviceMacvlanGetParent ::
(B.CallStack.HasCallStack, MonadIO m, IsDeviceMacvlan a) =>
a
-> m NM.Device.Device
deviceMacvlanGetParent :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsDeviceMacvlan a) =>
a -> m Device
deviceMacvlanGetParent 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 DeviceMacvlan
device' <- a -> IO (Ptr DeviceMacvlan)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
device
Ptr Device
result <- Ptr DeviceMacvlan -> IO (Ptr Device)
nm_device_macvlan_get_parent Ptr DeviceMacvlan
device'
Text -> Ptr Device -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"deviceMacvlanGetParent" Ptr Device
result
Device
result' <- ((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 DeviceMacvlanGetParentMethodInfo
instance (signature ~ (m NM.Device.Device), MonadIO m, IsDeviceMacvlan a) => O.OverloadedMethod DeviceMacvlanGetParentMethodInfo a signature where
overloadedMethod = deviceMacvlanGetParent
instance O.OverloadedMethodInfo DeviceMacvlanGetParentMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.DeviceMacvlan.deviceMacvlanGetParent",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-DeviceMacvlan.html#v:deviceMacvlanGetParent"
})
#endif
foreign import ccall "nm_device_macvlan_get_tap" nm_device_macvlan_get_tap ::
Ptr DeviceMacvlan ->
IO CInt
deviceMacvlanGetTap ::
(B.CallStack.HasCallStack, MonadIO m, IsDeviceMacvlan a) =>
a
-> m Bool
deviceMacvlanGetTap :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsDeviceMacvlan a) =>
a -> m Bool
deviceMacvlanGetTap a
device = 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 DeviceMacvlan
device' <- a -> IO (Ptr DeviceMacvlan)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
device
CInt
result <- Ptr DeviceMacvlan -> IO CInt
nm_device_macvlan_get_tap Ptr DeviceMacvlan
device'
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
device
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data DeviceMacvlanGetTapMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsDeviceMacvlan a) => O.OverloadedMethod DeviceMacvlanGetTapMethodInfo a signature where
overloadedMethod = deviceMacvlanGetTap
instance O.OverloadedMethodInfo DeviceMacvlanGetTapMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.NM.Objects.DeviceMacvlan.deviceMacvlanGetTap",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-DeviceMacvlan.html#v:deviceMacvlanGetTap"
})
#endif