Debian Codegraph @

libs/gst/controller/gsttriggercontrolsource.h

raw
1 /* GStreamer
2 *
3 * Copyright (C) 2007 Sebastian Dröge <[email protected]>
4 * 2011 Stefan Sauer <[email protected]>
5 *
6 * gsttriggercontrolsource.h: Control source that provides some values at time-
7 * stamps
8 *
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public
11 * License as published by the Free Software Foundation; either
12 * version 2 of the License, or (at your option) any later version.
13 *
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Library General Public License for more details.
18 *
19 * You should have received a copy of the GNU Library General Public
20 * License along with this library; if not, write to the
21 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
22 * Boston, MA 02110-1301, USA.
23 */
24
25
26 #ifndef __GST_TRIGGER_CONTROL_SOURCE_H__
27 #define __GST_TRIGGER_CONTROL_SOURCE_H__
28
29 #include <glib-object.h>
30 #include <gst/gst.h>
31
32 #include <gst/controller/gsttimedvaluecontrolsource.h>
33
34 G_BEGIN_DECLS
35
36 #define GST_TYPE_TRIGGER_CONTROL_SOURCE \
37 (gst_trigger_control_source_get_type ())
38 #define GST_TRIGGER_CONTROL_SOURCE(obj) \
39 (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_TRIGGER_CONTROL_SOURCE, GstTriggerControlSource))
40 #define GST_TRIGGER_CONTROL_SOURCE_CLASS(vtable) \
41 (G_TYPE_CHECK_CLASS_CAST ((vtable), GST_TYPE_TRIGGER_CONTROL_SOURCE, GstTriggerControlSourceClass))
42 #define GST_IS_TRIGGER_CONTROL_SOURCE(obj) \
43 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_TRIGGER_CONTROL_SOURCE))
44 #define GST_IS_TRIGGER_CONTROL_SOURCE_CLASS(vtable) \
45 (G_TYPE_CHECK_CLASS_TYPE ((vtable), GST_TYPE_TRIGGER_CONTROL_SOURCE))
46 #define GST_TRIGGER_CONTROL_SOURCE_GET_CLASS(inst) \
47 (G_TYPE_INSTANCE_GET_CLASS ((inst), GST_TYPE_TRIGGER_CONTROL_SOURCE, GstTriggerControlSourceClass))
48
49 #define GST_TYPE_TRIGGER_WAVEFORM (gst_trigger_waveform_get_type ())
50
51 typedef struct _GstTriggerControlSource GstTriggerControlSource;
52 typedef struct _GstTriggerControlSourceClass GstTriggerControlSourceClass;
53 typedef struct _GstTriggerControlSourcePrivate GstTriggerControlSourcePrivate;
54
55 /**
56 * GstTriggerControlSource:
57 *
58 * The instance structure of #GstControlSource.
59 */
60 struct _GstTriggerControlSource {
61 GstTimedValueControlSource parent;
62
63 /*< private >*/
64 GstTriggerControlSourcePrivate *priv;
65 gpointer _gst_reserved[GST_PADDING];
66 };
67
68 struct _GstTriggerControlSourceClass {
69 GstTimedValueControlSourceClass parent_class;
70
71 /*< private >*/
72 gpointer _gst_reserved[GST_PADDING];
73 };
74
75 GST_CONTROLLER_API
76 GType gst_trigger_control_source_get_type (void);
77
78 /* Functions */
79
80 GST_CONTROLLER_API
81 GstControlSource *gst_trigger_control_source_new (void) G_GNUC_WARN_UNUSED_RESULT;
82
83 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstTriggerControlSource, gst_object_unref)
84
85 G_END_DECLS
86
87 #endif /* __GST_TRIGGER_CONTROL_SOURCE_H__ */