blob: 02e2f415eef9fe415fa68d91fe038b95d6ff5669 [file] [log] [blame]
Harald Welte00a067f2017-09-13 23:27:17 +02001module SDP_Types {
2
3 type char SdpTag;
4 type record SdpLine {
5 SdpTag tag,
6 charstring val
7 } with {
8 variant "BEGIN('')"
9 variant "SEPARATOR('=')"
10 variant "END('\r\n')"
11 };
12
13 type record of SdpLine SdpLineList with {
14 variant "BEGIN('')"
15 };
16
17 type record Sdp {
18 SdpLineList lines
19 } with {
20 variant "BEGIN('')"
21 };
22
23 external function enc_Sdp(in Sdp id) return charstring
24 with { extension "prototype(convert) encode(TEXT)" };
25 external function dec_Sdp(in charstring id) return Sdp
26 with { extension "prototype(convert) decode(TEXT)" };
27
28} with { encode "TEXT" }