Release 0.41.92
[vala-gnome.git] / vapi / gstreamer-net-1.0.vapi
blob17019356abaa07ee76f88a7df7e3fb8f970392a5
1 /* gstreamer-net-1.0.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Gst", gir_namespace = "GstNet", gir_version = "1.0", lower_case_cprefix = "gst_")]
4 namespace Gst {
5         namespace Net {
6                 [CCode (cheader_filename = "gst/net/net.h", type_id = "gst_net_client_clock_get_type ()")]
7                 [GIR (name = "NetClientClock")]
8                 public class ClientClock : Gst.SystemClock {
9                         [CCode (has_construct_function = false, type = "GstClock*")]
10                         public ClientClock (string name, string remote_address, int remote_port, Gst.ClockTime base_time);
11                         [NoAccessorMethod]
12                         public string address { owned get; set construct; }
13                         [NoAccessorMethod]
14                         public uint64 base_time { get; construct; }
15                         [NoAccessorMethod]
16                         public Gst.Bus bus { owned get; set; }
17                         [NoAccessorMethod]
18                         public Gst.Clock internal_clock { owned get; }
19                         [NoAccessorMethod]
20                         public uint64 minimum_update_interval { get; set; }
21                         [NoAccessorMethod]
22                         public int port { get; set construct; }
23                         [NoAccessorMethod]
24                         public int qos_dscp { get; set; }
25                         [NoAccessorMethod]
26                         public uint64 round_trip_limit { get; set; }
27                 }
28                 [CCode (cheader_filename = "gst/net/net.h", cname = "GstNtpClock", lower_case_cprefix = "gst_ntp_clock_", type_id = "gst_ntp_clock_get_type ()")]
29                 [GIR (name = "NtpClock")]
30                 public class NtpClock : Gst.Net.ClientClock {
31                         [CCode (has_construct_function = false, type = "GstClock*")]
32                         [Version (since = "1.6")]
33                         public NtpClock (string name, string remote_address, int remote_port, Gst.ClockTime base_time);
34                 }
35                 [CCode (cheader_filename = "gst/net/net.h", cname = "GstPtpClock", lower_case_cprefix = "gst_ptp_clock_", type_id = "gst_ptp_clock_get_type ()")]
36                 [GIR (name = "PtpClock")]
37                 public class PtpClock : Gst.SystemClock {
38                         [CCode (has_construct_function = false, type = "GstClock*")]
39                         [Version (since = "1.6")]
40                         public PtpClock (string name, uint domain);
41                         [NoAccessorMethod]
42                         public uint domain { get; construct; }
43                         [NoAccessorMethod]
44                         public uint64 grandmaster_clock_id { get; }
45                         [NoAccessorMethod]
46                         public Gst.Clock internal_clock { owned get; }
47                         [NoAccessorMethod]
48                         public uint64 master_clock_id { get; }
49                 }
50                 [CCode (cheader_filename = "gst/net/net.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gst_net_time_packet_get_type ()")]
51                 [Compact]
52                 [GIR (name = "NetTimePacket")]
53                 public class TimePacket {
54                         public Gst.ClockTime local_time;
55                         public Gst.ClockTime remote_time;
56                         [CCode (cname = "GST_NET_TIME_PACKET_SIZE")]
57                         public const int SIZE;
58                         [CCode (has_construct_function = false)]
59                         public TimePacket ([CCode (array_length = false)] uint8[] buffer);
60                         public Gst.Net.TimePacket copy ();
61                         public void free ();
62                         public static Gst.Net.TimePacket receive (GLib.Socket socket, out GLib.SocketAddress src_address) throws GLib.Error;
63                         public bool send (GLib.Socket socket, GLib.SocketAddress dest_address) throws GLib.Error;
64                         public uint8 serialize ();
65                 }
66                 [CCode (cheader_filename = "gst/net/net.h", type_id = "gst_net_time_provider_get_type ()")]
67                 [GIR (name = "NetTimeProvider")]
68                 public class TimeProvider : Gst.Object, GLib.Initable {
69                         [CCode (has_construct_function = false)]
70                         public TimeProvider (Gst.Clock clock, string? address, int port);
71                         [NoAccessorMethod]
72                         public bool active { get; set; }
73                         [NoAccessorMethod]
74                         public string address { owned get; construct; }
75                         [NoAccessorMethod]
76                         public Gst.Clock clock { owned get; construct; }
77                         [NoAccessorMethod]
78                         public int port { get; construct; }
79                         [NoAccessorMethod]
80                         public int qos_dscp { get; set; }
81                 }
82                 [CCode (cheader_filename = "gst/net/net.h", has_type_id = false)]
83                 [GIR (name = "NetAddressMeta")]
84                 public struct AddressMeta {
85                         public Gst.Meta meta;
86                         public weak GLib.SocketAddress addr;
87                 }
88                 [CCode (cheader_filename = "gst/net/net.h", has_type_id = false)]
89                 [GIR (name = "NetControlMessageMeta")]
90                 public struct ControlMessageMeta {
91                         public Gst.Meta meta;
92                         public weak GLib.SocketControlMessage message;
93                 }
94                 [CCode (cheader_filename = "gst/net/net.h", cname = "GstPtpStatisticsCallback", instance_pos = 2.9)]
95                 public delegate bool PtpStatisticsCallback (uint8 domain, Gst.Structure stats);
96                 [CCode (cheader_filename = "gst/net/net.h", cname = "GST_PTP_CLOCK_ID_NONE")]
97                 public const uint64 PTP_CLOCK_ID_NONE;
98                 [CCode (cheader_filename = "gst/net/net.h", cname = "GST_PTP_STATISTICS_BEST_MASTER_CLOCK_SELECTED")]
99                 public const string PTP_STATISTICS_BEST_MASTER_CLOCK_SELECTED;
100                 [CCode (cheader_filename = "gst/net/net.h", cname = "GST_PTP_STATISTICS_NEW_DOMAIN_FOUND")]
101                 public const string PTP_STATISTICS_NEW_DOMAIN_FOUND;
102                 [CCode (cheader_filename = "gst/net/net.h", cname = "GST_PTP_STATISTICS_PATH_DELAY_MEASURED")]
103                 public const string PTP_STATISTICS_PATH_DELAY_MEASURED;
104                 [CCode (cheader_filename = "gst/net/net.h", cname = "GST_PTP_STATISTICS_TIME_UPDATED")]
105                 public const string PTP_STATISTICS_TIME_UPDATED;
106                 [CCode (cheader_filename = "gst/net/net.h")]
107                 public static GLib.Type address_meta_api_get_type ();
108                 [CCode (cheader_filename = "gst/net/net.h")]
109                 public static unowned Gst.MetaInfo? address_meta_get_info ();
110                 [CCode (cheader_filename = "gst/net/net.h", cname = "gst_buffer_add_net_address_meta")]
111                 public static unowned Gst.Net.AddressMeta? buffer_add_net_address_meta (Gst.Buffer buffer, GLib.SocketAddress addr);
112                 [CCode (cheader_filename = "gst/net/net.h", cname = "gst_buffer_add_net_control_message_meta")]
113                 public static unowned Gst.Net.ControlMessageMeta? buffer_add_net_control_message_meta (Gst.Buffer buffer, GLib.SocketControlMessage message);
114                 [CCode (cheader_filename = "gst/net/net.h", cname = "gst_buffer_get_net_address_meta")]
115                 public static unowned Gst.Net.AddressMeta? buffer_get_net_address_meta (Gst.Buffer buffer);
116                 [CCode (cheader_filename = "gst/net/net.h")]
117                 public static GLib.Type control_message_meta_api_get_type ();
118                 [CCode (cheader_filename = "gst/net/net.h")]
119                 public static unowned Gst.MetaInfo? control_message_meta_get_info ();
120                 [CCode (cheader_filename = "gst/net/net.h", cname = "gst_ptp_deinit")]
121                 [Version (since = "1.6")]
122                 public static void ptp_deinit ();
123                 [CCode (cheader_filename = "gst/net/net.h", cname = "gst_ptp_init")]
124                 [Version (since = "1.6")]
125                 public static bool ptp_init (uint64 clock_id, [CCode (array_length = false, array_null_terminated = true)] string[]? interfaces);
126                 [CCode (cheader_filename = "gst/net/net.h", cname = "gst_ptp_is_initialized")]
127                 [Version (since = "1.6")]
128                 public static bool ptp_is_initialized ();
129                 [CCode (cheader_filename = "gst/net/net.h", cname = "gst_ptp_is_supported")]
130                 [Version (since = "1.6")]
131                 public static bool ptp_is_supported ();
132                 [CCode (cheader_filename = "gst/net/net.h", cname = "gst_ptp_statistics_callback_add")]
133                 [Version (since = "1.6")]
134                 public static ulong ptp_statistics_callback_add (owned Gst.Net.PtpStatisticsCallback callback);
135                 [CCode (cheader_filename = "gst/net/net.h", cname = "gst_ptp_statistics_callback_remove")]
136                 [Version (since = "1.6")]
137                 public static void ptp_statistics_callback_remove (ulong id);
138         }