gstreamer-net-1.0.vapi 6.92 KB
Newer Older
1 2 3 4 5
/* gstreamer-net-1.0.vapi generated by vapigen, do not modify. */

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