Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
This is the struct that describes the categories. Once initialized with
GST_DEBUG_CATEGORY_INIT
, its values can't be changed anymore.
Synopsis
- newtype DebugCategory = DebugCategory (ManagedPtr DebugCategory)
- newZeroDebugCategory :: MonadIO m => m DebugCategory
- debugCategoryFree :: (HasCallStack, MonadIO m) => DebugCategory -> m ()
- debugCategoryGetColor :: (HasCallStack, MonadIO m) => DebugCategory -> m Word32
- debugCategoryGetDescription :: (HasCallStack, MonadIO m) => DebugCategory -> m Text
- debugCategoryGetName :: (HasCallStack, MonadIO m) => DebugCategory -> m Text
- debugCategoryGetThreshold :: (HasCallStack, MonadIO m) => DebugCategory -> m DebugLevel
- debugCategoryResetThreshold :: (HasCallStack, MonadIO m) => DebugCategory -> m ()
- debugCategorySetThreshold :: (HasCallStack, MonadIO m) => DebugCategory -> DebugLevel -> m ()
Exported types
newtype DebugCategory Source #
Memory-managed wrapper type.
DebugCategory (ManagedPtr DebugCategory) |
Instances
Eq DebugCategory Source # | |
Defined in GI.Gst.Structs.DebugCategory (==) :: DebugCategory -> DebugCategory -> Bool # (/=) :: DebugCategory -> DebugCategory -> Bool # | |
BoxedPtr DebugCategory Source # | |
Defined in GI.Gst.Structs.DebugCategory boxedPtrCopy :: DebugCategory -> IO DebugCategory boxedPtrFree :: DebugCategory -> IO () | |
CallocPtr DebugCategory Source # | |
Defined in GI.Gst.Structs.DebugCategory boxedPtrCalloc :: IO (Ptr DebugCategory) | |
ManagedPtrNewtype DebugCategory Source # | |
Defined in GI.Gst.Structs.DebugCategory toManagedPtr :: DebugCategory -> ManagedPtr DebugCategory | |
tag ~ 'AttrSet => Constructible DebugCategory tag Source # | |
Defined in GI.Gst.Structs.DebugCategory new :: MonadIO m => (ManagedPtr DebugCategory -> DebugCategory) -> [AttrOp DebugCategory tag] -> m DebugCategory |
newZeroDebugCategory :: MonadIO m => m DebugCategory Source #
Construct a DebugCategory
struct initialized to zero.
Methods
Click to display all available methods, including inherited ones
free
:: (HasCallStack, MonadIO m) | |
=> DebugCategory |
|
-> m () |
Deprecated: This function can easily cause memory corruption, don't use it.
Removes and frees the category and all associated resources.
getColor
debugCategoryGetColor Source #
:: (HasCallStack, MonadIO m) | |
=> DebugCategory |
|
-> m Word32 | Returns: the color of the category. |
Returns the color of a debug category used when printing output in this category.
getDescription
debugCategoryGetDescription Source #
:: (HasCallStack, MonadIO m) | |
=> DebugCategory |
|
-> m Text | Returns: the description of the category. |
Returns the description of a debug category.
getName
:: (HasCallStack, MonadIO m) | |
=> DebugCategory |
|
-> m Text | Returns: the name of the category. |
Returns the name of a debug category.
getThreshold
debugCategoryGetThreshold Source #
:: (HasCallStack, MonadIO m) | |
=> DebugCategory |
|
-> m DebugLevel | Returns: the |
Returns the threshold of a DebugCategory
.
resetThreshold
debugCategoryResetThreshold Source #
:: (HasCallStack, MonadIO m) | |
=> DebugCategory |
|
-> m () |
Resets the threshold of the category to the default level. Debug information
will only be output if the threshold is lower or equal to the level of the
debugging message.
Use this function to set the threshold back to where it was after using
debugCategorySetThreshold
.
setThreshold
debugCategorySetThreshold Source #
:: (HasCallStack, MonadIO m) | |
=> DebugCategory |
|
-> DebugLevel |
|
-> m () |
Sets the threshold of the category to the given level. Debug information will only be output if the threshold is lower or equal to the level of the debugging message. > Do not use this function in production code, because other functions may > change the threshold of categories as side effect. It is however a nice > function to use when debugging (even from gdb).