gio-2.0: "address" parameter of Socket.receive_message() is optional
[vala-gnome.git] / vapi / gstreamer-check-1.0.vapi
blob87d4048929cfb9ff902a296d5f2b244bd547271c
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 (Gst.Buffer buffer);
123                         [CCode (cname = "gst_harness_push_and_pull")]
124                         public Gst.Buffer push_and_pull (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_teardown")]
166                         public void teardown ();
167                         [CCode (cname = "gst_harness_try_pull")]
168                         public Gst.Buffer try_pull ();
169                         [CCode (cname = "gst_harness_try_pull_event")]
170                         public Gst.Event try_pull_event ();
171                         [CCode (cname = "gst_harness_try_pull_upstream_event")]
172                         public Gst.Event try_pull_upstream_event ();
173                         [CCode (cname = "gst_harness_upstream_events_in_queue")]
174                         public uint upstream_events_in_queue ();
175                         [CCode (cname = "gst_harness_upstream_events_received")]
176                         public uint upstream_events_received ();
177                         [CCode (cname = "gst_harness_use_systemclock")]
178                         public void use_systemclock ();
179                         [CCode (cname = "gst_harness_use_testclock")]
180                         public void use_testclock ();
181                         [CCode (cname = "gst_harness_wait_for_clock_id_waits")]
182                         public bool wait_for_clock_id_waits (uint waits, uint timeout);
183                 }
184                 [CCode (cheader_filename = "gst/check/check.h", cname = "GstHarnessPrepareBufferFunc", has_target = false)]
185                 [Version (since = "1.6")]
186                 public delegate Gst.Buffer HarnessPrepareBufferFunc (Gst.Check.Harness h, void* data);
187                 [CCode (cheader_filename = "gst/check/check.h", cname = "GstHarnessPrepareEventFunc", has_target = false)]
188                 [Version (since = "1.8")]
189                 public delegate Gst.Event HarnessPrepareEventFunc (Gst.Check.Harness h, void* data);
190                 [CCode (cheader_filename = "gst/check/check.h", instance_pos = 3.9)]
191                 [Version (since = "1.12")]
192                 public delegate bool LogFilterFunc (string log_domain, GLib.LogLevelFlags log_level, string message);
193                 [CCode (cheader_filename = "gst/check/check.h")]
194                 public static void abi_list (Gst.Check.ABIStruct list, bool have_abi_sizes);
195                 [CCode (cheader_filename = "gst/check/check.h")]
196                 public static void buffer_data (Gst.Buffer buffer, void* data, size_t size);
197                 [CCode (cheader_filename = "gst/check/check.h", cname = "gst_buffer_straw_get_buffer")]
198                 public static Gst.Buffer buffer_straw_get_buffer (Gst.Element bin, Gst.Pad pad);
199                 [CCode (cheader_filename = "gst/check/check.h", cname = "gst_buffer_straw_start_pipeline")]
200                 public static void buffer_straw_start_pipeline (Gst.Element bin, Gst.Pad pad);
201                 [CCode (cheader_filename = "gst/check/check.h", cname = "gst_buffer_straw_stop_pipeline")]
202                 public static void buffer_straw_stop_pipeline (Gst.Element bin, Gst.Pad pad);
203                 [CCode (cheader_filename = "gst/check/check.h")]
204                 public static void caps_equal (Gst.Caps caps1, Gst.Caps caps2);
205                 [CCode (cheader_filename = "gst/check/check.h")]
206                 public static Gst.FlowReturn chain_func (Gst.Pad pad, Gst.Object parent, Gst.Buffer buffer);
207                 [CCode (cheader_filename = "gst/check/check.h")]
208                 [Version (since = "1.12")]
209                 public static void clear_log_filter ();
210                 [CCode (cheader_filename = "gst/check/check.h")]
211                 public static void drop_buffers ();
212                 [CCode (cheader_filename = "gst/check/check.h")]
213                 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);
214                 [CCode (cheader_filename = "gst/check/check.h")]
215                 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);
216                 [CCode (cheader_filename = "gst/check/check.h", cname = "gst_harness_stress_thread_stop")]
217                 [Version (since = "1.6")]
218                 public static uint harness_stress_thread_stop (Gst.Check.HarnessThread t);
219                 [CCode (cheader_filename = "gst/check/check.h")]
220                 public static void init (int argc, string argv);
221                 [CCode (cheader_filename = "gst/check/check.h")]
222                 public static void message_error (Gst.Message message, Gst.MessageType type, GLib.Quark domain, int code);
223                 [CCode (cheader_filename = "gst/check/check.h")]
224                 [Version (since = "1.6")]
225                 public static void object_destroyed_on_unref (void* object_to_unref);
226                 [CCode (cheader_filename = "gst/check/check.h")]
227                 [Version (since = "1.12")]
228                 public static void remove_log_filter (Gst.Check.LogFilter filter);
229                 [CCode (cheader_filename = "gst/check/check.h")]
230                 public static Gst.Element setup_element (string factory);
231                 [CCode (cheader_filename = "gst/check/check.h")]
232                 public static void setup_events (Gst.Pad srcpad, Gst.Element element, Gst.Caps? caps, Gst.Format format);
233                 [CCode (cheader_filename = "gst/check/check.h")]
234                 public static void setup_events_with_stream_id (Gst.Pad srcpad, Gst.Element element, Gst.Caps? caps, Gst.Format format, string stream_id);
235                 [CCode (cheader_filename = "gst/check/check.h")]
236                 public static Gst.Pad setup_sink_pad (Gst.Element element, Gst.StaticPadTemplate tmpl);
237                 [CCode (cheader_filename = "gst/check/check.h")]
238                 public static Gst.Pad setup_sink_pad_by_name (Gst.Element element, Gst.StaticPadTemplate tmpl, string name);
239                 [CCode (cheader_filename = "gst/check/check.h")]
240                 [Version (since = "1.4")]
241                 public static Gst.Pad setup_sink_pad_by_name_from_template (Gst.Element element, Gst.PadTemplate tmpl, string name);
242                 [CCode (cheader_filename = "gst/check/check.h")]
243                 [Version (since = "1.4")]
244                 public static Gst.Pad setup_sink_pad_from_template (Gst.Element element, Gst.PadTemplate tmpl);
245                 [CCode (cheader_filename = "gst/check/check.h")]
246                 public static Gst.Pad setup_src_pad (Gst.Element element, Gst.StaticPadTemplate tmpl);
247                 [CCode (cheader_filename = "gst/check/check.h")]
248                 public static Gst.Pad setup_src_pad_by_name (Gst.Element element, Gst.StaticPadTemplate tmpl, string name);
249                 [CCode (cheader_filename = "gst/check/check.h")]
250                 [Version (since = "1.4")]
251                 public static Gst.Pad setup_src_pad_by_name_from_template (Gst.Element element, Gst.PadTemplate tmpl, string name);
252                 [CCode (cheader_filename = "gst/check/check.h")]
253                 [Version (since = "1.4")]
254                 public static Gst.Pad setup_src_pad_from_template (Gst.Element element, Gst.PadTemplate tmpl);
255                 [CCode (cheader_filename = "gst/check/check.h")]
256                 public static void teardown_element (Gst.Element element);
257                 [CCode (cheader_filename = "gst/check/check.h")]
258                 public static void teardown_pad_by_name (Gst.Element element, string name);
259                 [CCode (cheader_filename = "gst/check/check.h")]
260                 public static void teardown_sink_pad (Gst.Element element);
261                 [CCode (cheader_filename = "gst/check/check.h")]
262                 public static void teardown_src_pad (Gst.Element element);
263         }