~ubuntu-branches/ubuntu/trusty/gstreamer1.0/trusty-proposed

« back to all changes in this revision

Viewing changes to gst/gstmessage.h

  • Committer: Package Import Robot
  • Author(s): Sebastian Dröge
  • Date: 2012-08-08 18:12:33 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20120808181233-riejwxprfsxh1njl
Tags: 0.11.93-1
* New upstream release:
  + debian/libgstreamer.symbols:
    - Update symbols file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
 * can get the new duration with a duration query.
76
76
 * @GST_MESSAGE_ASYNC_START: Posted by elements when they start an ASYNC
77
77
 * #GstStateChange. This message is not forwarded to the application but is used
78
 
 * internally. Since: 0.10.13.
 
78
 * internally.
79
79
 * @GST_MESSAGE_ASYNC_DONE: Posted by elements when they complete an ASYNC
80
80
 * #GstStateChange. The application will only receive this message from the toplevel
81
 
 * pipeline. Since: 0.10.13
 
81
 * pipeline.
82
82
 * @GST_MESSAGE_LATENCY: Posted by elements when their latency changes. The
83
 
 * application should recalculate and distribute a new latency. Since: 0.10.12
 
83
 * application should recalculate and distribute a new latency.
84
84
 * @GST_MESSAGE_REQUEST_STATE: Posted by elements when they want the pipeline to
85
85
 * change state. This message is a suggestion to the application which can
86
 
 * decide to perform the state change on (part of) the pipeline. Since: 0.10.23.
87
 
 * @GST_MESSAGE_STEP_START: A stepping operation was started. Since: 0.10.24
 
86
 * decide to perform the state change on (part of) the pipeline.
 
87
 * @GST_MESSAGE_STEP_START: A stepping operation was started.
88
88
 * @GST_MESSAGE_QOS: A buffer was dropped or an element changed its processing
89
 
 * strategy for Quality of Service reasons. Since: 0.10.29
90
 
 * @GST_MESSAGE_PROGRESS: A progress message. Since: 0.10.33
 
89
 * strategy for Quality of Service reasons.
 
90
 * @GST_MESSAGE_PROGRESS: A progress message.
91
91
 * @GST_MESSAGE_TOC: A new table of contents (TOC) was found or previously found TOC
92
 
 * was updated. Since: 0.10.37
 
92
 * was updated. Since:
93
93
 * @GST_MESSAGE_ANY: mask for all of the above messages.
94
94
 *
95
95
 * The different message types that are available.
127
127
  GST_MESSAGE_QOS               = (1 << 24),
128
128
  GST_MESSAGE_PROGRESS          = (1 << 25),
129
129
  GST_MESSAGE_TOC               = (1 << 26),
 
130
  GST_MESSAGE_RESET_TIME        = (1 << 27),
 
131
  GST_MESSAGE_STREAM_START      = (1 << 28),
130
132
  GST_MESSAGE_ANY               = ~0
131
133
} GstMessageType;
132
134
 
165
167
 * @message: a #GstMessage
166
168
 *
167
169
 * Get a constant string representation of the #GstMessageType of @message.
168
 
 *
169
 
 * Since: 0.10.4
170
170
 */
171
171
#define GST_MESSAGE_TYPE_NAME(message)  gst_message_type_get_name(GST_MESSAGE_TYPE(message))
172
172
/**
199
199
 *
200
200
 * Get the name of the object that posted @message. Returns "(NULL)" if
201
201
 * the message has no source object set.
202
 
 *
203
 
 * Since: 0.10.24
204
202
 */
205
203
#define GST_MESSAGE_SRC_NAME(message)   (GST_MESSAGE_SRC(message) ? \
206
204
    GST_OBJECT_NAME (GST_MESSAGE_SRC(message)) : "(NULL)")
211
209
 * @GST_STRUCTURE_CHANGE_TYPE_PAD_UNLINK: Pad unlinking is starting or done.
212
210
 *
213
211
 * The type of a %GST_MESSAGE_STRUCTURE_CHANGE.
214
 
 *
215
 
 * Since: 0.10.22
216
212
 */
217
213
typedef enum {
218
214
  GST_STRUCTURE_CHANGE_TYPE_PAD_LINK   = 0,
231
227
 *
232
228
 * The type of a %GST_MESSAGE_STREAM_STATUS. The stream status messages inform the
233
229
 * application of new streaming threads and their status.
234
 
 *
235
 
 * Since: 0.10.24
236
230
 */
237
231
typedef enum {
238
232
  GST_STREAM_STATUS_TYPE_CREATE   = 0,
256
250
 *
257
251
 * The type of a %GST_MESSAGE_PROGRESS. The progress messages inform the
258
252
 * application of the status of assynchronous tasks.
259
 
 *
260
 
 * Since: 0.10.33
261
253
 */
262
254
typedef enum {
263
255
  GST_PROGRESS_TYPE_START    = 0,
501
493
GstMessage *    gst_message_new_async_start     (GstObject * src) G_GNUC_MALLOC;
502
494
 
503
495
/* ASYNC_DONE */
504
 
GstMessage *    gst_message_new_async_done      (GstObject * src, gboolean reset_time) G_GNUC_MALLOC;
505
 
void            gst_message_parse_async_done    (GstMessage *message, gboolean *reset_time);
 
496
GstMessage *    gst_message_new_async_done      (GstObject * src, GstClockTime running_time) G_GNUC_MALLOC;
 
497
void            gst_message_parse_async_done    (GstMessage *message, GstClockTime *running_time);
506
498
 
507
499
/* STRUCTURE CHANGE */
508
500
GstMessage *    gst_message_new_structure_change   (GstObject * src, GstStructureChangeType type,
553
545
GstMessage *    gst_message_new_toc             (GstObject *src, GstToc *toc, gboolean updated);
554
546
void            gst_message_parse_toc           (GstMessage *message, GstToc **toc, gboolean *updated);
555
547
 
 
548
/* RESET_TIME */
 
549
GstMessage *    gst_message_new_reset_time      (GstObject * src, GstClockTime running_time) G_GNUC_MALLOC;
 
550
void            gst_message_parse_reset_time    (GstMessage *message, GstClockTime *running_time);
 
551
 
 
552
/* STREAM_START */
 
553
GstMessage *    gst_message_new_stream_start    (GstObject * src) G_GNUC_MALLOC;
 
554
 
556
555
G_END_DECLS
557
556
 
558
557
#endif /* __GST_MESSAGE_H__ */