{-# LANGUAGE ImplicitParams, RankNTypes, TypeApplications #-}
#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.GES.Interfaces.MetaContainer
(
MetaContainer(..) ,
IsMetaContainer ,
toMetaContainer ,
#if defined(ENABLE_OVERLOADING)
ResolveMetaContainerMethod ,
#endif
#if defined(ENABLE_OVERLOADING)
MetaContainerAddMetasFromStringMethodInfo,
#endif
metaContainerAddMetasFromString ,
#if defined(ENABLE_OVERLOADING)
MetaContainerCheckMetaRegisteredMethodInfo,
#endif
metaContainerCheckMetaRegistered ,
#if defined(ENABLE_OVERLOADING)
MetaContainerForeachMethodInfo ,
#endif
metaContainerForeach ,
#if defined(ENABLE_OVERLOADING)
MetaContainerGetBooleanMethodInfo ,
#endif
metaContainerGetBoolean ,
#if defined(ENABLE_OVERLOADING)
MetaContainerGetDateMethodInfo ,
#endif
metaContainerGetDate ,
#if defined(ENABLE_OVERLOADING)
MetaContainerGetDateTimeMethodInfo ,
#endif
metaContainerGetDateTime ,
#if defined(ENABLE_OVERLOADING)
MetaContainerGetDoubleMethodInfo ,
#endif
metaContainerGetDouble ,
#if defined(ENABLE_OVERLOADING)
MetaContainerGetFloatMethodInfo ,
#endif
metaContainerGetFloat ,
#if defined(ENABLE_OVERLOADING)
MetaContainerGetIntMethodInfo ,
#endif
metaContainerGetInt ,
#if defined(ENABLE_OVERLOADING)
MetaContainerGetInt64MethodInfo ,
#endif
metaContainerGetInt64 ,
#if defined(ENABLE_OVERLOADING)
MetaContainerGetMarkerListMethodInfo ,
#endif
metaContainerGetMarkerList ,
#if defined(ENABLE_OVERLOADING)
MetaContainerGetMetaMethodInfo ,
#endif
metaContainerGetMeta ,
#if defined(ENABLE_OVERLOADING)
MetaContainerGetStringMethodInfo ,
#endif
metaContainerGetString ,
#if defined(ENABLE_OVERLOADING)
MetaContainerGetUintMethodInfo ,
#endif
metaContainerGetUint ,
#if defined(ENABLE_OVERLOADING)
MetaContainerGetUint64MethodInfo ,
#endif
metaContainerGetUint64 ,
#if defined(ENABLE_OVERLOADING)
MetaContainerMetasToStringMethodInfo ,
#endif
metaContainerMetasToString ,
#if defined(ENABLE_OVERLOADING)
MetaContainerRegisterMetaMethodInfo ,
#endif
metaContainerRegisterMeta ,
#if defined(ENABLE_OVERLOADING)
MetaContainerRegisterMetaBooleanMethodInfo,
#endif
metaContainerRegisterMetaBoolean ,
#if defined(ENABLE_OVERLOADING)
MetaContainerRegisterMetaDateMethodInfo ,
#endif
metaContainerRegisterMetaDate ,
#if defined(ENABLE_OVERLOADING)
MetaContainerRegisterMetaDateTimeMethodInfo,
#endif
metaContainerRegisterMetaDateTime ,
#if defined(ENABLE_OVERLOADING)
MetaContainerRegisterMetaDoubleMethodInfo,
#endif
metaContainerRegisterMetaDouble ,
#if defined(ENABLE_OVERLOADING)
MetaContainerRegisterMetaFloatMethodInfo,
#endif
metaContainerRegisterMetaFloat ,
#if defined(ENABLE_OVERLOADING)
MetaContainerRegisterMetaIntMethodInfo ,
#endif
metaContainerRegisterMetaInt ,
#if defined(ENABLE_OVERLOADING)
MetaContainerRegisterMetaInt64MethodInfo,
#endif
metaContainerRegisterMetaInt64 ,
#if defined(ENABLE_OVERLOADING)
MetaContainerRegisterMetaStringMethodInfo,
#endif
metaContainerRegisterMetaString ,
#if defined(ENABLE_OVERLOADING)
MetaContainerRegisterMetaUintMethodInfo ,
#endif
metaContainerRegisterMetaUint ,
#if defined(ENABLE_OVERLOADING)
MetaContainerRegisterMetaUint64MethodInfo,
#endif
metaContainerRegisterMetaUint64 ,
#if defined(ENABLE_OVERLOADING)
MetaContainerRegisterStaticMetaMethodInfo,
#endif
metaContainerRegisterStaticMeta ,
#if defined(ENABLE_OVERLOADING)
MetaContainerSetBooleanMethodInfo ,
#endif
metaContainerSetBoolean ,
#if defined(ENABLE_OVERLOADING)
MetaContainerSetDateMethodInfo ,
#endif
metaContainerSetDate ,
#if defined(ENABLE_OVERLOADING)
MetaContainerSetDateTimeMethodInfo ,
#endif
metaContainerSetDateTime ,
#if defined(ENABLE_OVERLOADING)
MetaContainerSetDoubleMethodInfo ,
#endif
metaContainerSetDouble ,
#if defined(ENABLE_OVERLOADING)
MetaContainerSetFloatMethodInfo ,
#endif
metaContainerSetFloat ,
#if defined(ENABLE_OVERLOADING)
MetaContainerSetIntMethodInfo ,
#endif
metaContainerSetInt ,
#if defined(ENABLE_OVERLOADING)
MetaContainerSetInt64MethodInfo ,
#endif
metaContainerSetInt64 ,
#if defined(ENABLE_OVERLOADING)
MetaContainerSetMarkerListMethodInfo ,
#endif
metaContainerSetMarkerList ,
#if defined(ENABLE_OVERLOADING)
MetaContainerSetMetaMethodInfo ,
#endif
metaContainerSetMeta ,
#if defined(ENABLE_OVERLOADING)
MetaContainerSetStringMethodInfo ,
#endif
metaContainerSetString ,
#if defined(ENABLE_OVERLOADING)
MetaContainerSetUintMethodInfo ,
#endif
metaContainerSetUint ,
#if defined(ENABLE_OVERLOADING)
MetaContainerSetUint64MethodInfo ,
#endif
metaContainerSetUint64 ,
MetaContainerNotifyMetaCallback ,
#if defined(ENABLE_OVERLOADING)
MetaContainerNotifyMetaSignalInfo ,
#endif
afterMetaContainerNotifyMeta ,
onMetaContainerNotifyMeta ,
) 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.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 GI.GES.Callbacks as GES.Callbacks
import {-# SOURCE #-} qualified GI.GES.Flags as GES.Flags
import {-# SOURCE #-} qualified GI.GES.Objects.MarkerList as GES.MarkerList
import qualified GI.GLib.Structs.Date as GLib.Date
import qualified GI.GObject.Objects.Object as GObject.Object
import qualified GI.Gst.Structs.DateTime as Gst.DateTime
newtype MetaContainer = MetaContainer (SP.ManagedPtr MetaContainer)
deriving (MetaContainer -> MetaContainer -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MetaContainer -> MetaContainer -> Bool
$c/= :: MetaContainer -> MetaContainer -> Bool
== :: MetaContainer -> MetaContainer -> Bool
$c== :: MetaContainer -> MetaContainer -> Bool
Eq)
instance SP.ManagedPtrNewtype MetaContainer where
toManagedPtr :: MetaContainer -> ManagedPtr MetaContainer
toManagedPtr (MetaContainer ManagedPtr MetaContainer
p) = ManagedPtr MetaContainer
p
foreign import ccall "ges_meta_container_get_type"
c_ges_meta_container_get_type :: IO B.Types.GType
instance B.Types.TypedObject MetaContainer where
glibType :: IO GType
glibType = IO GType
c_ges_meta_container_get_type
instance B.Types.GObject MetaContainer
class (SP.GObject o, O.IsDescendantOf MetaContainer o) => IsMetaContainer o
instance (SP.GObject o, O.IsDescendantOf MetaContainer o) => IsMetaContainer o
instance O.HasParentTypes MetaContainer
type instance O.ParentTypes MetaContainer = '[GObject.Object.Object]
toMetaContainer :: (MIO.MonadIO m, IsMetaContainer o) => o -> m MetaContainer
toMetaContainer :: forall (m :: * -> *) o.
(MonadIO m, IsMetaContainer o) =>
o -> m MetaContainer
toMetaContainer = forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO forall b c a. (b -> c) -> (a -> b) -> a -> c
. forall o o'.
(HasCallStack, ManagedPtrNewtype o, TypedObject o,
ManagedPtrNewtype o', TypedObject o') =>
(ManagedPtr o' -> o') -> o -> IO o'
B.ManagedPtr.unsafeCastTo ManagedPtr MetaContainer -> MetaContainer
MetaContainer
instance B.GValue.IsGValue (Maybe MetaContainer) where
gvalueGType_ :: IO GType
gvalueGType_ = IO GType
c_ges_meta_container_get_type
gvalueSet_ :: Ptr GValue -> Maybe MetaContainer -> IO ()
gvalueSet_ Ptr GValue
gv Maybe MetaContainer
P.Nothing = forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv (forall a. Ptr a
FP.nullPtr :: FP.Ptr MetaContainer)
gvalueSet_ Ptr GValue
gv (P.Just MetaContainer
obj) = forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
B.ManagedPtr.withManagedPtr MetaContainer
obj (forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv)
gvalueGet_ :: Ptr GValue -> IO (Maybe MetaContainer)
gvalueGet_ Ptr GValue
gv = do
Ptr MetaContainer
ptr <- forall a. GObject a => Ptr GValue -> IO (Ptr a)
B.GValue.get_object Ptr GValue
gv :: IO (FP.Ptr MetaContainer)
if Ptr MetaContainer
ptr forall a. Eq a => a -> a -> Bool
/= forall a. Ptr a
FP.nullPtr
then forall a. a -> Maybe a
P.Just forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
B.ManagedPtr.newObject ManagedPtr MetaContainer -> MetaContainer
MetaContainer Ptr MetaContainer
ptr
else forall (m :: * -> *) a. Monad m => a -> m a
return forall a. Maybe a
P.Nothing
#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList MetaContainer
type instance O.AttributeList MetaContainer = MetaContainerAttributeList
type MetaContainerAttributeList = ('[ ] :: [(Symbol, *)])
#endif
#if defined(ENABLE_OVERLOADING)
#endif
#if defined(ENABLE_OVERLOADING)
type family ResolveMetaContainerMethod (t :: Symbol) (o :: *) :: * where
ResolveMetaContainerMethod "addMetasFromString" o = MetaContainerAddMetasFromStringMethodInfo
ResolveMetaContainerMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveMetaContainerMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveMetaContainerMethod "checkMetaRegistered" o = MetaContainerCheckMetaRegisteredMethodInfo
ResolveMetaContainerMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveMetaContainerMethod "foreach" o = MetaContainerForeachMethodInfo
ResolveMetaContainerMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveMetaContainerMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolveMetaContainerMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveMetaContainerMethod "metasToString" o = MetaContainerMetasToStringMethodInfo
ResolveMetaContainerMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveMetaContainerMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveMetaContainerMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveMetaContainerMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveMetaContainerMethod "registerMeta" o = MetaContainerRegisterMetaMethodInfo
ResolveMetaContainerMethod "registerMetaBoolean" o = MetaContainerRegisterMetaBooleanMethodInfo
ResolveMetaContainerMethod "registerMetaDate" o = MetaContainerRegisterMetaDateMethodInfo
ResolveMetaContainerMethod "registerMetaDateTime" o = MetaContainerRegisterMetaDateTimeMethodInfo
ResolveMetaContainerMethod "registerMetaDouble" o = MetaContainerRegisterMetaDoubleMethodInfo
ResolveMetaContainerMethod "registerMetaFloat" o = MetaContainerRegisterMetaFloatMethodInfo
ResolveMetaContainerMethod "registerMetaInt" o = MetaContainerRegisterMetaIntMethodInfo
ResolveMetaContainerMethod "registerMetaInt64" o = MetaContainerRegisterMetaInt64MethodInfo
ResolveMetaContainerMethod "registerMetaString" o = MetaContainerRegisterMetaStringMethodInfo
ResolveMetaContainerMethod "registerMetaUint" o = MetaContainerRegisterMetaUintMethodInfo
ResolveMetaContainerMethod "registerMetaUint64" o = MetaContainerRegisterMetaUint64MethodInfo
ResolveMetaContainerMethod "registerStaticMeta" o = MetaContainerRegisterStaticMetaMethodInfo
ResolveMetaContainerMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveMetaContainerMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveMetaContainerMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveMetaContainerMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveMetaContainerMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveMetaContainerMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveMetaContainerMethod "getBoolean" o = MetaContainerGetBooleanMethodInfo
ResolveMetaContainerMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveMetaContainerMethod "getDate" o = MetaContainerGetDateMethodInfo
ResolveMetaContainerMethod "getDateTime" o = MetaContainerGetDateTimeMethodInfo
ResolveMetaContainerMethod "getDouble" o = MetaContainerGetDoubleMethodInfo
ResolveMetaContainerMethod "getFloat" o = MetaContainerGetFloatMethodInfo
ResolveMetaContainerMethod "getInt" o = MetaContainerGetIntMethodInfo
ResolveMetaContainerMethod "getInt64" o = MetaContainerGetInt64MethodInfo
ResolveMetaContainerMethod "getMarkerList" o = MetaContainerGetMarkerListMethodInfo
ResolveMetaContainerMethod "getMeta" o = MetaContainerGetMetaMethodInfo
ResolveMetaContainerMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveMetaContainerMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveMetaContainerMethod "getString" o = MetaContainerGetStringMethodInfo
ResolveMetaContainerMethod "getUint" o = MetaContainerGetUintMethodInfo
ResolveMetaContainerMethod "getUint64" o = MetaContainerGetUint64MethodInfo
ResolveMetaContainerMethod "setBoolean" o = MetaContainerSetBooleanMethodInfo
ResolveMetaContainerMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveMetaContainerMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
ResolveMetaContainerMethod "setDate" o = MetaContainerSetDateMethodInfo
ResolveMetaContainerMethod "setDateTime" o = MetaContainerSetDateTimeMethodInfo
ResolveMetaContainerMethod "setDouble" o = MetaContainerSetDoubleMethodInfo
ResolveMetaContainerMethod "setFloat" o = MetaContainerSetFloatMethodInfo
ResolveMetaContainerMethod "setInt" o = MetaContainerSetIntMethodInfo
ResolveMetaContainerMethod "setInt64" o = MetaContainerSetInt64MethodInfo
ResolveMetaContainerMethod "setMarkerList" o = MetaContainerSetMarkerListMethodInfo
ResolveMetaContainerMethod "setMeta" o = MetaContainerSetMetaMethodInfo
ResolveMetaContainerMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveMetaContainerMethod "setString" o = MetaContainerSetStringMethodInfo
ResolveMetaContainerMethod "setUint" o = MetaContainerSetUintMethodInfo
ResolveMetaContainerMethod "setUint64" o = MetaContainerSetUint64MethodInfo
ResolveMetaContainerMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveMetaContainerMethod t MetaContainer, O.OverloadedMethod info MetaContainer p) => OL.IsLabel t (MetaContainer -> 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 ~ ResolveMetaContainerMethod t MetaContainer, O.OverloadedMethod info MetaContainer p, R.HasField t MetaContainer p) => R.HasField t MetaContainer p where
getField = O.overloadedMethod @info
#endif
instance (info ~ ResolveMetaContainerMethod t MetaContainer, O.OverloadedMethodInfo info MetaContainer) => OL.IsLabel t (O.MethodProxy info MetaContainer) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.MethodProxy
#else
fromLabel _ = O.MethodProxy
#endif
#endif
foreign import ccall "ges_meta_container_add_metas_from_string" ges_meta_container_add_metas_from_string ::
Ptr MetaContainer ->
CString ->
IO CInt
metaContainerAddMetasFromString ::
(B.CallStack.HasCallStack, MonadIO m, IsMetaContainer a) =>
a
-> T.Text
-> m Bool
metaContainerAddMetasFromString :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsMetaContainer a) =>
a -> Text -> m Bool
metaContainerAddMetasFromString a
container Text
str = forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO forall a b. (a -> b) -> a -> b
$ do
Ptr MetaContainer
container' <- forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
container
CString
str' <- Text -> IO CString
textToCString Text
str
CInt
result <- Ptr MetaContainer -> CString -> IO CInt
ges_meta_container_add_metas_from_string Ptr MetaContainer
container' CString
str'
let result' :: Bool
result' = (forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
container
forall a. Ptr a -> IO ()
freeMem CString
str'
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data MetaContainerAddMetasFromStringMethodInfo
instance (signature ~ (T.Text -> m Bool), MonadIO m, IsMetaContainer a) => O.OverloadedMethod MetaContainerAddMetasFromStringMethodInfo a signature where
overloadedMethod = metaContainerAddMetasFromString
instance O.OverloadedMethodInfo MetaContainerAddMetasFromStringMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Interfaces.MetaContainer.metaContainerAddMetasFromString",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.1/docs/GI-GES-Interfaces-MetaContainer.html#v:metaContainerAddMetasFromString"
})
#endif
foreign import ccall "ges_meta_container_check_meta_registered" ges_meta_container_check_meta_registered ::
Ptr MetaContainer ->
CString ->
Ptr CUInt ->
Ptr CGType ->
IO CInt
metaContainerCheckMetaRegistered ::
(B.CallStack.HasCallStack, MonadIO m, IsMetaContainer a) =>
a
-> T.Text
-> m ((Bool, [GES.Flags.MetaFlag], GType))
metaContainerCheckMetaRegistered :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsMetaContainer a) =>
a -> Text -> m (Bool, [MetaFlag], GType)
metaContainerCheckMetaRegistered a
container Text
metaItem = forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO forall a b. (a -> b) -> a -> b
$ do
Ptr MetaContainer
container' <- forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
container
CString
metaItem' <- Text -> IO CString
textToCString Text
metaItem
Ptr CUInt
flags <- forall a. Storable a => IO (Ptr a)
allocMem :: IO (Ptr CUInt)
Ptr CGType
type_ <- forall a. Storable a => IO (Ptr a)
allocMem :: IO (Ptr CGType)
CInt
result <- Ptr MetaContainer -> CString -> Ptr CUInt -> Ptr CGType -> IO CInt
ges_meta_container_check_meta_registered Ptr MetaContainer
container' CString
metaItem' Ptr CUInt
flags Ptr CGType
type_
let result' :: Bool
result' = (forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
CUInt
flags' <- forall a. Storable a => Ptr a -> IO a
peek Ptr CUInt
flags
let flags'' :: [MetaFlag]
flags'' = forall a b. (Storable a, Integral a, Bits a, IsGFlag b) => a -> [b]
wordToGFlags CUInt
flags'
CGType
type_' <- forall a. Storable a => Ptr a -> IO a
peek Ptr CGType
type_
let type_'' :: GType
type_'' = CGType -> GType
GType CGType
type_'
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
container
forall a. Ptr a -> IO ()
freeMem CString
metaItem'
forall a. Ptr a -> IO ()
freeMem Ptr CUInt
flags
forall a. Ptr a -> IO ()
freeMem Ptr CGType
type_
forall (m :: * -> *) a. Monad m => a -> m a
return (Bool
result', [MetaFlag]
flags'', GType
type_'')
#if defined(ENABLE_OVERLOADING)
data MetaContainerCheckMetaRegisteredMethodInfo
instance (signature ~ (T.Text -> m ((Bool, [GES.Flags.MetaFlag], GType))), MonadIO m, IsMetaContainer a) => O.OverloadedMethod MetaContainerCheckMetaRegisteredMethodInfo a signature where
overloadedMethod = metaContainerCheckMetaRegistered
instance O.OverloadedMethodInfo MetaContainerCheckMetaRegisteredMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Interfaces.MetaContainer.metaContainerCheckMetaRegistered",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.1/docs/GI-GES-Interfaces-MetaContainer.html#v:metaContainerCheckMetaRegistered"
})
#endif
foreign import ccall "ges_meta_container_foreach" ges_meta_container_foreach ::
Ptr MetaContainer ->
FunPtr GES.Callbacks.C_MetaForeachFunc ->
Ptr () ->
IO ()
metaContainerForeach ::
(B.CallStack.HasCallStack, MonadIO m, IsMetaContainer a) =>
a
-> GES.Callbacks.MetaForeachFunc
-> m ()
metaContainerForeach :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsMetaContainer a) =>
a -> MetaForeachFunc -> m ()
metaContainerForeach a
container MetaForeachFunc
func = forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO forall a b. (a -> b) -> a -> b
$ do
Ptr MetaContainer
container' <- forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
container
FunPtr C_MetaForeachFunc
func' <- C_MetaForeachFunc -> IO (FunPtr C_MetaForeachFunc)
GES.Callbacks.mk_MetaForeachFunc (Maybe (Ptr (FunPtr C_MetaForeachFunc))
-> MetaForeachFunc_WithClosures -> C_MetaForeachFunc
GES.Callbacks.wrap_MetaForeachFunc forall a. Maybe a
Nothing (MetaForeachFunc -> MetaForeachFunc_WithClosures
GES.Callbacks.drop_closures_MetaForeachFunc MetaForeachFunc
func))
let userData :: Ptr a
userData = forall a. Ptr a
nullPtr
Ptr MetaContainer -> FunPtr C_MetaForeachFunc -> Ptr () -> IO ()
ges_meta_container_foreach Ptr MetaContainer
container' FunPtr C_MetaForeachFunc
func' forall a. Ptr a
userData
forall a. Ptr a -> IO ()
safeFreeFunPtr forall a b. (a -> b) -> a -> b
$ forall a b. FunPtr a -> Ptr b
castFunPtrToPtr FunPtr C_MetaForeachFunc
func'
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
container
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data MetaContainerForeachMethodInfo
instance (signature ~ (GES.Callbacks.MetaForeachFunc -> m ()), MonadIO m, IsMetaContainer a) => O.OverloadedMethod MetaContainerForeachMethodInfo a signature where
overloadedMethod = metaContainerForeach
instance O.OverloadedMethodInfo MetaContainerForeachMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Interfaces.MetaContainer.metaContainerForeach",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.1/docs/GI-GES-Interfaces-MetaContainer.html#v:metaContainerForeach"
})
#endif
foreign import ccall "ges_meta_container_get_boolean" ges_meta_container_get_boolean ::
Ptr MetaContainer ->
CString ->
Ptr CInt ->
IO CInt
metaContainerGetBoolean ::
(B.CallStack.HasCallStack, MonadIO m, IsMetaContainer a) =>
a
-> T.Text
-> m ((Bool, Bool))
metaContainerGetBoolean :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsMetaContainer a) =>
a -> Text -> m (Bool, Bool)
metaContainerGetBoolean a
container Text
metaItem = forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO forall a b. (a -> b) -> a -> b
$ do
Ptr MetaContainer
container' <- forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
container
CString
metaItem' <- Text -> IO CString
textToCString Text
metaItem
Ptr CInt
dest <- forall a. Storable a => IO (Ptr a)
allocMem :: IO (Ptr CInt)
CInt
result <- Ptr MetaContainer -> CString -> Ptr CInt -> IO CInt
ges_meta_container_get_boolean Ptr MetaContainer
container' CString
metaItem' Ptr CInt
dest
let result' :: Bool
result' = (forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
CInt
dest' <- forall a. Storable a => Ptr a -> IO a
peek Ptr CInt
dest
let dest'' :: Bool
dest'' = (forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
dest'
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
container
forall a. Ptr a -> IO ()
freeMem CString
metaItem'
forall a. Ptr a -> IO ()
freeMem Ptr CInt
dest
forall (m :: * -> *) a. Monad m => a -> m a
return (Bool
result', Bool
dest'')
#if defined(ENABLE_OVERLOADING)
data MetaContainerGetBooleanMethodInfo
instance (signature ~ (T.Text -> m ((Bool, Bool))), MonadIO m, IsMetaContainer a) => O.OverloadedMethod MetaContainerGetBooleanMethodInfo a signature where
overloadedMethod = metaContainerGetBoolean
instance O.OverloadedMethodInfo MetaContainerGetBooleanMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Interfaces.MetaContainer.metaContainerGetBoolean",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.1/docs/GI-GES-Interfaces-MetaContainer.html#v:metaContainerGetBoolean"
})
#endif
foreign import ccall "ges_meta_container_get_date" ges_meta_container_get_date ::
Ptr MetaContainer ->
CString ->
Ptr (Ptr GLib.Date.Date) ->
IO CInt
metaContainerGetDate ::
(B.CallStack.HasCallStack, MonadIO m, IsMetaContainer a) =>
a
-> T.Text
-> m ((Bool, GLib.Date.Date))
metaContainerGetDate :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsMetaContainer a) =>
a -> Text -> m (Bool, Date)
metaContainerGetDate a
container Text
metaItem = forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO forall a b. (a -> b) -> a -> b
$ do
Ptr MetaContainer
container' <- forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
container
CString
metaItem' <- Text -> IO CString
textToCString Text
metaItem
Ptr (Ptr Date)
dest <- forall a. Storable a => IO (Ptr a)
callocMem :: IO (Ptr (Ptr GLib.Date.Date))
CInt
result <- Ptr MetaContainer -> CString -> Ptr (Ptr Date) -> IO CInt
ges_meta_container_get_date Ptr MetaContainer
container' CString
metaItem' Ptr (Ptr Date)
dest
let result' :: Bool
result' = (forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
Ptr Date
dest' <- forall a. Storable a => Ptr a -> IO a
peek Ptr (Ptr Date)
dest
Date
dest'' <- (forall a.
(HasCallStack, GBoxed a) =>
(ManagedPtr a -> a) -> Ptr a -> IO a
wrapBoxed ManagedPtr Date -> Date
GLib.Date.Date) Ptr Date
dest'
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
container
forall a. Ptr a -> IO ()
freeMem CString
metaItem'
forall a. Ptr a -> IO ()
freeMem Ptr (Ptr Date)
dest
forall (m :: * -> *) a. Monad m => a -> m a
return (Bool
result', Date
dest'')
#if defined(ENABLE_OVERLOADING)
data MetaContainerGetDateMethodInfo
instance (signature ~ (T.Text -> m ((Bool, GLib.Date.Date))), MonadIO m, IsMetaContainer a) => O.OverloadedMethod MetaContainerGetDateMethodInfo a signature where
overloadedMethod = metaContainerGetDate
instance O.OverloadedMethodInfo MetaContainerGetDateMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Interfaces.MetaContainer.metaContainerGetDate",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.1/docs/GI-GES-Interfaces-MetaContainer.html#v:metaContainerGetDate"
})
#endif
foreign import ccall "ges_meta_container_get_date_time" ges_meta_container_get_date_time ::
Ptr MetaContainer ->
CString ->
Ptr (Ptr Gst.DateTime.DateTime) ->
IO CInt
metaContainerGetDateTime ::
(B.CallStack.HasCallStack, MonadIO m, IsMetaContainer a) =>
a
-> T.Text
-> m ((Bool, Gst.DateTime.DateTime))
metaContainerGetDateTime :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsMetaContainer a) =>
a -> Text -> m (Bool, DateTime)
metaContainerGetDateTime a
container Text
metaItem = forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO forall a b. (a -> b) -> a -> b
$ do
Ptr MetaContainer
container' <- forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
container
CString
metaItem' <- Text -> IO CString
textToCString Text
metaItem
Ptr (Ptr DateTime)
dest <- forall a. Storable a => IO (Ptr a)
callocMem :: IO (Ptr (Ptr Gst.DateTime.DateTime))
CInt
result <- Ptr MetaContainer -> CString -> Ptr (Ptr DateTime) -> IO CInt
ges_meta_container_get_date_time Ptr MetaContainer
container' CString
metaItem' Ptr (Ptr DateTime)
dest
let result' :: Bool
result' = (forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
Ptr DateTime
dest' <- forall a. Storable a => Ptr a -> IO a
peek Ptr (Ptr DateTime)
dest
DateTime
dest'' <- (forall a.
(HasCallStack, GBoxed a) =>
(ManagedPtr a -> a) -> Ptr a -> IO a
wrapBoxed ManagedPtr DateTime -> DateTime
Gst.DateTime.DateTime) Ptr DateTime
dest'
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
container
forall a. Ptr a -> IO ()
freeMem CString
metaItem'
forall a. Ptr a -> IO ()
freeMem Ptr (Ptr DateTime)
dest
forall (m :: * -> *) a. Monad m => a -> m a
return (Bool
result', DateTime
dest'')
#if defined(ENABLE_OVERLOADING)
data MetaContainerGetDateTimeMethodInfo
instance (signature ~ (T.Text -> m ((Bool, Gst.DateTime.DateTime))), MonadIO m, IsMetaContainer a) => O.OverloadedMethod MetaContainerGetDateTimeMethodInfo a signature where
overloadedMethod = metaContainerGetDateTime
instance O.OverloadedMethodInfo MetaContainerGetDateTimeMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Interfaces.MetaContainer.metaContainerGetDateTime",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.1/docs/GI-GES-Interfaces-MetaContainer.html#v:metaContainerGetDateTime"
})
#endif
foreign import ccall "ges_meta_container_get_double" ges_meta_container_get_double ::
Ptr MetaContainer ->
CString ->
Ptr CDouble ->
IO CInt
metaContainerGetDouble ::
(B.CallStack.HasCallStack, MonadIO m, IsMetaContainer a) =>
a
-> T.Text
-> m ((Bool, Double))
metaContainerGetDouble :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsMetaContainer a) =>
a -> Text -> m (Bool, Double)
metaContainerGetDouble a
container Text
metaItem = forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO forall a b. (a -> b) -> a -> b
$ do
Ptr MetaContainer
container' <- forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
container
CString
metaItem' <- Text -> IO CString
textToCString Text
metaItem
Ptr CDouble
dest <- forall a. Storable a => IO (Ptr a)
allocMem :: IO (Ptr CDouble)
CInt
result <- Ptr MetaContainer -> CString -> Ptr CDouble -> IO CInt
ges_meta_container_get_double Ptr MetaContainer
container' CString
metaItem' Ptr CDouble
dest
let result' :: Bool
result' = (forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
CDouble
dest' <- forall a. Storable a => Ptr a -> IO a
peek Ptr CDouble
dest
let dest'' :: Double
dest'' = forall a b. (Real a, Fractional b) => a -> b
realToFrac CDouble
dest'
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
container
forall a. Ptr a -> IO ()
freeMem CString
metaItem'
forall a. Ptr a -> IO ()
freeMem Ptr CDouble
dest
forall (m :: * -> *) a. Monad m => a -> m a
return (Bool
result', Double
dest'')
#if defined(ENABLE_OVERLOADING)
data MetaContainerGetDoubleMethodInfo
instance (signature ~ (T.Text -> m ((Bool, Double))), MonadIO m, IsMetaContainer a) => O.OverloadedMethod MetaContainerGetDoubleMethodInfo a signature where
overloadedMethod = metaContainerGetDouble
instance O.OverloadedMethodInfo MetaContainerGetDoubleMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Interfaces.MetaContainer.metaContainerGetDouble",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.1/docs/GI-GES-Interfaces-MetaContainer.html#v:metaContainerGetDouble"
})
#endif
foreign import ccall "ges_meta_container_get_float" ges_meta_container_get_float ::
Ptr MetaContainer ->
CString ->
Ptr CFloat ->
IO CInt
metaContainerGetFloat ::
(B.CallStack.HasCallStack, MonadIO m, IsMetaContainer a) =>
a
-> T.Text
-> m ((Bool, Float))
metaContainerGetFloat :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsMetaContainer a) =>
a -> Text -> m (Bool, Float)
metaContainerGetFloat a
container Text
metaItem = forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO forall a b. (a -> b) -> a -> b
$ do
Ptr MetaContainer
container' <- forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
container
CString
metaItem' <- Text -> IO CString
textToCString Text
metaItem
Ptr CFloat
dest <- forall a. Storable a => IO (Ptr a)
allocMem :: IO (Ptr CFloat)
CInt
result <- Ptr MetaContainer -> CString -> Ptr CFloat -> IO CInt
ges_meta_container_get_float Ptr MetaContainer
container' CString
metaItem' Ptr CFloat
dest
let result' :: Bool
result' = (forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
CFloat
dest' <- forall a. Storable a => Ptr a -> IO a
peek Ptr CFloat
dest
let dest'' :: Float
dest'' = forall a b. (Real a, Fractional b) => a -> b
realToFrac CFloat
dest'
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
container
forall a. Ptr a -> IO ()
freeMem CString
metaItem'
forall a. Ptr a -> IO ()
freeMem Ptr CFloat
dest
forall (m :: * -> *) a. Monad m => a -> m a
return (Bool
result', Float
dest'')
#if defined(ENABLE_OVERLOADING)
data MetaContainerGetFloatMethodInfo
instance (signature ~ (T.Text -> m ((Bool, Float))), MonadIO m, IsMetaContainer a) => O.OverloadedMethod MetaContainerGetFloatMethodInfo a signature where
overloadedMethod = metaContainerGetFloat
instance O.OverloadedMethodInfo MetaContainerGetFloatMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Interfaces.MetaContainer.metaContainerGetFloat",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.1/docs/GI-GES-Interfaces-MetaContainer.html#v:metaContainerGetFloat"
})
#endif
foreign import ccall "ges_meta_container_get_int" ges_meta_container_get_int ::
Ptr MetaContainer ->
CString ->
Ptr Int32 ->
IO CInt
metaContainerGetInt ::
(B.CallStack.HasCallStack, MonadIO m, IsMetaContainer a) =>
a
-> T.Text
-> m ((Bool, Int32))
metaContainerGetInt :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsMetaContainer a) =>
a -> Text -> m (Bool, Int32)
metaContainerGetInt a
container Text
metaItem = forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO forall a b. (a -> b) -> a -> b
$ do
Ptr MetaContainer
container' <- forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
container
CString
metaItem' <- Text -> IO CString
textToCString Text
metaItem
Ptr Int32
dest <- forall a. Storable a => IO (Ptr a)
allocMem :: IO (Ptr Int32)
CInt
result <- Ptr MetaContainer -> CString -> Ptr Int32 -> IO CInt
ges_meta_container_get_int Ptr MetaContainer
container' CString
metaItem' Ptr Int32
dest
let result' :: Bool
result' = (forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
Int32
dest' <- forall a. Storable a => Ptr a -> IO a
peek Ptr Int32
dest
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
container
forall a. Ptr a -> IO ()
freeMem CString
metaItem'
forall a. Ptr a -> IO ()
freeMem Ptr Int32
dest
forall (m :: * -> *) a. Monad m => a -> m a
return (Bool
result', Int32
dest')
#if defined(ENABLE_OVERLOADING)
data MetaContainerGetIntMethodInfo
instance (signature ~ (T.Text -> m ((Bool, Int32))), MonadIO m, IsMetaContainer a) => O.OverloadedMethod MetaContainerGetIntMethodInfo a signature where
overloadedMethod = metaContainerGetInt
instance O.OverloadedMethodInfo MetaContainerGetIntMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Interfaces.MetaContainer.metaContainerGetInt",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.1/docs/GI-GES-Interfaces-MetaContainer.html#v:metaContainerGetInt"
})
#endif
foreign import ccall "ges_meta_container_get_int64" ges_meta_container_get_int64 ::
Ptr MetaContainer ->
CString ->
Ptr Int64 ->
IO CInt
metaContainerGetInt64 ::
(B.CallStack.HasCallStack, MonadIO m, IsMetaContainer a) =>
a
-> T.Text
-> m ((Bool, Int64))
metaContainerGetInt64 :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsMetaContainer a) =>
a -> Text -> m (Bool, Int64)
metaContainerGetInt64 a
container Text
metaItem = forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO forall a b. (a -> b) -> a -> b
$ do
Ptr MetaContainer
container' <- forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
container
CString
metaItem' <- Text -> IO CString
textToCString Text
metaItem
Ptr Int64
dest <- forall a. Storable a => IO (Ptr a)
allocMem :: IO (Ptr Int64)
CInt
result <- Ptr MetaContainer -> CString -> Ptr Int64 -> IO CInt
ges_meta_container_get_int64 Ptr MetaContainer
container' CString
metaItem' Ptr Int64
dest
let result' :: Bool
result' = (forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
Int64
dest' <- forall a. Storable a => Ptr a -> IO a
peek Ptr Int64
dest
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
container
forall a. Ptr a -> IO ()
freeMem CString
metaItem'
forall a. Ptr a -> IO ()
freeMem Ptr Int64
dest
forall (m :: * -> *) a. Monad m => a -> m a
return (Bool
result', Int64
dest')
#if defined(ENABLE_OVERLOADING)
data MetaContainerGetInt64MethodInfo
instance (signature ~ (T.Text -> m ((Bool, Int64))), MonadIO m, IsMetaContainer a) => O.OverloadedMethod MetaContainerGetInt64MethodInfo a signature where
overloadedMethod = metaContainerGetInt64
instance O.OverloadedMethodInfo MetaContainerGetInt64MethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Interfaces.MetaContainer.metaContainerGetInt64",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.1/docs/GI-GES-Interfaces-MetaContainer.html#v:metaContainerGetInt64"
})
#endif
foreign import ccall "ges_meta_container_get_marker_list" ges_meta_container_get_marker_list ::
Ptr MetaContainer ->
CString ->
IO (Ptr GES.MarkerList.MarkerList)
metaContainerGetMarkerList ::
(B.CallStack.HasCallStack, MonadIO m, IsMetaContainer a) =>
a
-> T.Text
-> m GES.MarkerList.MarkerList
metaContainerGetMarkerList :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsMetaContainer a) =>
a -> Text -> m MarkerList
metaContainerGetMarkerList a
container Text
key = forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO forall a b. (a -> b) -> a -> b
$ do
Ptr MetaContainer
container' <- forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
container
CString
key' <- Text -> IO CString
textToCString Text
key
Ptr MarkerList
result <- Ptr MetaContainer -> CString -> IO (Ptr MarkerList)
ges_meta_container_get_marker_list Ptr MetaContainer
container' CString
key'
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"metaContainerGetMarkerList" Ptr MarkerList
result
MarkerList
result' <- (forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
wrapObject ManagedPtr MarkerList -> MarkerList
GES.MarkerList.MarkerList) Ptr MarkerList
result
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
container
forall a. Ptr a -> IO ()
freeMem CString
key'
forall (m :: * -> *) a. Monad m => a -> m a
return MarkerList
result'
#if defined(ENABLE_OVERLOADING)
data MetaContainerGetMarkerListMethodInfo
instance (signature ~ (T.Text -> m GES.MarkerList.MarkerList), MonadIO m, IsMetaContainer a) => O.OverloadedMethod MetaContainerGetMarkerListMethodInfo a signature where
overloadedMethod = metaContainerGetMarkerList
instance O.OverloadedMethodInfo MetaContainerGetMarkerListMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Interfaces.MetaContainer.metaContainerGetMarkerList",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.1/docs/GI-GES-Interfaces-MetaContainer.html#v:metaContainerGetMarkerList"
})
#endif
foreign import ccall "ges_meta_container_get_meta" ges_meta_container_get_meta ::
Ptr MetaContainer ->
CString ->
IO (Ptr GValue)
metaContainerGetMeta ::
(B.CallStack.HasCallStack, MonadIO m, IsMetaContainer a) =>
a
-> T.Text
-> m GValue
metaContainerGetMeta :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsMetaContainer a) =>
a -> Text -> m GValue
metaContainerGetMeta a
container Text
key = forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO forall a b. (a -> b) -> a -> b
$ do
Ptr MetaContainer
container' <- forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
container
CString
key' <- Text -> IO CString
textToCString Text
key
Ptr GValue
result <- Ptr MetaContainer -> CString -> IO (Ptr GValue)
ges_meta_container_get_meta Ptr MetaContainer
container' CString
key'
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"metaContainerGetMeta" Ptr GValue
result
GValue
result' <- Ptr GValue -> IO GValue
B.GValue.newGValueFromPtr Ptr GValue
result
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
container
forall a. Ptr a -> IO ()
freeMem CString
key'
forall (m :: * -> *) a. Monad m => a -> m a
return GValue
result'
#if defined(ENABLE_OVERLOADING)
data MetaContainerGetMetaMethodInfo
instance (signature ~ (T.Text -> m GValue), MonadIO m, IsMetaContainer a) => O.OverloadedMethod MetaContainerGetMetaMethodInfo a signature where
overloadedMethod = metaContainerGetMeta
instance O.OverloadedMethodInfo MetaContainerGetMetaMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Interfaces.MetaContainer.metaContainerGetMeta",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.1/docs/GI-GES-Interfaces-MetaContainer.html#v:metaContainerGetMeta"
})
#endif
foreign import ccall "ges_meta_container_get_string" ges_meta_container_get_string ::
Ptr MetaContainer ->
CString ->
IO CString
metaContainerGetString ::
(B.CallStack.HasCallStack, MonadIO m, IsMetaContainer a) =>
a
-> T.Text
-> m T.Text
metaContainerGetString :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsMetaContainer a) =>
a -> Text -> m Text
metaContainerGetString a
container Text
metaItem = forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO forall a b. (a -> b) -> a -> b
$ do
Ptr MetaContainer
container' <- forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
container
CString
metaItem' <- Text -> IO CString
textToCString Text
metaItem
CString
result <- Ptr MetaContainer -> CString -> IO CString
ges_meta_container_get_string Ptr MetaContainer
container' CString
metaItem'
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"metaContainerGetString" CString
result
Text
result' <- HasCallStack => CString -> IO Text
cstringToText CString
result
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
container
forall a. Ptr a -> IO ()
freeMem CString
metaItem'
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result'
#if defined(ENABLE_OVERLOADING)
data MetaContainerGetStringMethodInfo
instance (signature ~ (T.Text -> m T.Text), MonadIO m, IsMetaContainer a) => O.OverloadedMethod MetaContainerGetStringMethodInfo a signature where
overloadedMethod = metaContainerGetString
instance O.OverloadedMethodInfo MetaContainerGetStringMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Interfaces.MetaContainer.metaContainerGetString",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.1/docs/GI-GES-Interfaces-MetaContainer.html#v:metaContainerGetString"
})
#endif
foreign import ccall "ges_meta_container_get_uint" ges_meta_container_get_uint ::
Ptr MetaContainer ->
CString ->
Ptr Word32 ->
IO CInt
metaContainerGetUint ::
(B.CallStack.HasCallStack, MonadIO m, IsMetaContainer a) =>
a
-> T.Text
-> m ((Bool, Word32))
metaContainerGetUint :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsMetaContainer a) =>
a -> Text -> m (Bool, Word32)
metaContainerGetUint a
container Text
metaItem = forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO forall a b. (a -> b) -> a -> b
$ do
Ptr MetaContainer
container' <- forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
container
CString
metaItem' <- Text -> IO CString
textToCString Text
metaItem
Ptr Word32
dest <- forall a. Storable a => IO (Ptr a)
allocMem :: IO (Ptr Word32)
CInt
result <- Ptr MetaContainer -> CString -> Ptr Word32 -> IO CInt
ges_meta_container_get_uint Ptr MetaContainer
container' CString
metaItem' Ptr Word32
dest
let result' :: Bool
result' = (forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
Word32
dest' <- forall a. Storable a => Ptr a -> IO a
peek Ptr Word32
dest
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
container
forall a. Ptr a -> IO ()
freeMem CString
metaItem'
forall a. Ptr a -> IO ()
freeMem Ptr Word32
dest
forall (m :: * -> *) a. Monad m => a -> m a
return (Bool
result', Word32
dest')
#if defined(ENABLE_OVERLOADING)
data MetaContainerGetUintMethodInfo
instance (signature ~ (T.Text -> m ((Bool, Word32))), MonadIO m, IsMetaContainer a) => O.OverloadedMethod MetaContainerGetUintMethodInfo a signature where
overloadedMethod = metaContainerGetUint
instance O.OverloadedMethodInfo MetaContainerGetUintMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Interfaces.MetaContainer.metaContainerGetUint",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.1/docs/GI-GES-Interfaces-MetaContainer.html#v:metaContainerGetUint"
})
#endif
foreign import ccall "ges_meta_container_get_uint64" ges_meta_container_get_uint64 ::
Ptr MetaContainer ->
CString ->
Ptr Word64 ->
IO CInt
metaContainerGetUint64 ::
(B.CallStack.HasCallStack, MonadIO m, IsMetaContainer a) =>
a
-> T.Text
-> m ((Bool, Word64))
metaContainerGetUint64 :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsMetaContainer a) =>
a -> Text -> m (Bool, CGType)
metaContainerGetUint64 a
container Text
metaItem = forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO forall a b. (a -> b) -> a -> b
$ do
Ptr MetaContainer
container' <- forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
container
CString
metaItem' <- Text -> IO CString
textToCString Text
metaItem
Ptr CGType
dest <- forall a. Storable a => IO (Ptr a)
allocMem :: IO (Ptr Word64)
CInt
result <- Ptr MetaContainer -> CString -> Ptr CGType -> IO CInt
ges_meta_container_get_uint64 Ptr MetaContainer
container' CString
metaItem' Ptr CGType
dest
let result' :: Bool
result' = (forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
CGType
dest' <- forall a. Storable a => Ptr a -> IO a
peek Ptr CGType
dest
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
container
forall a. Ptr a -> IO ()
freeMem CString
metaItem'
forall a. Ptr a -> IO ()
freeMem Ptr CGType
dest
forall (m :: * -> *) a. Monad m => a -> m a
return (Bool
result', CGType
dest')
#if defined(ENABLE_OVERLOADING)
data MetaContainerGetUint64MethodInfo
instance (signature ~ (T.Text -> m ((Bool, Word64))), MonadIO m, IsMetaContainer a) => O.OverloadedMethod MetaContainerGetUint64MethodInfo a signature where
overloadedMethod = metaContainerGetUint64
instance O.OverloadedMethodInfo MetaContainerGetUint64MethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Interfaces.MetaContainer.metaContainerGetUint64",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.1/docs/GI-GES-Interfaces-MetaContainer.html#v:metaContainerGetUint64"
})
#endif
foreign import ccall "ges_meta_container_metas_to_string" ges_meta_container_metas_to_string ::
Ptr MetaContainer ->
IO CString
metaContainerMetasToString ::
(B.CallStack.HasCallStack, MonadIO m, IsMetaContainer a) =>
a
-> m T.Text
metaContainerMetasToString :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsMetaContainer a) =>
a -> m Text
metaContainerMetasToString a
container = forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO forall a b. (a -> b) -> a -> b
$ do
Ptr MetaContainer
container' <- forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
container
CString
result <- Ptr MetaContainer -> IO CString
ges_meta_container_metas_to_string Ptr MetaContainer
container'
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"metaContainerMetasToString" CString
result
Text
result' <- HasCallStack => CString -> IO Text
cstringToText CString
result
forall a. Ptr a -> IO ()
freeMem CString
result
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
container
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result'
#if defined(ENABLE_OVERLOADING)
data MetaContainerMetasToStringMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsMetaContainer a) => O.OverloadedMethod MetaContainerMetasToStringMethodInfo a signature where
overloadedMethod = metaContainerMetasToString
instance O.OverloadedMethodInfo MetaContainerMetasToStringMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Interfaces.MetaContainer.metaContainerMetasToString",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.1/docs/GI-GES-Interfaces-MetaContainer.html#v:metaContainerMetasToString"
})
#endif
foreign import ccall "ges_meta_container_register_meta" ges_meta_container_register_meta ::
Ptr MetaContainer ->
CUInt ->
CString ->
Ptr GValue ->
IO CInt
metaContainerRegisterMeta ::
(B.CallStack.HasCallStack, MonadIO m, IsMetaContainer a) =>
a
-> [GES.Flags.MetaFlag]
-> T.Text
-> GValue
-> m Bool
metaContainerRegisterMeta :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsMetaContainer a) =>
a -> [MetaFlag] -> Text -> GValue -> m Bool
metaContainerRegisterMeta a
container [MetaFlag]
flags Text
metaItem GValue
value = forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO forall a b. (a -> b) -> a -> b
$ do
Ptr MetaContainer
container' <- forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
container
let flags' :: CUInt
flags' = forall b a. (Num b, IsGFlag a) => [a] -> b
gflagsToWord [MetaFlag]
flags
CString
metaItem' <- Text -> IO CString
textToCString Text
metaItem
Ptr GValue
value' <- forall a. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr a)
unsafeManagedPtrGetPtr GValue
value
CInt
result <- Ptr MetaContainer -> CUInt -> CString -> Ptr GValue -> IO CInt
ges_meta_container_register_meta Ptr MetaContainer
container' CUInt
flags' CString
metaItem' Ptr GValue
value'
let result' :: Bool
result' = (forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
container
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr GValue
value
forall a. Ptr a -> IO ()
freeMem CString
metaItem'
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data MetaContainerRegisterMetaMethodInfo
instance (signature ~ ([GES.Flags.MetaFlag] -> T.Text -> GValue -> m Bool), MonadIO m, IsMetaContainer a) => O.OverloadedMethod MetaContainerRegisterMetaMethodInfo a signature where
overloadedMethod = metaContainerRegisterMeta
instance O.OverloadedMethodInfo MetaContainerRegisterMetaMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Interfaces.MetaContainer.metaContainerRegisterMeta",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.1/docs/GI-GES-Interfaces-MetaContainer.html#v:metaContainerRegisterMeta"
})
#endif
foreign import ccall "ges_meta_container_register_meta_boolean" ges_meta_container_register_meta_boolean ::
Ptr MetaContainer ->
CUInt ->
CString ->
CInt ->
IO CInt
metaContainerRegisterMetaBoolean ::
(B.CallStack.HasCallStack, MonadIO m, IsMetaContainer a) =>
a
-> [GES.Flags.MetaFlag]
-> T.Text
-> Bool
-> m Bool
metaContainerRegisterMetaBoolean :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsMetaContainer a) =>
a -> [MetaFlag] -> Text -> Bool -> m Bool
metaContainerRegisterMetaBoolean a
container [MetaFlag]
flags Text
metaItem Bool
value = forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO forall a b. (a -> b) -> a -> b
$ do
Ptr MetaContainer
container' <- forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
container
let flags' :: CUInt
flags' = forall b a. (Num b, IsGFlag a) => [a] -> b
gflagsToWord [MetaFlag]
flags
CString
metaItem' <- Text -> IO CString
textToCString Text
metaItem
let value' :: CInt
value' = (forall a b. (Integral a, Num b) => a -> b
fromIntegral forall b c a. (b -> c) -> (a -> b) -> a -> c
. forall a. Enum a => a -> Int
fromEnum) Bool
value
CInt
result <- Ptr MetaContainer -> CUInt -> CString -> CInt -> IO CInt
ges_meta_container_register_meta_boolean Ptr MetaContainer
container' CUInt
flags' CString
metaItem' CInt
value'
let result' :: Bool
result' = (forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
container
forall a. Ptr a -> IO ()
freeMem CString
metaItem'
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data MetaContainerRegisterMetaBooleanMethodInfo
instance (signature ~ ([GES.Flags.MetaFlag] -> T.Text -> Bool -> m Bool), MonadIO m, IsMetaContainer a) => O.OverloadedMethod MetaContainerRegisterMetaBooleanMethodInfo a signature where
overloadedMethod = metaContainerRegisterMetaBoolean
instance O.OverloadedMethodInfo MetaContainerRegisterMetaBooleanMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Interfaces.MetaContainer.metaContainerRegisterMetaBoolean",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.1/docs/GI-GES-Interfaces-MetaContainer.html#v:metaContainerRegisterMetaBoolean"
})
#endif
foreign import ccall "ges_meta_container_register_meta_date" ges_meta_container_register_meta_date ::
Ptr MetaContainer ->
CUInt ->
CString ->
Ptr GLib.Date.Date ->
IO CInt
metaContainerRegisterMetaDate ::
(B.CallStack.HasCallStack, MonadIO m, IsMetaContainer a) =>
a
-> [GES.Flags.MetaFlag]
-> T.Text
-> GLib.Date.Date
-> m Bool
metaContainerRegisterMetaDate :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsMetaContainer a) =>
a -> [MetaFlag] -> Text -> Date -> m Bool
metaContainerRegisterMetaDate a
container [MetaFlag]
flags Text
metaItem Date
value = forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO forall a b. (a -> b) -> a -> b
$ do
Ptr MetaContainer
container' <- forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
container
let flags' :: CUInt
flags' = forall b a. (Num b, IsGFlag a) => [a] -> b
gflagsToWord [MetaFlag]
flags
CString
metaItem' <- Text -> IO CString
textToCString Text
metaItem
Ptr Date
value' <- forall a. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr a)
unsafeManagedPtrGetPtr Date
value
CInt
result <- Ptr MetaContainer -> CUInt -> CString -> Ptr Date -> IO CInt
ges_meta_container_register_meta_date Ptr MetaContainer
container' CUInt
flags' CString
metaItem' Ptr Date
value'
let result' :: Bool
result' = (forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
container
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr Date
value
forall a. Ptr a -> IO ()
freeMem CString
metaItem'
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data MetaContainerRegisterMetaDateMethodInfo
instance (signature ~ ([GES.Flags.MetaFlag] -> T.Text -> GLib.Date.Date -> m Bool), MonadIO m, IsMetaContainer a) => O.OverloadedMethod MetaContainerRegisterMetaDateMethodInfo a signature where
overloadedMethod = metaContainerRegisterMetaDate
instance O.OverloadedMethodInfo MetaContainerRegisterMetaDateMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Interfaces.MetaContainer.metaContainerRegisterMetaDate",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.1/docs/GI-GES-Interfaces-MetaContainer.html#v:metaContainerRegisterMetaDate"
})
#endif
foreign import ccall "ges_meta_container_register_meta_date_time" ges_meta_container_register_meta_date_time ::
Ptr MetaContainer ->
CUInt ->
CString ->
Ptr Gst.DateTime.DateTime ->
IO CInt
metaContainerRegisterMetaDateTime ::
(B.CallStack.HasCallStack, MonadIO m, IsMetaContainer a) =>
a
-> [GES.Flags.MetaFlag]
-> T.Text
-> Gst.DateTime.DateTime
-> m Bool
metaContainerRegisterMetaDateTime :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsMetaContainer a) =>
a -> [MetaFlag] -> Text -> DateTime -> m Bool
metaContainerRegisterMetaDateTime a
container [MetaFlag]
flags Text
metaItem DateTime
value = forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO forall a b. (a -> b) -> a -> b
$ do
Ptr MetaContainer
container' <- forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
container
let flags' :: CUInt
flags' = forall b a. (Num b, IsGFlag a) => [a] -> b
gflagsToWord [MetaFlag]
flags
CString
metaItem' <- Text -> IO CString
textToCString Text
metaItem
Ptr DateTime
value' <- forall a. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr a)
unsafeManagedPtrGetPtr DateTime
value
CInt
result <- Ptr MetaContainer -> CUInt -> CString -> Ptr DateTime -> IO CInt
ges_meta_container_register_meta_date_time Ptr MetaContainer
container' CUInt
flags' CString
metaItem' Ptr DateTime
value'
let result' :: Bool
result' = (forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
container
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr DateTime
value
forall a. Ptr a -> IO ()
freeMem CString
metaItem'
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data MetaContainerRegisterMetaDateTimeMethodInfo
instance (signature ~ ([GES.Flags.MetaFlag] -> T.Text -> Gst.DateTime.DateTime -> m Bool), MonadIO m, IsMetaContainer a) => O.OverloadedMethod MetaContainerRegisterMetaDateTimeMethodInfo a signature where
overloadedMethod = metaContainerRegisterMetaDateTime
instance O.OverloadedMethodInfo MetaContainerRegisterMetaDateTimeMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Interfaces.MetaContainer.metaContainerRegisterMetaDateTime",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.1/docs/GI-GES-Interfaces-MetaContainer.html#v:metaContainerRegisterMetaDateTime"
})
#endif
foreign import ccall "ges_meta_container_register_meta_double" ges_meta_container_register_meta_double ::
Ptr MetaContainer ->
CUInt ->
CString ->
CDouble ->
IO CInt
metaContainerRegisterMetaDouble ::
(B.CallStack.HasCallStack, MonadIO m, IsMetaContainer a) =>
a
-> [GES.Flags.MetaFlag]
-> T.Text
-> Double
-> m Bool
metaContainerRegisterMetaDouble :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsMetaContainer a) =>
a -> [MetaFlag] -> Text -> Double -> m Bool
metaContainerRegisterMetaDouble a
container [MetaFlag]
flags Text
metaItem Double
value = forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO forall a b. (a -> b) -> a -> b
$ do
Ptr MetaContainer
container' <- forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
container
let flags' :: CUInt
flags' = forall b a. (Num b, IsGFlag a) => [a] -> b
gflagsToWord [MetaFlag]
flags
CString
metaItem' <- Text -> IO CString
textToCString Text
metaItem
let value' :: CDouble
value' = forall a b. (Real a, Fractional b) => a -> b
realToFrac Double
value
CInt
result <- Ptr MetaContainer -> CUInt -> CString -> CDouble -> IO CInt
ges_meta_container_register_meta_double Ptr MetaContainer
container' CUInt
flags' CString
metaItem' CDouble
value'
let result' :: Bool
result' = (forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
container
forall a. Ptr a -> IO ()
freeMem CString
metaItem'
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data MetaContainerRegisterMetaDoubleMethodInfo
instance (signature ~ ([GES.Flags.MetaFlag] -> T.Text -> Double -> m Bool), MonadIO m, IsMetaContainer a) => O.OverloadedMethod MetaContainerRegisterMetaDoubleMethodInfo a signature where
overloadedMethod = metaContainerRegisterMetaDouble
instance O.OverloadedMethodInfo MetaContainerRegisterMetaDoubleMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Interfaces.MetaContainer.metaContainerRegisterMetaDouble",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.1/docs/GI-GES-Interfaces-MetaContainer.html#v:metaContainerRegisterMetaDouble"
})
#endif
foreign import ccall "ges_meta_container_register_meta_float" ges_meta_container_register_meta_float ::
Ptr MetaContainer ->
CUInt ->
CString ->
CFloat ->
IO CInt
metaContainerRegisterMetaFloat ::
(B.CallStack.HasCallStack, MonadIO m, IsMetaContainer a) =>
a
-> [GES.Flags.MetaFlag]
-> T.Text
-> Float
-> m Bool
metaContainerRegisterMetaFloat :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsMetaContainer a) =>
a -> [MetaFlag] -> Text -> Float -> m Bool
metaContainerRegisterMetaFloat a
container [MetaFlag]
flags Text
metaItem Float
value = forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO forall a b. (a -> b) -> a -> b
$ do
Ptr MetaContainer
container' <- forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
container
let flags' :: CUInt
flags' = forall b a. (Num b, IsGFlag a) => [a] -> b
gflagsToWord [MetaFlag]
flags
CString
metaItem' <- Text -> IO CString
textToCString Text
metaItem
let value' :: CFloat
value' = forall a b. (Real a, Fractional b) => a -> b
realToFrac Float
value
CInt
result <- Ptr MetaContainer -> CUInt -> CString -> CFloat -> IO CInt
ges_meta_container_register_meta_float Ptr MetaContainer
container' CUInt
flags' CString
metaItem' CFloat
value'
let result' :: Bool
result' = (forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
container
forall a. Ptr a -> IO ()
freeMem CString
metaItem'
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data MetaContainerRegisterMetaFloatMethodInfo
instance (signature ~ ([GES.Flags.MetaFlag] -> T.Text -> Float -> m Bool), MonadIO m, IsMetaContainer a) => O.OverloadedMethod MetaContainerRegisterMetaFloatMethodInfo a signature where
overloadedMethod = metaContainerRegisterMetaFloat
instance O.OverloadedMethodInfo MetaContainerRegisterMetaFloatMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Interfaces.MetaContainer.metaContainerRegisterMetaFloat",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.1/docs/GI-GES-Interfaces-MetaContainer.html#v:metaContainerRegisterMetaFloat"
})
#endif
foreign import ccall "ges_meta_container_register_meta_int" ges_meta_container_register_meta_int ::
Ptr MetaContainer ->
CUInt ->
CString ->
Int32 ->
IO CInt
metaContainerRegisterMetaInt ::
(B.CallStack.HasCallStack, MonadIO m, IsMetaContainer a) =>
a
-> [GES.Flags.MetaFlag]
-> T.Text
-> Int32
-> m Bool
metaContainerRegisterMetaInt :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsMetaContainer a) =>
a -> [MetaFlag] -> Text -> Int32 -> m Bool
metaContainerRegisterMetaInt a
container [MetaFlag]
flags Text
metaItem Int32
value = forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO forall a b. (a -> b) -> a -> b
$ do
Ptr MetaContainer
container' <- forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
container
let flags' :: CUInt
flags' = forall b a. (Num b, IsGFlag a) => [a] -> b
gflagsToWord [MetaFlag]
flags
CString
metaItem' <- Text -> IO CString
textToCString Text
metaItem
CInt
result <- Ptr MetaContainer -> CUInt -> CString -> Int32 -> IO CInt
ges_meta_container_register_meta_int Ptr MetaContainer
container' CUInt
flags' CString
metaItem' Int32
value
let result' :: Bool
result' = (forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
container
forall a. Ptr a -> IO ()
freeMem CString
metaItem'
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data MetaContainerRegisterMetaIntMethodInfo
instance (signature ~ ([GES.Flags.MetaFlag] -> T.Text -> Int32 -> m Bool), MonadIO m, IsMetaContainer a) => O.OverloadedMethod MetaContainerRegisterMetaIntMethodInfo a signature where
overloadedMethod = metaContainerRegisterMetaInt
instance O.OverloadedMethodInfo MetaContainerRegisterMetaIntMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Interfaces.MetaContainer.metaContainerRegisterMetaInt",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.1/docs/GI-GES-Interfaces-MetaContainer.html#v:metaContainerRegisterMetaInt"
})
#endif
foreign import ccall "ges_meta_container_register_meta_int64" ges_meta_container_register_meta_int64 ::
Ptr MetaContainer ->
CUInt ->
CString ->
Int64 ->
IO CInt
metaContainerRegisterMetaInt64 ::
(B.CallStack.HasCallStack, MonadIO m, IsMetaContainer a) =>
a
-> [GES.Flags.MetaFlag]
-> T.Text
-> Int64
-> m Bool
metaContainerRegisterMetaInt64 :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsMetaContainer a) =>
a -> [MetaFlag] -> Text -> Int64 -> m Bool
metaContainerRegisterMetaInt64 a
container [MetaFlag]
flags Text
metaItem Int64
value = forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO forall a b. (a -> b) -> a -> b
$ do
Ptr MetaContainer
container' <- forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
container
let flags' :: CUInt
flags' = forall b a. (Num b, IsGFlag a) => [a] -> b
gflagsToWord [MetaFlag]
flags
CString
metaItem' <- Text -> IO CString
textToCString Text
metaItem
CInt
result <- Ptr MetaContainer -> CUInt -> CString -> Int64 -> IO CInt
ges_meta_container_register_meta_int64 Ptr MetaContainer
container' CUInt
flags' CString
metaItem' Int64
value
let result' :: Bool
result' = (forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
container
forall a. Ptr a -> IO ()
freeMem CString
metaItem'
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data MetaContainerRegisterMetaInt64MethodInfo
instance (signature ~ ([GES.Flags.MetaFlag] -> T.Text -> Int64 -> m Bool), MonadIO m, IsMetaContainer a) => O.OverloadedMethod MetaContainerRegisterMetaInt64MethodInfo a signature where
overloadedMethod = metaContainerRegisterMetaInt64
instance O.OverloadedMethodInfo MetaContainerRegisterMetaInt64MethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Interfaces.MetaContainer.metaContainerRegisterMetaInt64",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.1/docs/GI-GES-Interfaces-MetaContainer.html#v:metaContainerRegisterMetaInt64"
})
#endif
foreign import ccall "ges_meta_container_register_meta_string" ges_meta_container_register_meta_string ::
Ptr MetaContainer ->
CUInt ->
CString ->
CString ->
IO CInt
metaContainerRegisterMetaString ::
(B.CallStack.HasCallStack, MonadIO m, IsMetaContainer a) =>
a
-> [GES.Flags.MetaFlag]
-> T.Text
-> T.Text
-> m Bool
metaContainerRegisterMetaString :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsMetaContainer a) =>
a -> [MetaFlag] -> Text -> Text -> m Bool
metaContainerRegisterMetaString a
container [MetaFlag]
flags Text
metaItem Text
value = forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO forall a b. (a -> b) -> a -> b
$ do
Ptr MetaContainer
container' <- forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
container
let flags' :: CUInt
flags' = forall b a. (Num b, IsGFlag a) => [a] -> b
gflagsToWord [MetaFlag]
flags
CString
metaItem' <- Text -> IO CString
textToCString Text
metaItem
CString
value' <- Text -> IO CString
textToCString Text
value
CInt
result <- Ptr MetaContainer -> CUInt -> CString -> CString -> IO CInt
ges_meta_container_register_meta_string Ptr MetaContainer
container' CUInt
flags' CString
metaItem' CString
value'
let result' :: Bool
result' = (forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
container
forall a. Ptr a -> IO ()
freeMem CString
metaItem'
forall a. Ptr a -> IO ()
freeMem CString
value'
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data MetaContainerRegisterMetaStringMethodInfo
instance (signature ~ ([GES.Flags.MetaFlag] -> T.Text -> T.Text -> m Bool), MonadIO m, IsMetaContainer a) => O.OverloadedMethod MetaContainerRegisterMetaStringMethodInfo a signature where
overloadedMethod = metaContainerRegisterMetaString
instance O.OverloadedMethodInfo MetaContainerRegisterMetaStringMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Interfaces.MetaContainer.metaContainerRegisterMetaString",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.1/docs/GI-GES-Interfaces-MetaContainer.html#v:metaContainerRegisterMetaString"
})
#endif
foreign import ccall "ges_meta_container_register_meta_uint" ges_meta_container_register_meta_uint ::
Ptr MetaContainer ->
CUInt ->
CString ->
Word32 ->
IO CInt
metaContainerRegisterMetaUint ::
(B.CallStack.HasCallStack, MonadIO m, IsMetaContainer a) =>
a
-> [GES.Flags.MetaFlag]
-> T.Text
-> Word32
-> m Bool
metaContainerRegisterMetaUint :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsMetaContainer a) =>
a -> [MetaFlag] -> Text -> Word32 -> m Bool
metaContainerRegisterMetaUint a
container [MetaFlag]
flags Text
metaItem Word32
value = forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO forall a b. (a -> b) -> a -> b
$ do
Ptr MetaContainer
container' <- forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
container
let flags' :: CUInt
flags' = forall b a. (Num b, IsGFlag a) => [a] -> b
gflagsToWord [MetaFlag]
flags
CString
metaItem' <- Text -> IO CString
textToCString Text
metaItem
CInt
result <- Ptr MetaContainer -> CUInt -> CString -> Word32 -> IO CInt
ges_meta_container_register_meta_uint Ptr MetaContainer
container' CUInt
flags' CString
metaItem' Word32
value
let result' :: Bool
result' = (forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
container
forall a. Ptr a -> IO ()
freeMem CString
metaItem'
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data MetaContainerRegisterMetaUintMethodInfo
instance (signature ~ ([GES.Flags.MetaFlag] -> T.Text -> Word32 -> m Bool), MonadIO m, IsMetaContainer a) => O.OverloadedMethod MetaContainerRegisterMetaUintMethodInfo a signature where
overloadedMethod = metaContainerRegisterMetaUint
instance O.OverloadedMethodInfo MetaContainerRegisterMetaUintMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Interfaces.MetaContainer.metaContainerRegisterMetaUint",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.1/docs/GI-GES-Interfaces-MetaContainer.html#v:metaContainerRegisterMetaUint"
})
#endif
foreign import ccall "ges_meta_container_register_meta_uint64" ges_meta_container_register_meta_uint64 ::
Ptr MetaContainer ->
CUInt ->
CString ->
Word64 ->
IO CInt
metaContainerRegisterMetaUint64 ::
(B.CallStack.HasCallStack, MonadIO m, IsMetaContainer a) =>
a
-> [GES.Flags.MetaFlag]
-> T.Text
-> Word64
-> m Bool
metaContainerRegisterMetaUint64 :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsMetaContainer a) =>
a -> [MetaFlag] -> Text -> CGType -> m Bool
metaContainerRegisterMetaUint64 a
container [MetaFlag]
flags Text
metaItem CGType
value = forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO forall a b. (a -> b) -> a -> b
$ do
Ptr MetaContainer
container' <- forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
container
let flags' :: CUInt
flags' = forall b a. (Num b, IsGFlag a) => [a] -> b
gflagsToWord [MetaFlag]
flags
CString
metaItem' <- Text -> IO CString
textToCString Text
metaItem
CInt
result <- Ptr MetaContainer -> CUInt -> CString -> CGType -> IO CInt
ges_meta_container_register_meta_uint64 Ptr MetaContainer
container' CUInt
flags' CString
metaItem' CGType
value
let result' :: Bool
result' = (forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
container
forall a. Ptr a -> IO ()
freeMem CString
metaItem'
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data MetaContainerRegisterMetaUint64MethodInfo
instance (signature ~ ([GES.Flags.MetaFlag] -> T.Text -> Word64 -> m Bool), MonadIO m, IsMetaContainer a) => O.OverloadedMethod MetaContainerRegisterMetaUint64MethodInfo a signature where
overloadedMethod = metaContainerRegisterMetaUint64
instance O.OverloadedMethodInfo MetaContainerRegisterMetaUint64MethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Interfaces.MetaContainer.metaContainerRegisterMetaUint64",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.1/docs/GI-GES-Interfaces-MetaContainer.html#v:metaContainerRegisterMetaUint64"
})
#endif
foreign import ccall "ges_meta_container_register_static_meta" ges_meta_container_register_static_meta ::
Ptr MetaContainer ->
CUInt ->
CString ->
CGType ->
IO CInt
metaContainerRegisterStaticMeta ::
(B.CallStack.HasCallStack, MonadIO m, IsMetaContainer a) =>
a
-> [GES.Flags.MetaFlag]
-> T.Text
-> GType
-> m Bool
metaContainerRegisterStaticMeta :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsMetaContainer a) =>
a -> [MetaFlag] -> Text -> GType -> m Bool
metaContainerRegisterStaticMeta a
container [MetaFlag]
flags Text
metaItem GType
type_ = forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO forall a b. (a -> b) -> a -> b
$ do
Ptr MetaContainer
container' <- forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
container
let flags' :: CUInt
flags' = forall b a. (Num b, IsGFlag a) => [a] -> b
gflagsToWord [MetaFlag]
flags
CString
metaItem' <- Text -> IO CString
textToCString Text
metaItem
let type_' :: CGType
type_' = GType -> CGType
gtypeToCGType GType
type_
CInt
result <- Ptr MetaContainer -> CUInt -> CString -> CGType -> IO CInt
ges_meta_container_register_static_meta Ptr MetaContainer
container' CUInt
flags' CString
metaItem' CGType
type_'
let result' :: Bool
result' = (forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
container
forall a. Ptr a -> IO ()
freeMem CString
metaItem'
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data MetaContainerRegisterStaticMetaMethodInfo
instance (signature ~ ([GES.Flags.MetaFlag] -> T.Text -> GType -> m Bool), MonadIO m, IsMetaContainer a) => O.OverloadedMethod MetaContainerRegisterStaticMetaMethodInfo a signature where
overloadedMethod = metaContainerRegisterStaticMeta
instance O.OverloadedMethodInfo MetaContainerRegisterStaticMetaMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Interfaces.MetaContainer.metaContainerRegisterStaticMeta",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.1/docs/GI-GES-Interfaces-MetaContainer.html#v:metaContainerRegisterStaticMeta"
})
#endif
foreign import ccall "ges_meta_container_set_boolean" ges_meta_container_set_boolean ::
Ptr MetaContainer ->
CString ->
CInt ->
IO CInt
metaContainerSetBoolean ::
(B.CallStack.HasCallStack, MonadIO m, IsMetaContainer a) =>
a
-> T.Text
-> Bool
-> m Bool
metaContainerSetBoolean :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsMetaContainer a) =>
a -> Text -> Bool -> m Bool
metaContainerSetBoolean a
container Text
metaItem Bool
value = forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO forall a b. (a -> b) -> a -> b
$ do
Ptr MetaContainer
container' <- forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
container
CString
metaItem' <- Text -> IO CString
textToCString Text
metaItem
let value' :: CInt
value' = (forall a b. (Integral a, Num b) => a -> b
fromIntegral forall b c a. (b -> c) -> (a -> b) -> a -> c
. forall a. Enum a => a -> Int
fromEnum) Bool
value
CInt
result <- Ptr MetaContainer -> CString -> CInt -> IO CInt
ges_meta_container_set_boolean Ptr MetaContainer
container' CString
metaItem' CInt
value'
let result' :: Bool
result' = (forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
container
forall a. Ptr a -> IO ()
freeMem CString
metaItem'
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data MetaContainerSetBooleanMethodInfo
instance (signature ~ (T.Text -> Bool -> m Bool), MonadIO m, IsMetaContainer a) => O.OverloadedMethod MetaContainerSetBooleanMethodInfo a signature where
overloadedMethod = metaContainerSetBoolean
instance O.OverloadedMethodInfo MetaContainerSetBooleanMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Interfaces.MetaContainer.metaContainerSetBoolean",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.1/docs/GI-GES-Interfaces-MetaContainer.html#v:metaContainerSetBoolean"
})
#endif
foreign import ccall "ges_meta_container_set_date" ges_meta_container_set_date ::
Ptr MetaContainer ->
CString ->
Ptr GLib.Date.Date ->
IO CInt
metaContainerSetDate ::
(B.CallStack.HasCallStack, MonadIO m, IsMetaContainer a) =>
a
-> T.Text
-> GLib.Date.Date
-> m Bool
metaContainerSetDate :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsMetaContainer a) =>
a -> Text -> Date -> m Bool
metaContainerSetDate a
container Text
metaItem Date
value = forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO forall a b. (a -> b) -> a -> b
$ do
Ptr MetaContainer
container' <- forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
container
CString
metaItem' <- Text -> IO CString
textToCString Text
metaItem
Ptr Date
value' <- forall a. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr a)
unsafeManagedPtrGetPtr Date
value
CInt
result <- Ptr MetaContainer -> CString -> Ptr Date -> IO CInt
ges_meta_container_set_date Ptr MetaContainer
container' CString
metaItem' Ptr Date
value'
let result' :: Bool
result' = (forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
container
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr Date
value
forall a. Ptr a -> IO ()
freeMem CString
metaItem'
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data MetaContainerSetDateMethodInfo
instance (signature ~ (T.Text -> GLib.Date.Date -> m Bool), MonadIO m, IsMetaContainer a) => O.OverloadedMethod MetaContainerSetDateMethodInfo a signature where
overloadedMethod = metaContainerSetDate
instance O.OverloadedMethodInfo MetaContainerSetDateMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Interfaces.MetaContainer.metaContainerSetDate",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.1/docs/GI-GES-Interfaces-MetaContainer.html#v:metaContainerSetDate"
})
#endif
foreign import ccall "ges_meta_container_set_date_time" ges_meta_container_set_date_time ::
Ptr MetaContainer ->
CString ->
Ptr Gst.DateTime.DateTime ->
IO CInt
metaContainerSetDateTime ::
(B.CallStack.HasCallStack, MonadIO m, IsMetaContainer a) =>
a
-> T.Text
-> Gst.DateTime.DateTime
-> m Bool
metaContainerSetDateTime :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsMetaContainer a) =>
a -> Text -> DateTime -> m Bool
metaContainerSetDateTime a
container Text
metaItem DateTime
value = forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO forall a b. (a -> b) -> a -> b
$ do
Ptr MetaContainer
container' <- forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
container
CString
metaItem' <- Text -> IO CString
textToCString Text
metaItem
Ptr DateTime
value' <- forall a. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr a)
unsafeManagedPtrGetPtr DateTime
value
CInt
result <- Ptr MetaContainer -> CString -> Ptr DateTime -> IO CInt
ges_meta_container_set_date_time Ptr MetaContainer
container' CString
metaItem' Ptr DateTime
value'
let result' :: Bool
result' = (forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
container
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr DateTime
value
forall a. Ptr a -> IO ()
freeMem CString
metaItem'
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data MetaContainerSetDateTimeMethodInfo
instance (signature ~ (T.Text -> Gst.DateTime.DateTime -> m Bool), MonadIO m, IsMetaContainer a) => O.OverloadedMethod MetaContainerSetDateTimeMethodInfo a signature where
overloadedMethod = metaContainerSetDateTime
instance O.OverloadedMethodInfo MetaContainerSetDateTimeMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Interfaces.MetaContainer.metaContainerSetDateTime",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.1/docs/GI-GES-Interfaces-MetaContainer.html#v:metaContainerSetDateTime"
})
#endif
foreign import ccall "ges_meta_container_set_double" ges_meta_container_set_double ::
Ptr MetaContainer ->
CString ->
CDouble ->
IO CInt
metaContainerSetDouble ::
(B.CallStack.HasCallStack, MonadIO m, IsMetaContainer a) =>
a
-> T.Text
-> Double
-> m Bool
metaContainerSetDouble :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsMetaContainer a) =>
a -> Text -> Double -> m Bool
metaContainerSetDouble a
container Text
metaItem Double
value = forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO forall a b. (a -> b) -> a -> b
$ do
Ptr MetaContainer
container' <- forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
container
CString
metaItem' <- Text -> IO CString
textToCString Text
metaItem
let value' :: CDouble
value' = forall a b. (Real a, Fractional b) => a -> b
realToFrac Double
value
CInt
result <- Ptr MetaContainer -> CString -> CDouble -> IO CInt
ges_meta_container_set_double Ptr MetaContainer
container' CString
metaItem' CDouble
value'
let result' :: Bool
result' = (forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
container
forall a. Ptr a -> IO ()
freeMem CString
metaItem'
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data MetaContainerSetDoubleMethodInfo
instance (signature ~ (T.Text -> Double -> m Bool), MonadIO m, IsMetaContainer a) => O.OverloadedMethod MetaContainerSetDoubleMethodInfo a signature where
overloadedMethod = metaContainerSetDouble
instance O.OverloadedMethodInfo MetaContainerSetDoubleMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Interfaces.MetaContainer.metaContainerSetDouble",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.1/docs/GI-GES-Interfaces-MetaContainer.html#v:metaContainerSetDouble"
})
#endif
foreign import ccall "ges_meta_container_set_float" ges_meta_container_set_float ::
Ptr MetaContainer ->
CString ->
CFloat ->
IO CInt
metaContainerSetFloat ::
(B.CallStack.HasCallStack, MonadIO m, IsMetaContainer a) =>
a
-> T.Text
-> Float
-> m Bool
metaContainerSetFloat :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsMetaContainer a) =>
a -> Text -> Float -> m Bool
metaContainerSetFloat a
container Text
metaItem Float
value = forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO forall a b. (a -> b) -> a -> b
$ do
Ptr MetaContainer
container' <- forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
container
CString
metaItem' <- Text -> IO CString
textToCString Text
metaItem
let value' :: CFloat
value' = forall a b. (Real a, Fractional b) => a -> b
realToFrac Float
value
CInt
result <- Ptr MetaContainer -> CString -> CFloat -> IO CInt
ges_meta_container_set_float Ptr MetaContainer
container' CString
metaItem' CFloat
value'
let result' :: Bool
result' = (forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
container
forall a. Ptr a -> IO ()
freeMem CString
metaItem'
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data MetaContainerSetFloatMethodInfo
instance (signature ~ (T.Text -> Float -> m Bool), MonadIO m, IsMetaContainer a) => O.OverloadedMethod MetaContainerSetFloatMethodInfo a signature where
overloadedMethod = metaContainerSetFloat
instance O.OverloadedMethodInfo MetaContainerSetFloatMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Interfaces.MetaContainer.metaContainerSetFloat",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.1/docs/GI-GES-Interfaces-MetaContainer.html#v:metaContainerSetFloat"
})
#endif
foreign import ccall "ges_meta_container_set_int" ges_meta_container_set_int ::
Ptr MetaContainer ->
CString ->
Int32 ->
IO CInt
metaContainerSetInt ::
(B.CallStack.HasCallStack, MonadIO m, IsMetaContainer a) =>
a
-> T.Text
-> Int32
-> m Bool
metaContainerSetInt :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsMetaContainer a) =>
a -> Text -> Int32 -> m Bool
metaContainerSetInt a
container Text
metaItem Int32
value = forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO forall a b. (a -> b) -> a -> b
$ do
Ptr MetaContainer
container' <- forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
container
CString
metaItem' <- Text -> IO CString
textToCString Text
metaItem
CInt
result <- Ptr MetaContainer -> CString -> Int32 -> IO CInt
ges_meta_container_set_int Ptr MetaContainer
container' CString
metaItem' Int32
value
let result' :: Bool
result' = (forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
container
forall a. Ptr a -> IO ()
freeMem CString
metaItem'
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data MetaContainerSetIntMethodInfo
instance (signature ~ (T.Text -> Int32 -> m Bool), MonadIO m, IsMetaContainer a) => O.OverloadedMethod MetaContainerSetIntMethodInfo a signature where
overloadedMethod = metaContainerSetInt
instance O.OverloadedMethodInfo MetaContainerSetIntMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Interfaces.MetaContainer.metaContainerSetInt",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.1/docs/GI-GES-Interfaces-MetaContainer.html#v:metaContainerSetInt"
})
#endif
foreign import ccall "ges_meta_container_set_int64" ges_meta_container_set_int64 ::
Ptr MetaContainer ->
CString ->
Int64 ->
IO CInt
metaContainerSetInt64 ::
(B.CallStack.HasCallStack, MonadIO m, IsMetaContainer a) =>
a
-> T.Text
-> Int64
-> m Bool
metaContainerSetInt64 :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsMetaContainer a) =>
a -> Text -> Int64 -> m Bool
metaContainerSetInt64 a
container Text
metaItem Int64
value = forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO forall a b. (a -> b) -> a -> b
$ do
Ptr MetaContainer
container' <- forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
container
CString
metaItem' <- Text -> IO CString
textToCString Text
metaItem
CInt
result <- Ptr MetaContainer -> CString -> Int64 -> IO CInt
ges_meta_container_set_int64 Ptr MetaContainer
container' CString
metaItem' Int64
value
let result' :: Bool
result' = (forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
container
forall a. Ptr a -> IO ()
freeMem CString
metaItem'
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data MetaContainerSetInt64MethodInfo
instance (signature ~ (T.Text -> Int64 -> m Bool), MonadIO m, IsMetaContainer a) => O.OverloadedMethod MetaContainerSetInt64MethodInfo a signature where
overloadedMethod = metaContainerSetInt64
instance O.OverloadedMethodInfo MetaContainerSetInt64MethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Interfaces.MetaContainer.metaContainerSetInt64",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.1/docs/GI-GES-Interfaces-MetaContainer.html#v:metaContainerSetInt64"
})
#endif
foreign import ccall "ges_meta_container_set_marker_list" ges_meta_container_set_marker_list ::
Ptr MetaContainer ->
CString ->
Ptr GES.MarkerList.MarkerList ->
IO CInt
metaContainerSetMarkerList ::
(B.CallStack.HasCallStack, MonadIO m, IsMetaContainer a, GES.MarkerList.IsMarkerList b) =>
a
-> T.Text
-> b
-> m Bool
metaContainerSetMarkerList :: forall (m :: * -> *) a b.
(HasCallStack, MonadIO m, IsMetaContainer a, IsMarkerList b) =>
a -> Text -> b -> m Bool
metaContainerSetMarkerList a
container Text
metaItem b
list = forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO forall a b. (a -> b) -> a -> b
$ do
Ptr MetaContainer
container' <- forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
container
CString
metaItem' <- Text -> IO CString
textToCString Text
metaItem
Ptr MarkerList
list' <- forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
list
CInt
result <- Ptr MetaContainer -> CString -> Ptr MarkerList -> IO CInt
ges_meta_container_set_marker_list Ptr MetaContainer
container' CString
metaItem' Ptr MarkerList
list'
let result' :: Bool
result' = (forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
container
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr b
list
forall a. Ptr a -> IO ()
freeMem CString
metaItem'
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data MetaContainerSetMarkerListMethodInfo
instance (signature ~ (T.Text -> b -> m Bool), MonadIO m, IsMetaContainer a, GES.MarkerList.IsMarkerList b) => O.OverloadedMethod MetaContainerSetMarkerListMethodInfo a signature where
overloadedMethod = metaContainerSetMarkerList
instance O.OverloadedMethodInfo MetaContainerSetMarkerListMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Interfaces.MetaContainer.metaContainerSetMarkerList",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.1/docs/GI-GES-Interfaces-MetaContainer.html#v:metaContainerSetMarkerList"
})
#endif
foreign import ccall "ges_meta_container_set_meta" ges_meta_container_set_meta ::
Ptr MetaContainer ->
CString ->
Ptr GValue ->
IO CInt
metaContainerSetMeta ::
(B.CallStack.HasCallStack, MonadIO m, IsMetaContainer a) =>
a
-> T.Text
-> Maybe (GValue)
-> m Bool
metaContainerSetMeta :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsMetaContainer a) =>
a -> Text -> Maybe GValue -> m Bool
metaContainerSetMeta a
container Text
metaItem Maybe GValue
value = forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO forall a b. (a -> b) -> a -> b
$ do
Ptr MetaContainer
container' <- forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
container
CString
metaItem' <- Text -> IO CString
textToCString Text
metaItem
Ptr GValue
maybeValue <- case Maybe GValue
value of
Maybe GValue
Nothing -> forall (m :: * -> *) a. Monad m => a -> m a
return forall a. Ptr a
nullPtr
Just GValue
jValue -> do
Ptr GValue
jValue' <- forall a. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr a)
unsafeManagedPtrGetPtr GValue
jValue
forall (m :: * -> *) a. Monad m => a -> m a
return Ptr GValue
jValue'
CInt
result <- Ptr MetaContainer -> CString -> Ptr GValue -> IO CInt
ges_meta_container_set_meta Ptr MetaContainer
container' CString
metaItem' Ptr GValue
maybeValue
let result' :: Bool
result' = (forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
container
forall (m :: * -> *) a. Monad m => Maybe a -> (a -> m ()) -> m ()
whenJust Maybe GValue
value forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr
forall a. Ptr a -> IO ()
freeMem CString
metaItem'
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data MetaContainerSetMetaMethodInfo
instance (signature ~ (T.Text -> Maybe (GValue) -> m Bool), MonadIO m, IsMetaContainer a) => O.OverloadedMethod MetaContainerSetMetaMethodInfo a signature where
overloadedMethod = metaContainerSetMeta
instance O.OverloadedMethodInfo MetaContainerSetMetaMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Interfaces.MetaContainer.metaContainerSetMeta",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.1/docs/GI-GES-Interfaces-MetaContainer.html#v:metaContainerSetMeta"
})
#endif
foreign import ccall "ges_meta_container_set_string" ges_meta_container_set_string ::
Ptr MetaContainer ->
CString ->
CString ->
IO CInt
metaContainerSetString ::
(B.CallStack.HasCallStack, MonadIO m, IsMetaContainer a) =>
a
-> T.Text
-> T.Text
-> m Bool
metaContainerSetString :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsMetaContainer a) =>
a -> Text -> Text -> m Bool
metaContainerSetString a
container Text
metaItem Text
value = forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO forall a b. (a -> b) -> a -> b
$ do
Ptr MetaContainer
container' <- forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
container
CString
metaItem' <- Text -> IO CString
textToCString Text
metaItem
CString
value' <- Text -> IO CString
textToCString Text
value
CInt
result <- Ptr MetaContainer -> CString -> CString -> IO CInt
ges_meta_container_set_string Ptr MetaContainer
container' CString
metaItem' CString
value'
let result' :: Bool
result' = (forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
container
forall a. Ptr a -> IO ()
freeMem CString
metaItem'
forall a. Ptr a -> IO ()
freeMem CString
value'
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data MetaContainerSetStringMethodInfo
instance (signature ~ (T.Text -> T.Text -> m Bool), MonadIO m, IsMetaContainer a) => O.OverloadedMethod MetaContainerSetStringMethodInfo a signature where
overloadedMethod = metaContainerSetString
instance O.OverloadedMethodInfo MetaContainerSetStringMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Interfaces.MetaContainer.metaContainerSetString",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.1/docs/GI-GES-Interfaces-MetaContainer.html#v:metaContainerSetString"
})
#endif
foreign import ccall "ges_meta_container_set_uint" ges_meta_container_set_uint ::
Ptr MetaContainer ->
CString ->
Word32 ->
IO CInt
metaContainerSetUint ::
(B.CallStack.HasCallStack, MonadIO m, IsMetaContainer a) =>
a
-> T.Text
-> Word32
-> m Bool
metaContainerSetUint :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsMetaContainer a) =>
a -> Text -> Word32 -> m Bool
metaContainerSetUint a
container Text
metaItem Word32
value = forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO forall a b. (a -> b) -> a -> b
$ do
Ptr MetaContainer
container' <- forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
container
CString
metaItem' <- Text -> IO CString
textToCString Text
metaItem
CInt
result <- Ptr MetaContainer -> CString -> Word32 -> IO CInt
ges_meta_container_set_uint Ptr MetaContainer
container' CString
metaItem' Word32
value
let result' :: Bool
result' = (forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
container
forall a. Ptr a -> IO ()
freeMem CString
metaItem'
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data MetaContainerSetUintMethodInfo
instance (signature ~ (T.Text -> Word32 -> m Bool), MonadIO m, IsMetaContainer a) => O.OverloadedMethod MetaContainerSetUintMethodInfo a signature where
overloadedMethod = metaContainerSetUint
instance O.OverloadedMethodInfo MetaContainerSetUintMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Interfaces.MetaContainer.metaContainerSetUint",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.1/docs/GI-GES-Interfaces-MetaContainer.html#v:metaContainerSetUint"
})
#endif
foreign import ccall "ges_meta_container_set_uint64" ges_meta_container_set_uint64 ::
Ptr MetaContainer ->
CString ->
Word64 ->
IO CInt
metaContainerSetUint64 ::
(B.CallStack.HasCallStack, MonadIO m, IsMetaContainer a) =>
a
-> T.Text
-> Word64
-> m Bool
metaContainerSetUint64 :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsMetaContainer a) =>
a -> Text -> CGType -> m Bool
metaContainerSetUint64 a
container Text
metaItem CGType
value = forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO forall a b. (a -> b) -> a -> b
$ do
Ptr MetaContainer
container' <- forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
container
CString
metaItem' <- Text -> IO CString
textToCString Text
metaItem
CInt
result <- Ptr MetaContainer -> CString -> CGType -> IO CInt
ges_meta_container_set_uint64 Ptr MetaContainer
container' CString
metaItem' CGType
value
let result' :: Bool
result' = (forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
container
forall a. Ptr a -> IO ()
freeMem CString
metaItem'
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data MetaContainerSetUint64MethodInfo
instance (signature ~ (T.Text -> Word64 -> m Bool), MonadIO m, IsMetaContainer a) => O.OverloadedMethod MetaContainerSetUint64MethodInfo a signature where
overloadedMethod = metaContainerSetUint64
instance O.OverloadedMethodInfo MetaContainerSetUint64MethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Interfaces.MetaContainer.metaContainerSetUint64",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.1/docs/GI-GES-Interfaces-MetaContainer.html#v:metaContainerSetUint64"
})
#endif
type MetaContainerNotifyMetaCallback =
T.Text
-> Maybe GValue
-> IO ()
type C_MetaContainerNotifyMetaCallback =
Ptr MetaContainer ->
CString ->
Ptr GValue ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_MetaContainerNotifyMetaCallback :: C_MetaContainerNotifyMetaCallback -> IO (FunPtr C_MetaContainerNotifyMetaCallback)
wrap_MetaContainerNotifyMetaCallback ::
GObject a => (a -> MetaContainerNotifyMetaCallback) ->
C_MetaContainerNotifyMetaCallback
wrap_MetaContainerNotifyMetaCallback :: forall a.
GObject a =>
(a -> MetaContainerNotifyMetaCallback) -> C_MetaForeachFunc
wrap_MetaContainerNotifyMetaCallback a -> MetaContainerNotifyMetaCallback
gi'cb Ptr MetaContainer
gi'selfPtr CString
key Ptr GValue
value Ptr ()
_ = do
Text
key' <- HasCallStack => CString -> IO Text
cstringToText CString
key
Maybe GValue
maybeValue <-
if Ptr GValue
value forall a. Eq a => a -> a -> Bool
== forall a. Ptr a
nullPtr
then forall (m :: * -> *) a. Monad m => a -> m a
return forall a. Maybe a
Nothing
else do
GValue
value' <- Ptr GValue -> IO GValue
B.GValue.newGValueFromPtr Ptr GValue
value
forall (m :: * -> *) a. Monad m => a -> m a
return forall a b. (a -> b) -> a -> b
$ forall a. a -> Maybe a
Just GValue
value'
forall a b.
(HasCallStack, ManagedPtrNewtype a) =>
Ptr a -> (a -> IO b) -> IO b
B.ManagedPtr.withTransient Ptr MetaContainer
gi'selfPtr forall a b. (a -> b) -> a -> b
$ \MetaContainer
gi'self -> a -> MetaContainerNotifyMetaCallback
gi'cb (coerce :: forall a b. Coercible a b => a -> b
Coerce.coerce MetaContainer
gi'self) Text
key' Maybe GValue
maybeValue
onMetaContainerNotifyMeta :: (IsMetaContainer a, MonadIO m) => a -> P.Maybe T.Text -> ((?self :: a) => MetaContainerNotifyMetaCallback) -> m SignalHandlerId
onMetaContainerNotifyMeta :: forall a (m :: * -> *).
(IsMetaContainer a, MonadIO m) =>
a
-> Maybe Text
-> ((?self::a) => MetaContainerNotifyMetaCallback)
-> m SignalHandlerId
onMetaContainerNotifyMeta a
obj Maybe Text
detail (?self::a) => MetaContainerNotifyMetaCallback
cb = forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO forall a b. (a -> b) -> a -> b
$ do
let wrapped :: a -> MetaContainerNotifyMetaCallback
wrapped a
self = let ?self = a
self in (?self::a) => MetaContainerNotifyMetaCallback
cb
let wrapped' :: C_MetaForeachFunc
wrapped' = forall a.
GObject a =>
(a -> MetaContainerNotifyMetaCallback) -> C_MetaForeachFunc
wrap_MetaContainerNotifyMetaCallback a -> MetaContainerNotifyMetaCallback
wrapped
FunPtr C_MetaForeachFunc
wrapped'' <- C_MetaForeachFunc -> IO (FunPtr C_MetaForeachFunc)
mk_MetaContainerNotifyMetaCallback C_MetaForeachFunc
wrapped'
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"notify-meta" FunPtr C_MetaForeachFunc
wrapped'' SignalConnectMode
SignalConnectBefore Maybe Text
detail
afterMetaContainerNotifyMeta :: (IsMetaContainer a, MonadIO m) => a -> P.Maybe T.Text -> ((?self :: a) => MetaContainerNotifyMetaCallback) -> m SignalHandlerId
afterMetaContainerNotifyMeta :: forall a (m :: * -> *).
(IsMetaContainer a, MonadIO m) =>
a
-> Maybe Text
-> ((?self::a) => MetaContainerNotifyMetaCallback)
-> m SignalHandlerId
afterMetaContainerNotifyMeta a
obj Maybe Text
detail (?self::a) => MetaContainerNotifyMetaCallback
cb = forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO forall a b. (a -> b) -> a -> b
$ do
let wrapped :: a -> MetaContainerNotifyMetaCallback
wrapped a
self = let ?self = a
self in (?self::a) => MetaContainerNotifyMetaCallback
cb
let wrapped' :: C_MetaForeachFunc
wrapped' = forall a.
GObject a =>
(a -> MetaContainerNotifyMetaCallback) -> C_MetaForeachFunc
wrap_MetaContainerNotifyMetaCallback a -> MetaContainerNotifyMetaCallback
wrapped
FunPtr C_MetaForeachFunc
wrapped'' <- C_MetaForeachFunc -> IO (FunPtr C_MetaForeachFunc)
mk_MetaContainerNotifyMetaCallback C_MetaForeachFunc
wrapped'
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"notify-meta" FunPtr C_MetaForeachFunc
wrapped'' SignalConnectMode
SignalConnectAfter Maybe Text
detail
#if defined(ENABLE_OVERLOADING)
data MetaContainerNotifyMetaSignalInfo
instance SignalInfo MetaContainerNotifyMetaSignalInfo where
type HaskellCallbackType MetaContainerNotifyMetaSignalInfo = MetaContainerNotifyMetaCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_MetaContainerNotifyMetaCallback cb
cb'' <- mk_MetaContainerNotifyMetaCallback cb'
connectSignalFunPtr obj "notify-meta" cb'' connectMode detail
dbgSignalInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Interfaces.MetaContainer::notify-meta"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.1/docs/GI-GES-Interfaces-MetaContainer.html#g:signal:notifyMeta"})
#endif
#if defined(ENABLE_OVERLOADING)
type instance O.SignalList MetaContainer = MetaContainerSignalList
type MetaContainerSignalList = ('[ '("notify", GObject.Object.ObjectNotifySignalInfo), '("notifyMeta", MetaContainerNotifyMetaSignalInfo)] :: [(Symbol, *)])
#endif