Release 0.41.92
[vala-gnome.git] / vapi / gstreamer-check-1.0.vapi
blob00b3ad45e5f55a59c4f57db51b3159e33d7d3ccc
1 /* gstreamer-check-1.0.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Gst", gir_namespace = "GstCheck", gir_version = "1.0", lower_case_cprefix = "gst_")]
4 namespace Gst {
5         namespace Check {
6                 [CCode (cheader_filename = "gst/check/check.h", cname = "GstHarnessThread", has_type_id = false)]
7                 [Compact]
8                 [GIR (name = "HarnessThread")]
9                 [Version (since = "1.6")]
10                 public class HarnessThread {
11                 }
12                 [CCode (cheader_filename = "gst/check/check.h", has_type_id = false)]
13                 [Compact]
14                 [GIR (name = "CheckLogFilter")]
15                 public class LogFilter {
16                 }
17                 [CCode (cheader_filename = "gst/check/gstbufferstraw.h,gst/check/gstcheck.h,gst/check/gstconsistencychecker.h,gst/check/internal-check.h", cname = "GstStreamConsistency", has_type_id = false, lower_case_cprefix = "gst_consistency_checker_")]
18                 [Compact]
19                 [GIR (name = "StreamConsistency")]
20                 public class StreamConsistency {
21                         public StreamConsistency (Gst.Pad pad);
22                         public bool add_pad (Gst.Pad pad);
23                         public void free ();
24                         public void reset ();
25                 }
26                 [CCode (cheader_filename = "gst/check/check.h", cname = "GstTestClock", lower_case_cprefix = "gst_test_clock_", type_id = "gst_test_clock_get_type ()")]
27                 [GIR (name = "TestClock")]
28                 [Version (since = "1.2")]
29                 public class TestClock : Gst.Clock {
30                         [CCode (has_construct_function = false, type = "GstClock*")]
31                         public TestClock ();
32                         public void advance_time (Gst.ClockTimeDiff delta);
33                         [Version (since = "1.8")]
34                         public bool crank ();
35                         public Gst.ClockTime get_next_entry_time ();
36                         public bool has_id (Gst.ClockID id);
37                         [Version (since = "1.4")]
38                         public static Gst.ClockTime id_list_get_latest_time (GLib.List<Gst.ClockID?>? pending_list);
39                         public uint peek_id_count ();
40                         public bool peek_next_pending_id (out Gst.ClockID pending_id);
41                         [Version (since = "1.4")]
42                         public uint process_id_list (GLib.List<Gst.ClockID?>? pending_list);
43                         public Gst.ClockID process_next_clock_id ();
44                         public void set_time (Gst.ClockTime new_time);
45                         [Version (since = "1.4")]
46                         public void wait_for_multiple_pending_ids (uint count, out GLib.List<Gst.ClockID?> pending_list);
47                         public void wait_for_next_pending_id (out Gst.ClockID pending_id);
48                         [Version (deprecated = true, since = "1.2")]
49                         public void wait_for_pending_id_count (uint count);
50                         [CCode (has_construct_function = false, type = "GstClock*")]
51                         public TestClock.with_start_time (Gst.ClockTime start_time);
52                         [NoAccessorMethod]
53                         public Gst.ClockType clock_type { get; set; }
54                         [NoAccessorMethod]
55                         public uint64 start_time { get; construct; }
56                 }
57                 [CCode (cheader_filename = "gst/check/check.h", has_type_id = false)]
58                 [GIR (name = "CheckABIStruct")]
59                 public struct ABIStruct {
60                         public weak string name;
61                         public int size;
62                         public int abi_size;
63                 }
64                 [CCode (cheader_filename = "gst/check/check.h", cname = "GstHarness", has_type_id = false)]
65                 [GIR (name = "Harness")]
66                 [Version (since = "1.6")]
67                 public struct Harness {
68                         public weak Gst.Element element;
69                         public weak Gst.Pad srcpad;
70                         public weak Gst.Pad sinkpad;
71                         [CCode (cname = "gst_harness_add_element_sink_pad")]
72                         public void add_element_sink_pad (Gst.Pad sinkpad);
73                         [CCode (cname = "gst_harness_add_element_src_pad")]
74                         public void add_element_src_pad (Gst.Pad srcpad);
75                         [CCode (cname = "gst_harness_add_probe")]
76                         public void add_probe (string element_name, string pad_name, Gst.PadProbeType mask, owned Gst.PadProbeCallback callback);
77                         [CCode (cname = "gst_harness_add_sink")]
78                         public void add_sink (string sink_element_name);
79                         [CCode (cname = "gst_harness_add_sink_harness")]
80                         public void add_sink_harness (owned Gst.Check.Harness sink_harness);
81                         [CCode (cname = "gst_harness_add_sink_parse")]
82                         public void add_sink_parse (string launchline);
83                         [CCode (cname = "gst_harness_add_src")]
84                         public void add_src (string src_element_name, bool has_clock_wait);
85                         [CCode (cname = "gst_harness_add_src_harness")]
86                         public void add_src_harness (owned Gst.Check.Harness src_harness, bool has_clock_wait);
87                         [CCode (cname = "gst_harness_add_src_parse")]
88                         public void add_src_parse (string launchline, bool has_clock_wait);
89                         [CCode (cname = "gst_harness_buffers_in_queue")]
90                         public uint buffers_in_queue ();
91                         [CCode (cname = "gst_harness_buffers_received")]
92                         public uint buffers_received ();
93                         [CCode (cname = "gst_harness_crank_multiple_clock_waits")]
94                         public bool crank_multiple_clock_waits (uint waits);
95                         [CCode (cname = "gst_harness_crank_single_clock_wait")]
96                         public bool crank_single_clock_wait ();
97                         [CCode (cname = "gst_harness_create_buffer")]
98                         public Gst.Buffer create_buffer (size_t size);
99                         [CCode (cname = "gst_harness_dump_to_file")]
100                         public void dump_to_file (string filename);
101                         [CCode (cname = "gst_harness_events_in_queue")]
102                         public uint events_in_queue ();
103                         [CCode (cname = "gst_harness_events_received")]
104                         public uint events_received ();
105                         [CCode (cname = "gst_harness_find_element")]
106                         public Gst.Element? find_element (string element_name);
107                         [CCode (cname = "gst_harness_get_allocator")]
108                         public void get_allocator (out unowned Gst.Allocator allocator, out Gst.AllocationParams @params);
109                         [CCode (cname = "gst_harness_get_last_pushed_timestamp")]
110                         public Gst.ClockTime get_last_pushed_timestamp ();
111                         [CCode (cname = "gst_harness_get_testclock")]
112                         public Gst.Check.TestClock get_testclock ();
113                         [CCode (cname = "gst_harness_play")]
114                         public void play ();
115                         [CCode (cname = "gst_harness_pull")]
116                         public Gst.Buffer pull ();
117                         [CCode (cname = "gst_harness_pull_event")]
118                         public Gst.Event pull_event ();
119                         [CCode (cname = "gst_harness_pull_upstream_event")]
120                         public Gst.Event pull_upstream_event ();
121                         [CCode (cname = "gst_harness_push")]
122                         public Gst.FlowReturn push (owned Gst.Buffer buffer);
123                         [CCode (cname = "gst_harness_push_and_pull")]
124                         public Gst.Buffer push_and_pull (owned Gst.Buffer buffer);
125                         [CCode (cname = "gst_harness_push_event")]
126                         public bool push_event (Gst.Event event);
127                         [CCode (cname = "gst_harness_push_from_src")]
128                         public Gst.FlowReturn push_from_src ();
129                         [CCode (cname = "gst_harness_push_to_sink")]
130                         public Gst.FlowReturn push_to_sink ();
131                         [CCode (cname = "gst_harness_push_upstream_event")]
132                         public bool push_upstream_event (Gst.Event event);
133                         [CCode (cname = "gst_harness_query_latency")]
134                         public Gst.ClockTime query_latency ();
135                         [CCode (cname = "gst_harness_set_blocking_push_mode")]
136                         public void set_blocking_push_mode ();
137                         [CCode (cname = "gst_harness_set_caps")]
138                         public void set_caps (owned Gst.Caps @in, owned Gst.Caps @out);
139                         [CCode (cname = "gst_harness_set_caps_str")]
140                         public void set_caps_str (string @in, string @out);
141                         [CCode (cname = "gst_harness_set_drop_buffers")]
142                         public void set_drop_buffers (bool drop_buffers);
143                         [CCode (cname = "gst_harness_set_forwarding")]
144                         public void set_forwarding (bool forwarding);
145                         [CCode (cname = "gst_harness_set_propose_allocator")]
146                         public void set_propose_allocator (owned Gst.Allocator? allocator, Gst.AllocationParams? @params);
147                         [CCode (cname = "gst_harness_set_sink_caps")]
148                         public void set_sink_caps (owned Gst.Caps caps);
149                         [CCode (cname = "gst_harness_set_sink_caps_str")]
150                         public void set_sink_caps_str (string str);
151                         [CCode (cname = "gst_harness_set_src_caps")]
152                         public void set_src_caps (owned Gst.Caps caps);
153                         [CCode (cname = "gst_harness_set_src_caps_str")]
154                         public void set_src_caps_str (string str);
155                         [CCode (cname = "gst_harness_set_time")]
156                         public bool set_time (Gst.ClockTime time);
157                         [CCode (cname = "gst_harness_set_upstream_latency")]
158                         public void set_upstream_latency (Gst.ClockTime latency);
159                         [CCode (cname = "gst_harness_sink_push_many")]
160                         public Gst.FlowReturn sink_push_many (int pushes);
161                         [CCode (cname = "gst_harness_src_crank_and_push_many")]
162                         public Gst.FlowReturn src_crank_and_push_many (int cranks, int pushes);
163                         [CCode (cname = "gst_harness_src_push_event")]
164                         public bool src_push_event ();
165                         [CCode (cname = "gst_harness_take_all_data_as_buffer")]
166                         [Version (since = "1.14")]
167                         public Gst.Buffer take_all_data_as_buffer ();
168                         [CCode (cname = "gst_harness_take_all_data_as_bytes")]
169                         [Version (since = "1.14")]
170                         public GLib.Bytes take_all_data_as_bytes ();
171                         [CCode (cname = "gst_harness_teardown")]
172                         public void teardown ();
173                         [CCode (cname = "gst_harness_try_pull")]
174                         public Gst.Buffer try_pull ();
175                         [CCode (cname = "gst_harness_try_pull_event")]
176                         public Gst.Event try_pull_event ();
177                         [CCode (cname = "gst_harness_try_pull_upstream_event")]
178                         public Gst.Event try_pull_upstream_event ();
179                         [CCode (cname = "gst_harness_upstream_events_in_queue")]
180                         public uint upstream_events_in_queue ();
181                         [CCode (cname = "gst_harness_upstream_events_received")]
182                         public uint upstream_events_received ();
183                         [CCode (cname = "gst_harness_use_systemclock")]
184                         public void use_systemclock ();
185                         [CCode (cname = "gst_harness_use_testclock")]
186                         public void use_testclock ();
187                         [CCode (cname = "gst_harness_wait_for_clock_id_waits")]
188                         public bool wait_for_clock_id_waits (uint waits, uint timeout);
189                 }
190                 [CCode (cheader_filename = "gst/check/check.h", cname = "GstHarnessPrepareBufferFunc", has_target = false)]
191                 [Version (since = "1.6")]
192                 public delegate Gst.Buffer HarnessPrepareBufferFunc (Gst.Check.Harness h, void* data);
193                 [CCode (cheader_filename = "gst/check/check.h", cname = "GstHarnessPrepareEventFunc", has_target = false)]
194                 [Version (since = "1.8")]
195                 public delegate Gst.Event HarnessPrepareEventFunc (Gst.Check.Harness h, void* data);
196                 [CCode (cheader_filename = "gst/check/check.h", instance_pos = 3.9)]
197                 [Version (since = "1.12")]
198                 public delegate bool LogFilterFunc (string log_domain, GLib.LogLevelFlags log_level, string message);
199                 [CCode (cheader_filename = "gst/check/check.h")]
200                 public static void abi_list (Gst.Check.ABIStruct list, bool have_abi_sizes);
201                 [CCode (cheader_filename = "gst/check/check.h")]
202                 public static void buffer_data (Gst.Buffer buffer, void* data, size_t size);
203                 [CCode (cheader_filename = "gst/check/check.h", cname = "gst_buffer_straw_get_buffer")]
204                 public static Gst.Buffer buffer_straw_get_buffer (Gst.Element bin, Gst.Pad pad);
205                 [CCode (cheader_filename = "gst/check/check.h", cname = "gst_buffer_straw_start_pipeline")]
206                 public static void buffer_straw_start_pipeline (Gst.Element bin, Gst.Pad pad);
207                 [CCode (cheader_filename = "gst/check/check.h", cname = "gst_buffer_straw_stop_pipeline")]
208                 public static void buffer_straw_stop_pipeline (Gst.Element bin, Gst.Pad pad);
209                 [CCode (cheader_filename = "gst/check/check.h")]
210                 public static void caps_equal (Gst.Caps caps1, Gst.Caps caps2);
211                 [CCode (cheader_filename = "gst/check/check.h")]
212                 public static Gst.FlowReturn chain_func (Gst.Pad pad, Gst.Object parent, Gst.Buffer buffer);
213                 [CCode (cheader_filename = "gst/check/check.h")]
214                 [Version (since = "1.12")]
215                 public static void clear_log_filter ();
216                 [CCode (cheader_filename = "gst/check/check.h")]
217                 public static void drop_buffers ();
218                 [CCode (cheader_filename = "gst/check/check.h")]
219                 public static void element_push_buffer (string element_name, Gst.Buffer buffer_in, Gst.Caps caps_in, Gst.Buffer buffer_out, Gst.Caps caps_out);
220                 [CCode (cheader_filename = "gst/check/check.h")]
221                 public static void element_push_buffer_list (string element_name, owned GLib.List<Gst.Buffer> buffer_in, Gst.Caps caps_in, owned GLib.List<Gst.Buffer> buffer_out, Gst.Caps caps_out, Gst.FlowReturn last_flow_return);
222                 [CCode (cheader_filename = "gst/check/check.h", cname = "gst_harness_stress_thread_stop")]
223                 [Version (since = "1.6")]
224                 public static uint harness_stress_thread_stop (Gst.Check.HarnessThread t);
225                 [CCode (cheader_filename = "gst/check/check.h")]
226                 public static void init (int argc, string argv);
227                 [CCode (cheader_filename = "gst/check/check.h")]
228                 public static void message_error (Gst.Message message, Gst.MessageType type, GLib.Quark domain, int code);
229                 [CCode (cheader_filename = "gst/check/check.h")]
230                 [Version (since = "1.6")]
231                 public static void object_destroyed_on_unref (void* object_to_unref);
232                 [CCode (cheader_filename = "gst/check/check.h")]
233                 [Version (since = "1.12")]
234                 public static void remove_log_filter (Gst.Check.LogFilter filter);
235                 [CCode (cheader_filename = "gst/check/check.h")]
236                 public static Gst.Element setup_element (string factory);
237                 [CCode (cheader_filename = "gst/check/check.h")]
238                 public static void setup_events (Gst.Pad srcpad, Gst.Element element, Gst.Caps? caps, Gst.Format format);
239                 [CCode (cheader_filename = "gst/check/check.h")]
240                 public static void setup_events_with_stream_id (Gst.Pad srcpad, Gst.Element element, Gst.Caps? caps, Gst.Format format, string stream_id);
241                 [CCode (cheader_filename = "gst/check/check.h")]
242                 public static Gst.Pad setup_sink_pad (Gst.Element element, Gst.StaticPadTemplate tmpl);
243                 [CCode (cheader_filename = "gst/check/check.h")]
244                 public static Gst.Pad setup_sink_pad_by_name (Gst.Element element, Gst.StaticPadTemplate tmpl, string name);
245                 [CCode (cheader_filename = "gst/check/check.h")]
246                 [Version (since = "1.4")]
247                 public static Gst.Pad setup_sink_pad_by_name_from_template (Gst.Element element, Gst.PadTemplate tmpl, string name);
248                 [CCode (cheader_filename = "gst/check/check.h")]
249                 [Version (since = "1.4")]
250                 public static Gst.Pad setup_sink_pad_from_template (Gst.Element element, Gst.PadTemplate tmpl);
251                 [CCode (cheader_filename = "gst/check/check.h")]
252                 public static Gst.Pad setup_src_pad (Gst.Element element, Gst.StaticPadTemplate tmpl);
253                 [CCode (cheader_filename = "gst/check/check.h")]
254                 public static Gst.Pad setup_src_pad_by_name (Gst.Element element, Gst.StaticPadTemplate tmpl, string name);
255                 [CCode (cheader_filename = "gst/check/check.h")]
256                 [Version (since = "1.4")]
257                 public static Gst.Pad setup_src_pad_by_name_from_template (Gst.Element element, Gst.PadTemplate tmpl, string name);
258                 [CCode (cheader_filename = "gst/check/check.h")]
259                 [Version (since = "1.4")]
260                 public static Gst.Pad setup_src_pad_from_template (Gst.Element element, Gst.PadTemplate tmpl);
261                 [CCode (cheader_filename = "gst/check/check.h")]
262                 public static void teardown_element (Gst.Element element);
263                 [CCode (cheader_filename = "gst/check/check.h")]
264                 public static void teardown_pad_by_name (Gst.Element element, string name);
265                 [CCode (cheader_filename = "gst/check/check.h")]
266                 public static void teardown_sink_pad (Gst.Element element);
267                 [CCode (cheader_filename = "gst/check/check.h")]
268                 public static void teardown_src_pad (Gst.Element element);
269         }