summaryrefslogtreecommitdiff
path: root/vapi/gstreamer-sdp-0.10.vapi
blob: da67f7839cd8dd55b19e4f9c6bb8a289eaf62ef6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
/* gstreamer-sdp-0.10.vapi generated by vapigen, do not modify. */

[CCode (cprefix = "Gst", gir_namespace = "GstSdp", gir_version = "0.10", lower_case_cprefix = "gst_")]
namespace Gst {
	[CCode (cheader_filename = "gst/sdp/gstsdpmessage.h")]
	[Compact]
	public class SDPAttribute {
		public weak string key;
		public weak string value;
	}
	[CCode (cheader_filename = "gst/sdp/gstsdpmessage.h")]
	[Compact]
	public class SDPBandwidth {
		public uint bandwidth;
		public weak string bwtype;
	}
	[CCode (cheader_filename = "gst/sdp/gstsdpmessage.h")]
	[Compact]
	public class SDPConnection {
		public uint addr_number;
		public weak string address;
		public weak string addrtype;
		public weak string nettype;
		public uint ttl;
	}
	[CCode (cheader_filename = "gst/sdp/gstsdpmessage.h")]
	[Compact]
	public class SDPKey {
		public weak string data;
		public weak string type;
	}
	[CCode (cheader_filename = "gst/sdp/gstsdpmessage.h")]
	[Compact]
	public class SDPMedia {
		public weak GLib.Array<Gst.SDPAttribute> attributes;
		public weak GLib.Array<Gst.SDPBandwidth> bandwidths;
		public weak GLib.Array<Gst.SDPConnection> connections;
		public weak GLib.Array<string> fmts;
		public weak string information;
		public weak Gst.SDPKey key;
		public weak string media;
		public uint num_ports;
		public uint port;
		public weak string proto;
		[CCode (has_construct_function = false, type = "GstSDPResult")]
		public SDPMedia (out unowned Gst.SDPMedia media);
		public Gst.SDPResult add_attribute (string key, string value);
		public Gst.SDPResult add_bandwidth (string bwtype, uint bandwidth);
		public Gst.SDPResult add_connection (string nettype, string addrtype, string address, uint ttl, uint addr_number);
		public Gst.SDPResult add_format (string format);
		public unowned string as_text ();
		public uint attributes_len ();
		public uint bandwidths_len ();
		public uint connections_len ();
		public uint formats_len ();
		public unowned Gst.SDPAttribute get_attribute (uint idx);
		public unowned string get_attribute_val (string key);
		public unowned string get_attribute_val_n (string key, uint nth);
		public unowned Gst.SDPBandwidth get_bandwidth (uint idx);
		public unowned Gst.SDPConnection get_connection (uint idx);
		public unowned string get_format (uint idx);
		public unowned string get_information ();
		public unowned Gst.SDPKey get_key ();
		public unowned string get_media ();
		public uint get_num_ports ();
		public uint get_port ();
		public unowned string get_proto ();
		public Gst.SDPResult init ();
		public Gst.SDPResult set_information (string information);
		public Gst.SDPResult set_key (string type, string data);
		public Gst.SDPResult set_media (string med);
		public Gst.SDPResult set_port_info (uint port, uint num_ports);
		public Gst.SDPResult set_proto (string proto);
		public Gst.SDPResult uninit ();
	}
	[CCode (cheader_filename = "gst/sdp/gstsdpmessage.h")]
	[Compact]
	public class SDPMessage {
		public weak GLib.Array<Gst.SDPAttribute> attributes;
		public weak GLib.Array<Gst.SDPBandwidth> bandwidths;
		public weak Gst.SDPConnection connection;
		public weak GLib.Array<string> emails;
		public weak string information;
		public weak Gst.SDPKey key;
		public weak GLib.Array<Gst.SDPMedia> medias;
		public weak Gst.SDPOrigin origin;
		public weak GLib.Array<string> phones;
		public weak string session_name;
		public weak GLib.Array<Gst.SDPTime> times;
		public weak string uri;
		public weak string version;
		public weak GLib.Array<Gst.SDPZone> zones;
		[CCode (has_construct_function = false, type = "GstSDPResult")]
		public SDPMessage (out unowned Gst.SDPMessage msg);
		public Gst.SDPResult add_attribute (string key, string value);
		public Gst.SDPResult add_bandwidth (string bwtype, uint bandwidth);
		public Gst.SDPResult add_email (string email);
		public Gst.SDPResult add_media (Gst.SDPMedia media);
		public Gst.SDPResult add_phone (string phone);
		public Gst.SDPResult add_time (string start, string stop, string repeat);
		public Gst.SDPResult add_zone (string adj_time, string typed_time);
		public unowned string as_text ();
		public static unowned string as_uri (string scheme, Gst.SDPMessage msg);
		public uint attributes_len ();
		public uint bandwidths_len ();
		public Gst.SDPResult dump ();
		public uint emails_len ();
		public unowned Gst.SDPAttribute get_attribute (uint idx);
		public unowned string get_attribute_val (string key);
		public unowned string get_attribute_val_n (string key, uint nth);
		public unowned Gst.SDPBandwidth get_bandwidth (uint idx);
		public unowned Gst.SDPConnection get_connection ();
		public unowned string get_email (uint idx);
		public unowned string get_information ();
		public unowned Gst.SDPKey get_key ();
		public unowned Gst.SDPMedia get_media (uint idx);
		public unowned Gst.SDPOrigin get_origin ();
		public unowned string get_phone (uint idx);
		public unowned string get_session_name ();
		public unowned Gst.SDPTime get_time (uint idx);
		public unowned string get_uri ();
		public unowned string get_version ();
		public unowned Gst.SDPZone get_zone (uint idx);
		public Gst.SDPResult init ();
		public uint medias_len ();
		public static Gst.SDPResult parse_buffer (uchar data, uint size, Gst.SDPMessage msg);
		public static Gst.SDPResult parse_uri (string uri, Gst.SDPMessage msg);
		public uint phones_len ();
		public Gst.SDPResult set_connection (string nettype, string addrtype, string address, uint ttl, uint addr_number);
		public Gst.SDPResult set_information (string information);
		public Gst.SDPResult set_key (string type, string data);
		public Gst.SDPResult set_origin (string username, string sess_id, string sess_version, string nettype, string addrtype, string addr);
		public Gst.SDPResult set_session_name (string session_name);
		public Gst.SDPResult set_uri (string uri);
		public Gst.SDPResult set_version (string version);
		public uint times_len ();
		public Gst.SDPResult uninit ();
		public uint zones_len ();
	}
	[CCode (cheader_filename = "gst/sdp/gstsdpmessage.h")]
	[Compact]
	public class SDPOrigin {
		public weak string addr;
		public weak string addrtype;
		public weak string nettype;
		public weak string sess_id;
		public weak string sess_version;
		public weak string username;
	}
	[CCode (cheader_filename = "gst/sdp/gstsdpmessage.h")]
	[Compact]
	public class SDPTime {
		public weak GLib.Array<Gst.SDPTime> repeat;
		public weak string start;
		public weak string stop;
	}
	[CCode (cheader_filename = "gst/sdp/gstsdpmessage.h")]
	[Compact]
	public class SDPZone {
		public weak string time;
		public weak string typed_time;
	}
	[CCode (cheader_filename = "gst/sdp/gstsdp.h", cprefix = "GST_SDP_", has_type_id = false)]
	public enum SDPResult {
		OK,
		EINVAL
	}
	[CCode (cheader_filename = "gst/sdp/gstsdpmessage.h")]
	public const string SDP_BWTYPE_AS;
	[CCode (cheader_filename = "gst/sdp/gstsdpmessage.h")]
	public const string SDP_BWTYPE_CT;
	[CCode (cheader_filename = "gst/sdp/gstsdpmessage.h")]
	public const string SDP_BWTYPE_EXT_PREFIX;
	[CCode (cheader_filename = "gst/sdp/gstsdpmessage.h")]
	public const string SDP_BWTYPE_RR;
	[CCode (cheader_filename = "gst/sdp/gstsdpmessage.h")]
	public const string SDP_BWTYPE_RS;
	[CCode (cheader_filename = "gst/sdp/gstsdpmessage.h")]
	public const string SDP_BWTYPE_TIAS;
	[CCode (cheader_filename = "gst/sdp/gstsdpmessage.h")]
	public static bool sdp_address_is_multicast (string nettype, string addrtype, string addr);
}