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 |
- Exported types
- Methods
- addRedirectEntry
- getNumRedirectEntries
- getSeqnum
- getStreamStatusObject
- getStructure
- hasName
- newApplication
- newAsyncDone
- newAsyncStart
- newBuffering
- newClockLost
- newClockProvide
- newCustom
- newDeviceAdded
- newDeviceChanged
- newDeviceRemoved
- newDurationChanged
- newElement
- newEos
- newError
- newErrorWithDetails
- newHaveContext
- newInfo
- newInfoWithDetails
- newInstantRateRequest
- newLatency
- newNeedContext
- newNewClock
- newProgress
- newPropertyNotify
- newQos
- newRedirect
- newRequestState
- newResetTime
- newSegmentDone
- newSegmentStart
- newStateChanged
- newStateDirty
- newStepDone
- newStepStart
- newStreamCollection
- newStreamStart
- newStreamStatus
- newStreamsSelected
- newStructureChange
- newTag
- newToc
- newWarning
- newWarningWithDetails
- parseAsyncDone
- parseBuffering
- parseBufferingStats
- parseClockLost
- parseClockProvide
- parseContextType
- parseDeviceAdded
- parseDeviceChanged
- parseDeviceRemoved
- parseError
- parseErrorDetails
- parseGroupId
- parseHaveContext
- parseInfo
- parseInfoDetails
- parseInstantRateRequest
- parseNewClock
- parseProgress
- parsePropertyNotify
- parseQos
- parseQosStats
- parseQosValues
- parseRedirectEntry
- parseRequestState
- parseResetTime
- parseSegmentDone
- parseSegmentStart
- parseStateChanged
- parseStepDone
- parseStepStart
- parseStreamCollection
- parseStreamStatus
- parseStreamsSelected
- parseStructureChange
- parseTag
- parseToc
- parseWarning
- parseWarningDetails
- setBufferingStats
- setGroupId
- setQosStats
- setQosValues
- setSeqnum
- setStreamStatusObject
- streamsSelectedAdd
- streamsSelectedGetSize
- streamsSelectedGetStream
- writableStructure
- Properties
Messages are implemented as a subclass of MiniObject
with a generic
Structure
as the content. This allows for writing custom messages without
requiring an API change while allowing a wide range of different types
of messages.
Messages are posted by objects in the pipeline and are passed to the
application using the Bus
.
The basic use pattern of posting a message on a Bus
is as follows:
C code
gst_bus_post (bus, gst_message_new_eos());
A Element
usually posts messages on the bus provided by the parent
container using elementPostMessage
.
Synopsis
- newtype Message = Message (ManagedPtr Message)
- newZeroMessage :: MonadIO m => m Message
- messageAddRedirectEntry :: (HasCallStack, MonadIO m) => Message -> Text -> Maybe TagList -> Maybe Structure -> m ()
- messageGetNumRedirectEntries :: (HasCallStack, MonadIO m) => Message -> m Word64
- messageGetSeqnum :: (HasCallStack, MonadIO m) => Message -> m Word32
- messageGetStreamStatusObject :: (HasCallStack, MonadIO m) => Message -> m (Maybe GValue)
- messageGetStructure :: (HasCallStack, MonadIO m) => Message -> m (Maybe Structure)
- messageHasName :: (HasCallStack, MonadIO m) => Message -> Text -> m Bool
- messageNewApplication :: (HasCallStack, MonadIO m, IsObject a) => Maybe a -> Structure -> m (Maybe Message)
- messageNewAsyncDone :: (HasCallStack, MonadIO m, IsObject a) => Maybe a -> Word64 -> m Message
- messageNewAsyncStart :: (HasCallStack, MonadIO m, IsObject a) => Maybe a -> m Message
- messageNewBuffering :: (HasCallStack, MonadIO m, IsObject a) => Maybe a -> Int32 -> m (Maybe Message)
- messageNewClockLost :: (HasCallStack, MonadIO m, IsObject a, IsClock b) => Maybe a -> b -> m Message
- messageNewClockProvide :: (HasCallStack, MonadIO m, IsObject a, IsClock b) => Maybe a -> b -> Bool -> m Message
- messageNewCustom :: (HasCallStack, MonadIO m, IsObject a) => [MessageType] -> Maybe a -> Maybe Structure -> m (Maybe Message)
- messageNewDeviceAdded :: (HasCallStack, MonadIO m, IsObject a, IsDevice b) => a -> b -> m Message
- messageNewDeviceChanged :: (HasCallStack, MonadIO m, IsObject a, IsDevice b, IsDevice c) => a -> b -> c -> m Message
- messageNewDeviceRemoved :: (HasCallStack, MonadIO m, IsObject a, IsDevice b) => a -> b -> m Message
- messageNewDurationChanged :: (HasCallStack, MonadIO m, IsObject a) => Maybe a -> m Message
- messageNewElement :: (HasCallStack, MonadIO m, IsObject a) => Maybe a -> Structure -> m (Maybe Message)
- messageNewEos :: (HasCallStack, MonadIO m, IsObject a) => Maybe a -> m Message
- messageNewError :: (HasCallStack, MonadIO m, IsObject a) => Maybe a -> GError -> Text -> m Message
- messageNewErrorWithDetails :: (HasCallStack, MonadIO m, IsObject a) => Maybe a -> GError -> Text -> Maybe Structure -> m (Maybe Message)
- messageNewHaveContext :: (HasCallStack, MonadIO m, IsObject a) => Maybe a -> Context -> m Message
- messageNewInfo :: (HasCallStack, MonadIO m, IsObject a) => Maybe a -> GError -> Text -> m Message
- messageNewInfoWithDetails :: (HasCallStack, MonadIO m, IsObject a) => Maybe a -> GError -> Text -> Maybe Structure -> m (Maybe Message)
- messageNewInstantRateRequest :: (HasCallStack, MonadIO m, IsObject a) => a -> Double -> m Message
- messageNewLatency :: (HasCallStack, MonadIO m, IsObject a) => Maybe a -> m Message
- messageNewNeedContext :: (HasCallStack, MonadIO m, IsObject a) => Maybe a -> Text -> m Message
- messageNewNewClock :: (HasCallStack, MonadIO m, IsObject a, IsClock b) => Maybe a -> b -> m Message
- messageNewProgress :: (HasCallStack, MonadIO m, IsObject a) => a -> ProgressType -> Text -> Text -> m (Maybe Message)
- messageNewPropertyNotify :: (HasCallStack, MonadIO m, IsObject a) => a -> Text -> Maybe GValue -> m Message
- messageNewQos :: (HasCallStack, MonadIO m, IsObject a) => a -> Bool -> Word64 -> Word64 -> Word64 -> Word64 -> m Message
- messageNewRedirect :: (HasCallStack, MonadIO m, IsObject a) => a -> Text -> Maybe TagList -> Maybe Structure -> m Message
- messageNewRequestState :: (HasCallStack, MonadIO m, IsObject a) => Maybe a -> State -> m Message
- messageNewResetTime :: (HasCallStack, MonadIO m, IsObject a) => Maybe a -> Word64 -> m Message
- messageNewSegmentDone :: (HasCallStack, MonadIO m, IsObject a) => Maybe a -> Format -> Int64 -> m Message
- messageNewSegmentStart :: (HasCallStack, MonadIO m, IsObject a) => Maybe a -> Format -> Int64 -> m Message
- messageNewStateChanged :: (HasCallStack, MonadIO m, IsObject a) => Maybe a -> State -> State -> State -> m Message
- messageNewStateDirty :: (HasCallStack, MonadIO m, IsObject a) => Maybe a -> m Message
- messageNewStepDone :: (HasCallStack, MonadIO m, IsObject a) => a -> Format -> Word64 -> Double -> Bool -> Bool -> Word64 -> Bool -> m Message
- messageNewStepStart :: (HasCallStack, MonadIO m, IsObject a) => a -> Bool -> Format -> Word64 -> Double -> Bool -> Bool -> m Message
- messageNewStreamCollection :: (HasCallStack, MonadIO m, IsObject a, IsStreamCollection b) => a -> b -> m Message
- messageNewStreamStart :: (HasCallStack, MonadIO m, IsObject a) => Maybe a -> m Message
- messageNewStreamStatus :: (HasCallStack, MonadIO m, IsObject a, IsElement b) => a -> StreamStatusType -> b -> m Message
- messageNewStreamsSelected :: (HasCallStack, MonadIO m, IsObject a, IsStreamCollection b) => a -> b -> m Message
- messageNewStructureChange :: (HasCallStack, MonadIO m, IsObject a, IsElement b) => Maybe a -> StructureChangeType -> b -> Bool -> m Message
- messageNewTag :: (HasCallStack, MonadIO m, IsObject a) => Maybe a -> TagList -> m Message
- messageNewToc :: (HasCallStack, MonadIO m, IsObject a) => a -> Toc -> Bool -> m Message
- messageNewWarning :: (HasCallStack, MonadIO m, IsObject a) => Maybe a -> GError -> Text -> m Message
- messageNewWarningWithDetails :: (HasCallStack, MonadIO m, IsObject a) => Maybe a -> GError -> Text -> Maybe Structure -> m (Maybe Message)
- messageParseAsyncDone :: (HasCallStack, MonadIO m) => Message -> m Word64
- messageParseBuffering :: (HasCallStack, MonadIO m) => Message -> m Int32
- messageParseBufferingStats :: (HasCallStack, MonadIO m) => Message -> m (BufferingMode, Int32, Int32, Int64)
- messageParseClockLost :: (HasCallStack, MonadIO m) => Message -> m Clock
- messageParseClockProvide :: (HasCallStack, MonadIO m) => Message -> m (Clock, Bool)
- messageParseContextType :: (HasCallStack, MonadIO m) => Message -> m (Bool, Text)
- messageParseDeviceAdded :: (HasCallStack, MonadIO m) => Message -> m Device
- messageParseDeviceChanged :: (HasCallStack, MonadIO m) => Message -> m (Device, Device)
- messageParseDeviceRemoved :: (HasCallStack, MonadIO m) => Message -> m Device
- messageParseError :: (HasCallStack, MonadIO m) => Message -> m (GError, Text)
- messageParseErrorDetails :: (HasCallStack, MonadIO m) => Message -> m Structure
- messageParseGroupId :: (HasCallStack, MonadIO m) => Message -> m (Bool, Word32)
- messageParseHaveContext :: (HasCallStack, MonadIO m) => Message -> m Context
- messageParseInfo :: (HasCallStack, MonadIO m) => Message -> m (GError, Text)
- messageParseInfoDetails :: (HasCallStack, MonadIO m) => Message -> m Structure
- messageParseInstantRateRequest :: (HasCallStack, MonadIO m) => Message -> m Double
- messageParseNewClock :: (HasCallStack, MonadIO m) => Message -> m Clock
- messageParseProgress :: (HasCallStack, MonadIO m) => Message -> m (ProgressType, Text, Text)
- messageParsePropertyNotify :: (HasCallStack, MonadIO m) => Message -> m (Object, Text, GValue)
- messageParseQos :: (HasCallStack, MonadIO m) => Message -> m (Bool, Word64, Word64, Word64, Word64)
- messageParseQosStats :: (HasCallStack, MonadIO m) => Message -> m (Format, Word64, Word64)
- messageParseQosValues :: (HasCallStack, MonadIO m) => Message -> m (Int64, Double, Int32)
- messageParseRedirectEntry :: (HasCallStack, MonadIO m) => Message -> Word64 -> m (Text, TagList, Structure)
- messageParseRequestState :: (HasCallStack, MonadIO m) => Message -> m State
- messageParseResetTime :: (HasCallStack, MonadIO m) => Message -> m Word64
- messageParseSegmentDone :: (HasCallStack, MonadIO m) => Message -> m (Format, Int64)
- messageParseSegmentStart :: (HasCallStack, MonadIO m) => Message -> m (Format, Int64)
- messageParseStateChanged :: (HasCallStack, MonadIO m) => Message -> m (State, State, State)
- messageParseStepDone :: (HasCallStack, MonadIO m) => Message -> m (Format, Word64, Double, Bool, Bool, Word64, Bool)
- messageParseStepStart :: (HasCallStack, MonadIO m) => Message -> m (Bool, Format, Word64, Double, Bool, Bool)
- messageParseStreamCollection :: (HasCallStack, MonadIO m) => Message -> m StreamCollection
- messageParseStreamStatus :: (HasCallStack, MonadIO m) => Message -> m (StreamStatusType, Element)
- messageParseStreamsSelected :: (HasCallStack, MonadIO m) => Message -> m StreamCollection
- messageParseStructureChange :: (HasCallStack, MonadIO m) => Message -> m (StructureChangeType, Element, Bool)
- messageParseTag :: (HasCallStack, MonadIO m) => Message -> m TagList
- messageParseToc :: (HasCallStack, MonadIO m) => Message -> m (Toc, Bool)
- messageParseWarning :: (HasCallStack, MonadIO m) => Message -> m (GError, Text)
- messageParseWarningDetails :: (HasCallStack, MonadIO m) => Message -> m Structure
- messageSetBufferingStats :: (HasCallStack, MonadIO m) => Message -> BufferingMode -> Int32 -> Int32 -> Int64 -> m ()
- messageSetGroupId :: (HasCallStack, MonadIO m) => Message -> Word32 -> m ()
- messageSetQosStats :: (HasCallStack, MonadIO m) => Message -> Format -> Word64 -> Word64 -> m ()
- messageSetQosValues :: (HasCallStack, MonadIO m) => Message -> Int64 -> Double -> Int32 -> m ()
- messageSetSeqnum :: (HasCallStack, MonadIO m) => Message -> Word32 -> m ()
- messageSetStreamStatusObject :: (HasCallStack, MonadIO m) => Message -> GValue -> m ()
- messageStreamsSelectedAdd :: (HasCallStack, MonadIO m, IsStream a) => Message -> a -> m ()
- messageStreamsSelectedGetSize :: (HasCallStack, MonadIO m) => Message -> m Word32
- messageStreamsSelectedGetStream :: (HasCallStack, MonadIO m) => Message -> Word32 -> m (Maybe Stream)
- messageWritableStructure :: (HasCallStack, MonadIO m) => Message -> m Structure
- getMessageMiniObject :: MonadIO m => Message -> m MiniObject
- getMessageSeqnum :: MonadIO m => Message -> m Word32
- setMessageSeqnum :: MonadIO m => Message -> Word32 -> m ()
- clearMessageSrc :: MonadIO m => Message -> m ()
- getMessageSrc :: MonadIO m => Message -> m (Maybe Object)
- setMessageSrc :: MonadIO m => Message -> Ptr Object -> m ()
- getMessageTimestamp :: MonadIO m => Message -> m Word64
- setMessageTimestamp :: MonadIO m => Message -> Word64 -> m ()
- getMessageType :: MonadIO m => Message -> m [MessageType]
- setMessageType :: MonadIO m => Message -> [MessageType] -> m ()
Exported types
Memory-managed wrapper type.
Instances
Eq Message Source # | |
GBoxed Message Source # | |
Defined in GI.Gst.Structs.Message | |
ManagedPtrNewtype Message Source # | |
Defined in GI.Gst.Structs.Message toManagedPtr :: Message -> ManagedPtr Message # | |
TypedObject Message Source # | |
Defined in GI.Gst.Structs.Message | |
HasParentTypes Message Source # | |
Defined in GI.Gst.Structs.Message | |
tag ~ 'AttrSet => Constructible Message tag Source # | |
Defined in GI.Gst.Structs.Message | |
IsGValue (Maybe Message) Source # | Convert |
Defined in GI.Gst.Structs.Message | |
type ParentTypes Message Source # | |
Defined in GI.Gst.Structs.Message |
Methods
Click to display all available methods, including inherited ones
Methods
addRedirectEntry, hasName, parseAsyncDone, parseBuffering, parseBufferingStats, parseClockLost, parseClockProvide, parseContextType, parseDeviceAdded, parseDeviceChanged, parseDeviceRemoved, parseError, parseErrorDetails, parseGroupId, parseHaveContext, parseInfo, parseInfoDetails, parseInstantRateRequest, parseNewClock, parseProgress, parsePropertyNotify, parseQos, parseQosStats, parseQosValues, parseRedirectEntry, parseRequestState, parseResetTime, parseSegmentDone, parseSegmentStart, parseStateChanged, parseStepDone, parseStepStart, parseStreamCollection, parseStreamStatus, parseStreamsSelected, parseStructureChange, parseTag, parseToc, parseWarning, parseWarningDetails, streamsSelectedAdd, streamsSelectedGetSize, streamsSelectedGetStream, writableStructure.
Getters
getNumRedirectEntries, getSeqnum, getStreamStatusObject, getStructure.
Setters
setBufferingStats, setGroupId, setQosStats, setQosValues, setSeqnum, setStreamStatusObject.
addRedirectEntry
messageAddRedirectEntry Source #
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> Text |
|
-> Maybe TagList |
|
-> Maybe Structure |
|
-> m () |
Creates and appends a new entry.
The specified location string is copied. However, ownership over the tag list and structure are transferred to the message.
Since: 1.10
getNumRedirectEntries
messageGetNumRedirectEntries Source #
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> m Word64 | Returns: the number of entries stored in the message |
No description available in the introspection data.
Since: 1.10
getSeqnum
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> m Word32 | Returns: The message's sequence number. MT safe. |
Retrieve the sequence number of a message.
Messages have ever-incrementing sequence numbers, which may also be set
explicitly via messageSetSeqnum
. Sequence numbers are typically used
to indicate that a message corresponds to some other set of messages or
events, for example a SEGMENT_DONE message corresponding to a SEEK event. It
is considered good practice to make this correspondence when possible, though
it is not required.
Note that events and messages share the same sequence number incrementor; two events or messages will never have the same sequence number unless that correspondence was made explicitly.
getStreamStatusObject
messageGetStreamStatusObject Source #
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> m (Maybe GValue) | Returns: a GValue containing the object that manages the
streaming thread. This object is usually of type GstTask but other types can
be added in the future. The object remains valid as long as |
Extracts the object managing the streaming thread from message
.
getStructure
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> m (Maybe Structure) | Returns: The structure of the message. The structure is still owned by the message, which means that you should not free it and that the pointer becomes invalid when you free the message. MT safe. |
Access the structure of the message.
hasName
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> Text |
|
-> m Bool | Returns: |
Checks if message
has the given name
. This function is usually used to
check the name of a custom message.
newApplication
messageNewApplication Source #
:: (HasCallStack, MonadIO m, IsObject a) | |
=> Maybe a |
|
-> Structure |
|
-> m (Maybe Message) | Returns: The new application message. MT safe. |
Create a new application-typed message. GStreamer will never create these messages; they are a gift from us to you. Enjoy.
newAsyncDone
:: (HasCallStack, MonadIO m, IsObject a) | |
=> Maybe a |
|
-> Word64 |
|
-> m Message | Returns: The new async_done message. MT safe. |
The message is posted when elements completed an ASYNC state change.
runningTime
contains the time of the desired running_time when this
elements goes to PLAYING. A value of CLOCK_TIME_NONE
for runningTime
means that the element has no clock interaction and thus doesn't care about
the running_time of the pipeline.
newAsyncStart
:: (HasCallStack, MonadIO m, IsObject a) | |
=> Maybe a |
|
-> m Message | Returns: The new async_start message. MT safe. |
This message is posted by elements when they start an ASYNC state change.
newBuffering
:: (HasCallStack, MonadIO m, IsObject a) | |
=> Maybe a |
|
-> Int32 |
|
-> m (Maybe Message) | Returns: The new buffering message. |
Create a new buffering message. This message can be posted by an element that
needs to buffer data before it can continue processing. percent
should be a
value between 0 and 100. A value of 100 means that the buffering completed.
When percent
is < 100 the application should PAUSE a PLAYING pipeline. When
percent
is 100, the application can set the pipeline (back) to PLAYING.
The application must be prepared to receive BUFFERING messages in the
PREROLLING state and may only set the pipeline to PLAYING after receiving a
message with percent
set to 100, which can happen after the pipeline
completed prerolling.
MT safe.
newClockLost
:: (HasCallStack, MonadIO m, IsObject a, IsClock b) | |
=> Maybe a |
|
-> b |
|
-> m Message | Returns: The new clock lost message. MT safe. |
Create a clock lost message. This message is posted whenever the clock is not valid anymore.
If this message is posted by the pipeline, the pipeline will select a new clock again when it goes to PLAYING. It might therefore be needed to set the pipeline to PAUSED and PLAYING again.
newClockProvide
messageNewClockProvide Source #
:: (HasCallStack, MonadIO m, IsObject a, IsClock b) | |
=> Maybe a |
|
-> b |
|
-> Bool |
|
-> m Message | Returns: the new provide clock message. MT safe. |
Create a clock provide message. This message is posted whenever an element is ready to provide a clock or lost its ability to provide a clock (maybe because it paused or became EOS).
This message is mainly used internally to manage the clock selection.
newCustom
:: (HasCallStack, MonadIO m, IsObject a) | |
=> [MessageType] |
|
-> Maybe a |
|
-> Maybe Structure |
|
-> m (Maybe Message) | Returns: The new message. MT safe. |
Create a new custom-typed message. This can be used for anything not
handled by other message-specific functions to pass a message to the
app. The structure field can be Nothing
.
newDeviceAdded
messageNewDeviceAdded Source #
:: (HasCallStack, MonadIO m, IsObject a, IsDevice b) | |
=> a |
|
-> b |
|
-> m Message | Returns: a newly allocated |
Creates a new device-added message. The device-added message is produced by
DeviceProvider
or a DeviceMonitor
. They announce the appearance
of monitored devices.
Since: 1.4
newDeviceChanged
messageNewDeviceChanged Source #
:: (HasCallStack, MonadIO m, IsObject a, IsDevice b, IsDevice c) | |
=> a |
|
-> b |
|
-> c | |
-> m Message | Returns: a newly allocated |
Creates a new device-changed message. The device-changed message is produced
by DeviceProvider
or a DeviceMonitor
. They announce that a device
properties has changed and device
represent the new modified version of changedDevice
.
Since: 1.16
newDeviceRemoved
messageNewDeviceRemoved Source #
:: (HasCallStack, MonadIO m, IsObject a, IsDevice b) | |
=> a |
|
-> b |
|
-> m Message | Returns: a newly allocated |
Creates a new device-removed message. The device-removed message is produced
by DeviceProvider
or a DeviceMonitor
. They announce the
disappearance of monitored devices.
Since: 1.4
newDurationChanged
messageNewDurationChanged Source #
:: (HasCallStack, MonadIO m, IsObject a) | |
=> Maybe a |
|
-> m Message | Returns: The new duration-changed message. MT safe. |
Create a new duration changed message. This message is posted by elements that know the duration of a stream when the duration changes. This message is received by bins and is used to calculate the total duration of a pipeline.
newElement
:: (HasCallStack, MonadIO m, IsObject a) | |
=> Maybe a |
|
-> Structure |
|
-> m (Maybe Message) | Returns: The new element message. MT safe. |
Create a new element-specific message. This is meant as a generic way of
allowing one-way communication from an element to an application, for example
"the firewire cable was unplugged". The format of the message should be
documented in the element's documentation. The structure field can be Nothing
.
newEos
:: (HasCallStack, MonadIO m, IsObject a) | |
=> Maybe a |
|
-> m Message | Returns: The new eos message. MT safe. |
Create a new eos message. This message is generated and posted in the sink elements of a GstBin. The bin will only forward the EOS message to the application if all sinks have posted an EOS message.
newError
:: (HasCallStack, MonadIO m, IsObject a) | |
=> Maybe a |
|
-> GError |
|
-> Text |
|
-> m Message | Returns: the new error message. MT safe. |
Create a new error message. The message will copy error
and
debug
. This message is posted by element when a fatal event
occurred. The pipeline will probably (partially) stop. The application
receiving this message should stop the pipeline.
newErrorWithDetails
messageNewErrorWithDetails Source #
:: (HasCallStack, MonadIO m, IsObject a) | |
=> Maybe a |
|
-> GError |
|
-> Text |
|
-> Maybe Structure |
|
-> m (Maybe Message) | Returns: the new error message. |
Create a new error message. The message will copy error
and
debug
. This message is posted by element when a fatal event
occurred. The pipeline will probably (partially) stop. The application
receiving this message should stop the pipeline.
Since: 1.10
newHaveContext
messageNewHaveContext Source #
:: (HasCallStack, MonadIO m, IsObject a) | |
=> Maybe a |
|
-> Context |
|
-> m Message | Returns: The new have-context message. MT safe. |
This message is posted when an element has a new local Context
.
Since: 1.2
newInfo
:: (HasCallStack, MonadIO m, IsObject a) | |
=> Maybe a |
|
-> GError |
|
-> Text |
|
-> m Message | Returns: the new info message. MT safe. |
Create a new info message. The message will make copies of error
and
debug
.
newInfoWithDetails
messageNewInfoWithDetails Source #
:: (HasCallStack, MonadIO m, IsObject a) | |
=> Maybe a |
|
-> GError |
|
-> Text |
|
-> Maybe Structure |
|
-> m (Maybe Message) | Returns: the new warning message. |
Create a new info message. The message will make copies of error
and
debug
.
Since: 1.10
newInstantRateRequest
messageNewInstantRateRequest Source #
:: (HasCallStack, MonadIO m, IsObject a) | |
=> a |
|
-> Double |
|
-> m Message | Returns: a newly allocated |
Creates a new instant-rate-request message. Elements handling the
instant-rate-change event must post this message. The message is
handled at the pipeline, and allows the pipeline to select the
running time when the rate change should happen and to send an
gSTEVENTINSTANTRATESYNCTIME
event to notify the elements
in the pipeline.
Since: 1.18
newLatency
:: (HasCallStack, MonadIO m, IsObject a) | |
=> Maybe a |
|
-> m Message | Returns: The new latency message. MT safe. |
This message can be posted by elements when their latency requirements have changed.
newNeedContext
messageNewNeedContext Source #
:: (HasCallStack, MonadIO m, IsObject a) | |
=> Maybe a |
|
-> Text |
|
-> m Message | Returns: The new need-context message. MT safe. |
This message is posted when an element needs a specific Context
.
Since: 1.2
newNewClock
:: (HasCallStack, MonadIO m, IsObject a, IsClock b) | |
=> Maybe a |
|
-> b |
|
-> m Message | Returns: The new new clock message. MT safe. |
Create a new clock message. This message is posted whenever the pipeline selects a new clock for the pipeline.
newProgress
:: (HasCallStack, MonadIO m, IsObject a) | |
=> a |
|
-> ProgressType |
|
-> Text |
|
-> Text |
|
-> m (Maybe Message) | Returns: The new qos message. |
Progress messages are posted by elements when they use an asynchronous task to perform actions triggered by a state change.
code
contains a well defined string describing the action.
text
should contain a user visible string detailing the current action.
newPropertyNotify
messageNewPropertyNotify Source #
:: (HasCallStack, MonadIO m, IsObject a) | |
=> a |
|
-> Text |
|
-> Maybe GValue |
|
-> m Message | Returns: a newly allocated |
No description available in the introspection data.
Since: 1.10
newQos
:: (HasCallStack, MonadIO m, IsObject a) | |
=> a |
|
-> Bool |
|
-> Word64 |
|
-> Word64 |
|
-> Word64 |
|
-> Word64 |
|
-> m Message | Returns: The new qos message. MT safe. |
A QOS message is posted on the bus whenever an element decides to drop a buffer because of QoS reasons or whenever it changes its processing strategy because of QoS reasons (quality adjustments such as processing at lower accuracy).
This message can be posted by an element that performs synchronisation against the clock (live) or it could be dropped by an element that performs QoS because of QOS events received from a downstream element (!live).
runningTime
, streamTime
, timestamp
, duration
should be set to the
respective running-time, stream-time, timestamp and duration of the (dropped)
buffer that generated the QoS event. Values can be left to
GST_CLOCK_TIME_NONE when unknown.
newRedirect
:: (HasCallStack, MonadIO m, IsObject a) | |
=> a |
|
-> Text |
|
-> Maybe TagList |
|
-> Maybe Structure |
|
-> m Message | Returns: a newly allocated |
Creates a new redirect message and adds a new entry to it. Redirect messages are posted when an element detects that the actual data has to be retrieved from a different location. This is useful if such a redirection cannot be handled inside a source element, for example when HTTP 302/303 redirects return a non-HTTP URL.
The redirect message can hold multiple entries. The first one is added
when the redirect message is created, with the given location, tag_list,
entry_struct arguments. Use messageAddRedirectEntry
to add more
entries.
Each entry has a location, a tag list, and a structure. All of these are optional. The tag list and structure are useful for additional metadata, such as bitrate statistics for the given location.
By default, message recipients should treat entries in the order they are stored. The recipient should therefore try entry #0 first, and if this entry is not acceptable or working, try entry #1 etc. Senders must make sure that they add entries in this order. However, recipients are free to ignore the order and pick an entry that is "best" for them. One example would be a recipient that scans the entries for the one with the highest bitrate tag.
The specified location string is copied. However, ownership over the tag list and structure are transferred to the message.
Since: 1.10
newRequestState
messageNewRequestState Source #
:: (HasCallStack, MonadIO m, IsObject a) | |
=> Maybe a |
|
-> State |
|
-> m Message | Returns: the new request state message. MT safe. |
This message can be posted by elements when they want to have their state changed. A typical use case would be an audio server that wants to pause the pipeline because a higher priority stream is being played.
newResetTime
:: (HasCallStack, MonadIO m, IsObject a) | |
=> Maybe a |
|
-> Word64 |
|
-> m Message | Returns: The new reset_time message. MT safe. |
This message is posted when the pipeline running-time should be reset to
runningTime
, like after a flushing seek.
newSegmentDone
messageNewSegmentDone Source #
:: (HasCallStack, MonadIO m, IsObject a) | |
=> Maybe a |
|
-> Format |
|
-> Int64 |
|
-> m Message | Returns: the new segment done message. MT safe. |
Create a new segment done message. This message is posted by elements that finish playback of a segment as a result of a segment seek. This message is received by the application after all elements that posted a segment_start have posted the segment_done.
newSegmentStart
messageNewSegmentStart Source #
:: (HasCallStack, MonadIO m, IsObject a) | |
=> Maybe a |
|
-> Format |
|
-> Int64 |
|
-> m Message | Returns: the new segment start message. MT safe. |
Create a new segment message. This message is posted by elements that start playback of a segment as a result of a segment seek. This message is not received by the application but is used for maintenance reasons in container elements.
newStateChanged
messageNewStateChanged Source #
:: (HasCallStack, MonadIO m, IsObject a) | |
=> Maybe a |
|
-> State |
|
-> State |
|
-> State |
|
-> m Message | Returns: the new state change message. MT safe. |
Create a state change message. This message is posted whenever an element changed its state.
newStateDirty
:: (HasCallStack, MonadIO m, IsObject a) | |
=> Maybe a |
|
-> m Message | Returns: the new state dirty message. MT safe. |
Create a state dirty message. This message is posted whenever an element changed its state asynchronously and is used internally to update the states of container objects.
newStepDone
:: (HasCallStack, MonadIO m, IsObject a) | |
=> a |
|
-> Format |
|
-> Word64 |
|
-> Double |
|
-> Bool |
|
-> Bool |
|
-> Word64 |
|
-> Bool |
|
-> m Message | Returns: the new step_done message. MT safe. |
This message is posted by elements when they complete a part, when intermediate
set
to True
, or a complete step operation.
duration
will contain the amount of time (in GST_FORMAT_TIME) of the stepped
amount
of media in format format
.
newStepStart
:: (HasCallStack, MonadIO m, IsObject a) | |
=> a |
|
-> Bool |
|
-> Format |
|
-> Word64 |
|
-> Double |
|
-> Bool |
|
-> Bool |
|
-> m Message | Returns: The new step_start message. MT safe. |
This message is posted by elements when they accept or activate a new step
event for amount
in format
.
active
is set to False
when the element accepted the new step event and has
queued it for execution in the streaming threads.
active
is set to True
when the element has activated the step operation and
is now ready to start executing the step in the streaming thread. After this
message is emitted, the application can queue a new step operation in the
element.
newStreamCollection
messageNewStreamCollection Source #
:: (HasCallStack, MonadIO m, IsObject a, IsStreamCollection b) | |
=> a |
|
-> b |
|
-> m Message | Returns: a newly allocated |
Creates a new stream-collection message. The message is used to announce new
StreamCollection
Since: 1.10
newStreamStart
messageNewStreamStart Source #
:: (HasCallStack, MonadIO m, IsObject a) | |
=> Maybe a |
|
-> m Message | Returns: The new stream_start message. MT safe. |
Create a new stream_start message. This message is generated and posted in the sink elements of a GstBin. The bin will only forward the STREAM_START message to the application if all sinks have posted an STREAM_START message.
newStreamStatus
messageNewStreamStatus Source #
:: (HasCallStack, MonadIO m, IsObject a, IsElement b) | |
=> a |
|
-> StreamStatusType |
|
-> b |
|
-> m Message | Returns: the new stream status message. MT safe. |
Create a new stream status message. This message is posted when a streaming thread is created/destroyed or when the state changed.
newStreamsSelected
messageNewStreamsSelected Source #
:: (HasCallStack, MonadIO m, IsObject a, IsStreamCollection b) | |
=> a |
|
-> b |
|
-> m Message | Returns: a newly allocated |
Creates a new steams-selected message. The message is used to announce
that an array of streams has been selected. This is generally in response
to a GST_EVENT_SELECT_STREAMS
event, or when an element (such as decodebin3)
makes an initial selection of streams.
The message also contains the StreamCollection
to which the various streams
belong to.
Users of messageNewStreamsSelected
can add the selected streams with
messageStreamsSelectedAdd
.
Since: 1.10
newStructureChange
messageNewStructureChange Source #
:: (HasCallStack, MonadIO m, IsObject a, IsElement b) | |
=> Maybe a |
|
-> StructureChangeType |
|
-> b |
|
-> Bool |
|
-> m Message | Returns: the new structure change message. MT safe. |
Create a new structure change message. This message is posted when the structure of a pipeline is in the process of being changed, for example when pads are linked or unlinked.
src
should be the sinkpad that unlinked or linked.
newTag
:: (HasCallStack, MonadIO m, IsObject a) | |
=> Maybe a |
|
-> TagList |
|
-> m Message | Returns: the new tag message. MT safe. |
Create a new tag message. The message will take ownership of the tag list. The message is posted by elements that discovered a new taglist.
newToc
:: (HasCallStack, MonadIO m, IsObject a) | |
=> a |
|
-> Toc |
|
-> Bool |
|
-> m Message | Returns: a new TOC message. MT safe. |
Create a new TOC message. The message is posted by elements that discovered or updated a TOC.
newWarning
:: (HasCallStack, MonadIO m, IsObject a) | |
=> Maybe a |
|
-> GError |
|
-> Text |
|
-> m Message | Returns: the new warning message. MT safe. |
Create a new warning message. The message will make copies of error
and
debug
.
newWarningWithDetails
messageNewWarningWithDetails Source #
:: (HasCallStack, MonadIO m, IsObject a) | |
=> Maybe a |
|
-> GError |
|
-> Text |
|
-> Maybe Structure |
|
-> m (Maybe Message) | Returns: the new warning message. |
Create a new warning message. The message will make copies of error
and
debug
.
Since: 1.10
parseAsyncDone
messageParseAsyncDone Source #
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> m Word64 |
Extract the running_time from the async_done message.
MT safe.
parseBuffering
messageParseBuffering Source #
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> m Int32 |
Extracts the buffering percent from the GstMessage. see also
messageNewBuffering
.
MT safe.
parseBufferingStats
messageParseBufferingStats Source #
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> m (BufferingMode, Int32, Int32, Int64) |
Extracts the buffering stats values from message
.
parseClockLost
messageParseClockLost Source #
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> m Clock |
Extracts the lost clock from the GstMessage. The clock object returned remains valid until the message is freed.
MT safe.
parseClockProvide
messageParseClockProvide Source #
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> m (Clock, Bool) |
Extracts the clock and ready flag from the GstMessage. The clock object returned remains valid until the message is freed.
MT safe.
parseContextType
messageParseContextType Source #
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> m (Bool, Text) | Returns: a |
Parse a context type from an existing GST_MESSAGE_NEED_CONTEXT message.
Since: 1.2
parseDeviceAdded
messageParseDeviceAdded Source #
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> m Device |
Parses a device-added message. The device-added message is produced by
DeviceProvider
or a DeviceMonitor
. It announces the appearance
of monitored devices.
Since: 1.4
parseDeviceChanged
messageParseDeviceChanged Source #
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> m (Device, Device) |
Parses a device-changed message. The device-changed message is produced by
DeviceProvider
or a DeviceMonitor
. It announces the
disappearance of monitored devices. * It announce that a device properties has
changed and device
represents the new modified version of changedDevice
.
Since: 1.16
parseDeviceRemoved
messageParseDeviceRemoved Source #
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> m Device |
Parses a device-removed message. The device-removed message is produced by
DeviceProvider
or a DeviceMonitor
. It announces the
disappearance of monitored devices.
Since: 1.4
parseError
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> m (GError, Text) |
Extracts the GError and debug string from the GstMessage. The values returned in the output arguments are copies; the caller must free them when done.
Typical usage of this function might be:
C code
... switch (GST_MESSAGE_TYPE (msg)) { case GST_MESSAGE_ERROR: { GError *err = NULL; gchar *dbg_info = NULL; gst_message_parse_error (msg, &err, &dbg_info); g_printerr ("ERROR from element %s: %s\n", GST_OBJECT_NAME (msg->src), err->message); g_printerr ("Debugging info: %s\n", (dbg_info) ? dbg_info : "none"); g_error_free (err); g_free (dbg_info); break; } ... } ...
MT safe.
parseErrorDetails
messageParseErrorDetails Source #
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> m Structure |
Returns the optional details structure, may be NULL if none. The returned structure must not be freed.
Since: 1.10
parseGroupId
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> m (Bool, Word32) | Returns: MT safe. |
Extract the group from the STREAM_START message.
Since: 1.2
parseHaveContext
messageParseHaveContext Source #
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> m Context |
Extract the context from the HAVE_CONTEXT message.
MT safe.
Since: 1.2
parseInfo
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> m (GError, Text) |
Extracts the GError and debug string from the GstMessage. The values returned in the output arguments are copies; the caller must free them when done.
MT safe.
parseInfoDetails
messageParseInfoDetails Source #
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> m Structure |
Returns the optional details structure, may be NULL if none The returned structure must not be freed.
Since: 1.10
parseInstantRateRequest
messageParseInstantRateRequest Source #
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> m Double |
Parses the rate_multiplier from the instant-rate-request message.
Since: 1.18
parseNewClock
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> m Clock |
Extracts the new clock from the GstMessage. The clock object returned remains valid until the message is freed.
MT safe.
parseProgress
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> m (ProgressType, Text, Text) |
Parses the progress type
, code
and text
.
parsePropertyNotify
messageParsePropertyNotify Source #
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> m (Object, Text, GValue) |
Parses a property-notify message. These will be posted on the bus only
when set up with elementAddPropertyNotifyWatch
or
elementAddPropertyDeepNotifyWatch
.
Since: 1.10
parseQos
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> m (Bool, Word64, Word64, Word64, Word64) |
Extract the timestamps and live status from the QoS message.
The returned values give the running_time, stream_time, timestamp and duration of the dropped buffer. Values of GST_CLOCK_TIME_NONE mean unknown values.
MT safe.
parseQosStats
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> m (Format, Word64, Word64) |
Extract the QoS stats representing the history of the current continuous pipeline playback period.
When format
is gSTFORMATUNDEFINED
both dropped
and processed
are
invalid. Values of -1 for either processed
or dropped
mean unknown values.
MT safe.
parseQosValues
messageParseQosValues Source #
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> m (Int64, Double, Int32) |
Extract the QoS values that have been calculated/analysed from the QoS data
MT safe.
parseRedirectEntry
messageParseRedirectEntry Source #
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> Word64 |
|
-> m (Text, TagList, Structure) |
Parses the location and/or structure from the entry with the given index.
The index must be between 0 and messageGetNumRedirectEntries
- 1.
Returned pointers are valid for as long as this message exists.
Since: 1.10
parseRequestState
messageParseRequestState Source #
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> m State |
Extract the requested state from the request_state message.
MT safe.
parseResetTime
messageParseResetTime Source #
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> m Word64 |
Extract the running-time from the RESET_TIME message.
MT safe.
parseSegmentDone
messageParseSegmentDone Source #
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> m (Format, Int64) |
Extracts the position and format from the segment done message.
MT safe.
parseSegmentStart
messageParseSegmentStart Source #
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> m (Format, Int64) |
Extracts the position and format from the segment start message.
MT safe.
parseStateChanged
messageParseStateChanged Source #
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> m (State, State, State) |
Extracts the old and new states from the GstMessage.
Typical usage of this function might be:
C code
... switch (GST_MESSAGE_TYPE (msg)) { case GST_MESSAGE_STATE_CHANGED: { GstState old_state, new_state; gst_message_parse_state_changed (msg, &old_state, &new_state, NULL); g_print ("Element %s changed state from %s to %s.\n", GST_OBJECT_NAME (msg->src), gst_element_state_get_name (old_state), gst_element_state_get_name (new_state)); break; } ... } ...
MT safe.
parseStepDone
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> m (Format, Word64, Double, Bool, Bool, Word64, Bool) |
Extract the values the step_done message.
MT safe.
parseStepStart
messageParseStepStart Source #
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> m (Bool, Format, Word64, Double, Bool, Bool) |
Extract the values from step_start message.
MT safe.
parseStreamCollection
messageParseStreamCollection Source #
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> m StreamCollection |
Parses a stream-collection message.
Since: 1.10
parseStreamStatus
messageParseStreamStatus Source #
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> m (StreamStatusType, Element) |
Extracts the stream status type and owner the GstMessage. The returned
owner remains valid for as long as the reference to message
is valid and
should thus not be unreffed.
MT safe.
parseStreamsSelected
messageParseStreamsSelected Source #
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> m StreamCollection |
Parses a streams-selected message.
Since: 1.10
parseStructureChange
messageParseStructureChange Source #
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> m (StructureChangeType, Element, Bool) |
Extracts the change type and completion status from the GstMessage.
MT safe.
parseTag
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> m TagList |
Extracts the tag list from the GstMessage. The tag list returned in the output argument is a copy; the caller must free it when done.
Typical usage of this function might be:
C code
... switch (GST_MESSAGE_TYPE (msg)) { case GST_MESSAGE_TAG: { GstTagList *tags = NULL; gst_message_parse_tag (msg, &tags); g_print ("Got tags from element %s\n", GST_OBJECT_NAME (msg->src)); handle_tags (tags); gst_tag_list_unref (tags); break; } ... } ...
MT safe.
parseToc
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> m (Toc, Bool) |
Extract the TOC from the Message
. The TOC returned in the
output argument is a copy; the caller must free it with
gst_toc_unref()
when done.
MT safe.
parseWarning
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> m (GError, Text) |
Extracts the GError and debug string from the GstMessage. The values returned in the output arguments are copies; the caller must free them when done.
MT safe.
parseWarningDetails
messageParseWarningDetails Source #
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> m Structure |
Returns the optional details structure, may be NULL if none The returned structure must not be freed.
Since: 1.10
setBufferingStats
messageSetBufferingStats Source #
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> BufferingMode |
|
-> Int32 |
|
-> Int32 |
|
-> Int64 |
|
-> m () |
Configures the buffering stats values in message
.
setGroupId
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> Word32 |
|
-> m () |
Sets the group id on the stream-start message.
All streams that have the same group id are supposed to be played together, i.e. all streams inside a container file should have the same group id but different stream ids. The group id should change each time the stream is started, resulting in different group ids each time a file is played for example.
MT safe.
Since: 1.2
setQosStats
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> Format |
|
-> Word64 |
|
-> Word64 |
|
-> m () |
Set the QoS stats representing the history of the current continuous pipeline playback period.
When format
is gSTFORMATUNDEFINED
both dropped
and processed
are
invalid. Values of -1 for either processed
or dropped
mean unknown values.
MT safe.
setQosValues
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> Int64 |
|
-> Double |
|
-> Int32 |
|
-> m () |
Set the QoS values that have been calculated/analysed from the QoS data
MT safe.
setSeqnum
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> Word32 |
|
-> m () |
Set the sequence number of a message.
This function might be called by the creator of a message to indicate that
the message relates to other messages or events. See messageGetSeqnum
for more information.
MT safe.
setStreamStatusObject
messageSetStreamStatusObject Source #
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> GValue |
|
-> m () |
Configures the object handling the streaming thread. This is usually a GstTask object but other objects might be added in the future.
streamsSelectedAdd
messageStreamsSelectedAdd Source #
:: (HasCallStack, MonadIO m, IsStream a) | |
=> Message |
|
-> a |
|
-> m () |
Adds the stream
to the message
.
Since: 1.10
streamsSelectedGetSize
messageStreamsSelectedGetSize Source #
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> m Word32 | Returns: The number of streams contained within. |
Returns the number of streams contained in the message
.
Since: 1.10
streamsSelectedGetStream
messageStreamsSelectedGetStream Source #
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> Word32 |
|
-> m (Maybe Stream) | Returns: A |
Retrieves the Stream
with index index
from the message
.
Since: 1.10
writableStructure
messageWritableStructure Source #
:: (HasCallStack, MonadIO m) | |
=> Message |
|
-> m Structure | Returns: The structure of the message. The structure
is still owned by the message, which means that you should not free
it and that the pointer becomes invalid when you free the message.
This function checks if MT safe. |
Get a writable version of the structure.
Since: 1.14
Properties
miniObject
the parent structure
getMessageMiniObject :: MonadIO m => Message -> m MiniObject Source #
Get the value of the “mini_object
” field.
When overloading is enabled, this is equivalent to
get
message #miniObject
seqnum
the sequence number of the message
getMessageSeqnum :: MonadIO m => Message -> m Word32 Source #
Get the value of the “seqnum
” field.
When overloading is enabled, this is equivalent to
get
message #seqnum
setMessageSeqnum :: MonadIO m => Message -> Word32 -> m () Source #
Set the value of the “seqnum
” field.
When overloading is enabled, this is equivalent to
set
message [ #seqnum:=
value ]
src
the src of the message
clearMessageSrc :: MonadIO m => Message -> m () Source #
Set the value of the “src
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#src
getMessageSrc :: MonadIO m => Message -> m (Maybe Object) Source #
Get the value of the “src
” field.
When overloading is enabled, this is equivalent to
get
message #src
setMessageSrc :: MonadIO m => Message -> Ptr Object -> m () Source #
Set the value of the “src
” field.
When overloading is enabled, this is equivalent to
set
message [ #src:=
value ]
timestamp
the timestamp of the message
getMessageTimestamp :: MonadIO m => Message -> m Word64 Source #
Get the value of the “timestamp
” field.
When overloading is enabled, this is equivalent to
get
message #timestamp
setMessageTimestamp :: MonadIO m => Message -> Word64 -> m () Source #
Set the value of the “timestamp
” field.
When overloading is enabled, this is equivalent to
set
message [ #timestamp:=
value ]
type
the MessageType
of the message
getMessageType :: MonadIO m => Message -> m [MessageType] Source #
Get the value of the “type
” field.
When overloading is enabled, this is equivalent to
get
message #type
setMessageType :: MonadIO m => Message -> [MessageType] -> m () Source #
Set the value of the “type
” field.
When overloading is enabled, this is equivalent to
set
message [ #type:=
value ]