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_")]
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);
12 public string address { owned get; set construct; }
14 public uint64 base_time { get; construct; }
16 public Gst.Bus bus { owned get; set; }
18 public Gst.Clock internal_clock { owned get; }
20 public uint64 minimum_update_interval { get; set; }
22 public int port { get; set construct; }
24 public uint64 round_trip_limit { get; set; }
26 [CCode (cheader_filename = "gst/net/net.h", cname = "GstNtpClock", lower_case_cprefix = "gst_ntp_clock_", type_id = "gst_ntp_clock_get_type ()")]
27 [GIR (name = "NtpClock")]
28 public class NtpClock : Gst.Net.ClientClock {
29 [CCode (has_construct_function = false, type = "GstClock*")]
30 [Version (since = "1.6")]
31 public NtpClock (string name, string remote_address, int remote_port, Gst.ClockTime base_time);
33 [CCode (cheader_filename = "gst/net/net.h", cname = "GstPtpClock", lower_case_cprefix = "gst_ptp_clock_", type_id = "gst_ptp_clock_get_type ()")]
34 [GIR (name = "PtpClock")]
35 public class PtpClock : Gst.SystemClock {
36 [CCode (has_construct_function = false, type = "GstClock*")]
37 [Version (since = "1.6")]
38 public PtpClock (string name, uint domain);
40 public uint domain { get; construct; }
42 public uint64 grandmaster_clock_id { get; }
44 public Gst.Clock internal_clock { owned get; }
46 public uint64 master_clock_id { get; }
48 [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 ()")]
50 [GIR (name = "NetTimePacket")]
51 public class TimePacket {
52 public Gst.ClockTime local_time;
53 public Gst.ClockTime remote_time;
54 [CCode (cname = "GST_NET_TIME_PACKET_SIZE")]
55 public const int SIZE;
56 [CCode (has_construct_function = false)]
57 public TimePacket ([CCode (array_length = false)] uint8[] buffer);
58 public Gst.Net.TimePacket copy ();
60 public static Gst.Net.TimePacket receive (GLib.Socket socket, out GLib.SocketAddress src_address) throws GLib.Error;
61 public bool send (GLib.Socket socket, GLib.SocketAddress dest_address) throws GLib.Error;
62 public uint8 serialize ();
64 [CCode (cheader_filename = "gst/net/net.h", type_id = "gst_net_time_provider_get_type ()")]
65 [GIR (name = "NetTimeProvider")]
66 public class TimeProvider : Gst.Object, GLib.Initable {
67 [CCode (has_construct_function = false)]
68 public TimeProvider (Gst.Clock clock, string? address, int port);
70 public bool active { get; set; }
72 public string address { owned get; construct; }
74 public Gst.Clock clock { owned get; construct; }
76 public int port { get; construct; }
78 [CCode (cheader_filename = "gst/net/net.h", has_type_id = false)]
79 [GIR (name = "NetAddressMeta")]
80 public struct AddressMeta {
82 public weak GLib.SocketAddress addr;
84 [CCode (cheader_filename = "gst/net/net.h", has_type_id = false)]
85 [GIR (name = "NetControlMessageMeta")]
86 public struct ControlMessageMeta {
88 public weak GLib.SocketControlMessage message;
90 [CCode (cheader_filename = "gst/net/net.h", cname = "GstPtpStatisticsCallback", instance_pos = 2.9)]
91 public delegate bool PtpStatisticsCallback (uint8 domain, Gst.Structure stats);
92 [CCode (cheader_filename = "gst/net/net.h", cname = "GST_PTP_CLOCK_ID_NONE")]
93 public const uint64 PTP_CLOCK_ID_NONE;
94 [CCode (cheader_filename = "gst/net/net.h", cname = "GST_PTP_STATISTICS_BEST_MASTER_CLOCK_SELECTED")]
95 public const string PTP_STATISTICS_BEST_MASTER_CLOCK_SELECTED;
96 [CCode (cheader_filename = "gst/net/net.h", cname = "GST_PTP_STATISTICS_NEW_DOMAIN_FOUND")]
97 public const string PTP_STATISTICS_NEW_DOMAIN_FOUND;
98 [CCode (cheader_filename = "gst/net/net.h", cname = "GST_PTP_STATISTICS_PATH_DELAY_MEASURED")]
99 public const string PTP_STATISTICS_PATH_DELAY_MEASURED;
100 [CCode (cheader_filename = "gst/net/net.h", cname = "GST_PTP_STATISTICS_TIME_UPDATED")]
101 public const string PTP_STATISTICS_TIME_UPDATED;
102 [CCode (cheader_filename = "gst/net/net.h")]
103 public static GLib.Type address_meta_api_get_type ();
104 [CCode (cheader_filename = "gst/net/net.h")]
105 public static unowned Gst.MetaInfo? address_meta_get_info ();
106 [CCode (cheader_filename = "gst/net/net.h", cname = "gst_buffer_add_net_address_meta")]
107 public static unowned Gst.Net.AddressMeta? buffer_add_net_address_meta (Gst.Buffer buffer, GLib.SocketAddress addr);
108 [CCode (cheader_filename = "gst/net/net.h", cname = "gst_buffer_add_net_control_message_meta")]
109 public static unowned Gst.Net.ControlMessageMeta? buffer_add_net_control_message_meta (Gst.Buffer buffer, GLib.SocketControlMessage message);
110 [CCode (cheader_filename = "gst/net/net.h", cname = "gst_buffer_get_net_address_meta")]
111 public static unowned Gst.Net.AddressMeta? buffer_get_net_address_meta (Gst.Buffer buffer);
112 [CCode (cheader_filename = "gst/net/net.h")]
113 public static GLib.Type control_message_meta_api_get_type ();
114 [CCode (cheader_filename = "gst/net/net.h")]
115 public static unowned Gst.MetaInfo? control_message_meta_get_info ();
116 [CCode (cheader_filename = "gst/net/net.h", cname = "gst_ptp_deinit")]
117 [Version (since = "1.6")]
118 public static void ptp_deinit ();
119 [CCode (cheader_filename = "gst/net/net.h", cname = "gst_ptp_init")]
120 [Version (since = "1.6")]
121 public static bool ptp_init (uint64 clock_id, [CCode (array_length = false, array_null_terminated = true)] string[]? interfaces);
122 [CCode (cheader_filename = "gst/net/net.h", cname = "gst_ptp_is_initialized")]
123 [Version (since = "1.6")]
124 public static bool ptp_is_initialized ();
125 [CCode (cheader_filename = "gst/net/net.h", cname = "gst_ptp_is_supported")]
126 [Version (since = "1.6")]
127 public static bool ptp_is_supported ();
128 [CCode (cheader_filename = "gst/net/net.h", cname = "gst_ptp_statistics_callback_add")]
129 [Version (since = "1.6")]
130 public static ulong ptp_statistics_callback_add (owned Gst.Net.PtpStatisticsCallback callback);
131 [CCode (cheader_filename = "gst/net/net.h", cname = "gst_ptp_statistics_callback_remove")]
132 [Version (since = "1.6")]
133 public static void ptp_statistics_callback_remove (ulong id);