-
Notifications
You must be signed in to change notification settings - Fork 0
/
GstSdp-1.0.gir
4125 lines (4096 loc) · 199 KB
/
GstSdp-1.0.gir
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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0"?>
<!-- This file was automatically generated from C sources - DO NOT EDIT!
To affect the contents of this file, edit the original C definitions,
and/or use gtk-doc annotations. -->
<repository xmlns="http://www.gtk.org/introspection/core/1.0" xmlns:c="http://www.gtk.org/introspection/c/1.0" xmlns:glib="http://www.gtk.org/introspection/glib/1.0" version="1.2">
<include name="Gst" version="1.0"/>
<package name="gstreamer-sdp-1.0"/>
<c:include name="gst/sdp/sdp.h"/>
<namespace name="GstSdp" version="1.0" shared-library="libgstsdp-1.0.so.0" c:identifier-prefixes="Gst" c:symbol-prefixes="gst">
<enumeration name="MIKEYCacheType" c:type="GstMIKEYCacheType">
<doc xml:space="preserve">The different cache types</doc>
<member name="none" value="0" c:identifier="GST_MIKEY_CACHE_NONE">
<doc xml:space="preserve">The envelope key MUST NOT be cached</doc>
</member>
<member name="always" value="1" c:identifier="GST_MIKEY_CACHE_ALWAYS">
<doc xml:space="preserve">The envelope key MUST be cached</doc>
</member>
<member name="for_csb" value="2" c:identifier="GST_MIKEY_CACHE_FOR_CSB">
<doc xml:space="preserve">The envelope key MUST be cached, but only
to be used for the specific CSB.</doc>
</member>
</enumeration>
<record name="MIKEYDecryptInfo" c:type="GstMIKEYDecryptInfo" disguised="1" opaque="1"/>
<enumeration name="MIKEYEncAlg" c:type="GstMIKEYEncAlg">
<doc xml:space="preserve">The encryption algorithm used to encrypt the Encr data field</doc>
<member name="null" value="0" c:identifier="GST_MIKEY_ENC_NULL">
<doc xml:space="preserve">no encryption</doc>
</member>
<member name="aes_cm_128" value="1" c:identifier="GST_MIKEY_ENC_AES_CM_128">
<doc xml:space="preserve">AES-CM using a 128-bit key</doc>
</member>
<member name="aes_kw_128" value="2" c:identifier="GST_MIKEY_ENC_AES_KW_128">
<doc xml:space="preserve">AES Key Wrap using a 128-bit key</doc>
</member>
<member name="aes_gcm_128" value="6" c:identifier="GST_MIKEY_ENC_AES_GCM_128">
<doc xml:space="preserve">AES-GCM using a 128-bit key (Since: 1.16)</doc>
</member>
</enumeration>
<record name="MIKEYEncryptInfo" c:type="GstMIKEYEncryptInfo" disguised="1" opaque="1"/>
<enumeration name="MIKEYKVType" c:type="GstMIKEYKVType">
<doc xml:space="preserve">The key validity type</doc>
<member name="null" value="0" c:identifier="GST_MIKEY_KV_NULL">
<doc xml:space="preserve">No specific usage rule</doc>
</member>
<member name="spi" value="1" c:identifier="GST_MIKEY_KV_SPI">
<doc xml:space="preserve">The key is associated with the SPI/MKI</doc>
</member>
<member name="interval" value="2" c:identifier="GST_MIKEY_KV_INTERVAL">
<doc xml:space="preserve">The key has a start and expiration time</doc>
</member>
</enumeration>
<enumeration name="MIKEYKeyDataType" c:type="GstMIKEYKeyDataType">
<doc xml:space="preserve">The type of key.</doc>
<member name="tgk" value="0" c:identifier="GST_MIKEY_KD_TGK">
<doc xml:space="preserve">a TEK Generation Key</doc>
</member>
<member name="tek" value="2" c:identifier="GST_MIKEY_KD_TEK">
<doc xml:space="preserve">Traffic-Encrypting Key</doc>
</member>
</enumeration>
<enumeration name="MIKEYMacAlg" c:type="GstMIKEYMacAlg">
<doc xml:space="preserve">Specifies the authentication algorithm used</doc>
<member name="null" value="0" c:identifier="GST_MIKEY_MAC_NULL">
<doc xml:space="preserve">no authentication</doc>
</member>
<member name="hmac_sha_1_160" value="1" c:identifier="GST_MIKEY_MAC_HMAC_SHA_1_160">
<doc xml:space="preserve">HMAC-SHA-1-160</doc>
</member>
</enumeration>
<record name="MIKEYMapSRTP" c:type="GstMIKEYMapSRTP">
<doc xml:space="preserve">The Security policy Map item for SRTP</doc>
<field name="policy" writable="1">
<doc xml:space="preserve">The security policy applied for the stream with @ssrc</doc>
<type name="guint8" c:type="guint8"/>
</field>
<field name="ssrc" writable="1">
<doc xml:space="preserve">the SSRC that must be used for the stream</doc>
<type name="guint32" c:type="guint32"/>
</field>
<field name="roc" writable="1">
<doc xml:space="preserve">current rollover counter</doc>
<type name="guint32" c:type="guint32"/>
</field>
</record>
<enumeration name="MIKEYMapType" c:type="GstMIKEYMapType">
<doc xml:space="preserve">Specifies the method of uniquely mapping Crypto Sessions to the security
protocol sessions.</doc>
<member name="mikey_map_type_srtp" value="0" c:identifier="GST_MIKEY_MAP_TYPE_SRTP">
<doc xml:space="preserve">SRTP</doc>
</member>
</enumeration>
<record name="MIKEYMessage" c:type="GstMIKEYMessage" glib:type-name="GstMIKEYMessage" glib:get-type="gst_mikey_message_get_type" c:symbol-prefix="mikey_message">
<doc xml:space="preserve">Structure holding the information of the MIKEY message</doc>
<field name="mini_object" readable="0" private="1">
<type name="Gst.MiniObject" c:type="GstMiniObject"/>
</field>
<field name="version" writable="1">
<doc xml:space="preserve">the version</doc>
<type name="guint8" c:type="guint8"/>
</field>
<field name="type" writable="1">
<doc xml:space="preserve">the #GstMIKEYType message type</doc>
<type name="MIKEYType" c:type="GstMIKEYType"/>
</field>
<field name="V" writable="1">
<doc xml:space="preserve">verify flag</doc>
<type name="gboolean" c:type="gboolean"/>
</field>
<field name="prf_func" writable="1">
<doc xml:space="preserve">a #GstMIKEYPRFFunc</doc>
<type name="MIKEYPRFFunc" c:type="GstMIKEYPRFFunc"/>
</field>
<field name="CSB_id" writable="1">
<doc xml:space="preserve">Identifies the Crypto Session Bundle</doc>
<type name="guint32" c:type="guint32"/>
</field>
<field name="map_type" writable="1">
<doc xml:space="preserve">a #GstMIKEYMapType</doc>
<type name="MIKEYMapType" c:type="GstMIKEYMapType"/>
</field>
<field name="map_info" writable="1">
<doc xml:space="preserve">map info array of type depending on @map_type</doc>
<array name="GLib.Array" c:type="GArray*">
<type name="gpointer" c:type="gpointer"/>
</array>
</field>
<field name="payloads" writable="1">
<doc xml:space="preserve">the payload array of #GstMIKEYPayload</doc>
<array name="GLib.Array" c:type="GArray*">
<type name="gpointer" c:type="gpointer"/>
</array>
</field>
<constructor name="new" c:identifier="gst_mikey_message_new" version="1.4">
<doc xml:space="preserve">Make a new MIKEY message.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a new #GstMIKEYMessage on success</doc>
<type name="MIKEYMessage" c:type="GstMIKEYMessage*"/>
</return-value>
</constructor>
<constructor name="new_from_bytes" c:identifier="gst_mikey_message_new_from_bytes" version="1.4" throws="1">
<doc xml:space="preserve">Make a new #GstMIKEYMessage from @bytes.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a new #GstMIKEYMessage</doc>
<type name="MIKEYMessage" c:type="GstMIKEYMessage*"/>
</return-value>
<parameters>
<parameter name="bytes" transfer-ownership="none">
<doc xml:space="preserve">a #GBytes</doc>
<type name="GLib.Bytes" c:type="GBytes*"/>
</parameter>
<parameter name="info" transfer-ownership="none">
<doc xml:space="preserve">a #GstMIKEYDecryptInfo</doc>
<type name="MIKEYDecryptInfo" c:type="GstMIKEYDecryptInfo*"/>
</parameter>
</parameters>
</constructor>
<constructor name="new_from_caps" c:identifier="gst_mikey_message_new_from_caps" version="1.8">
<doc xml:space="preserve">Makes mikey message including:
- Security Policy Payload
- Key Data Transport Payload
- Key Data Sub-Payload</doc>
<return-value transfer-ownership="full" nullable="1">
<doc xml:space="preserve">a #GstMIKEYMessage,
or %NULL if there is no srtp information in the caps.</doc>
<type name="MIKEYMessage" c:type="GstMIKEYMessage*"/>
</return-value>
<parameters>
<parameter name="caps" transfer-ownership="none">
<doc xml:space="preserve">a #GstCaps, including SRTP parameters (srtp/srtcp cipher, authorization, key data)</doc>
<type name="Gst.Caps" c:type="GstCaps*"/>
</parameter>
</parameters>
</constructor>
<constructor name="new_from_data" c:identifier="gst_mikey_message_new_from_data" version="1.4" throws="1">
<doc xml:space="preserve">Parse @size bytes from @data into a #GstMIKEYMessage. @info contains the
parameters to decrypt and verify the data.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a #GstMIKEYMessage on success or %NULL when parsing failed and
@error will be set.</doc>
<type name="MIKEYMessage" c:type="GstMIKEYMessage*"/>
</return-value>
<parameters>
<parameter name="data" transfer-ownership="none">
<doc xml:space="preserve">bytes to read</doc>
<array length="1" zero-terminated="0" c:type="gconstpointer">
<type name="guint8"/>
</array>
</parameter>
<parameter name="size" transfer-ownership="none">
<doc xml:space="preserve">length of @data</doc>
<type name="gsize" c:type="gsize"/>
</parameter>
<parameter name="info" transfer-ownership="none">
<doc xml:space="preserve">#GstMIKEYDecryptInfo</doc>
<type name="MIKEYDecryptInfo" c:type="GstMIKEYDecryptInfo*"/>
</parameter>
</parameters>
</constructor>
<method name="add_cs_srtp" c:identifier="gst_mikey_message_add_cs_srtp" version="1.4">
<doc xml:space="preserve">Add a Crypto policy for SRTP to @msg.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE on success</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="msg" transfer-ownership="none">
<doc xml:space="preserve">a #GstMIKEYMessage</doc>
<type name="MIKEYMessage" c:type="GstMIKEYMessage*"/>
</instance-parameter>
<parameter name="policy" transfer-ownership="none">
<doc xml:space="preserve">The security policy applied for the stream with @ssrc</doc>
<type name="guint8" c:type="guint8"/>
</parameter>
<parameter name="ssrc" transfer-ownership="none">
<doc xml:space="preserve">the SSRC that must be used for the stream</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
<parameter name="roc" transfer-ownership="none">
<doc xml:space="preserve">current rollover counter</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
</parameters>
</method>
<method name="add_payload" c:identifier="gst_mikey_message_add_payload" version="1.4">
<doc xml:space="preserve">Add a new payload to @msg.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE on success</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="msg" transfer-ownership="none">
<doc xml:space="preserve">a #GstMIKEYMessage</doc>
<type name="MIKEYMessage" c:type="GstMIKEYMessage*"/>
</instance-parameter>
<parameter name="payload" transfer-ownership="full">
<doc xml:space="preserve">a #GstMIKEYPayload</doc>
<type name="MIKEYPayload" c:type="GstMIKEYPayload*"/>
</parameter>
</parameters>
</method>
<method name="add_pke" c:identifier="gst_mikey_message_add_pke" version="1.4">
<doc xml:space="preserve">Add a new PKE payload to @msg with the given parameters.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE on success</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="msg" transfer-ownership="none">
<doc xml:space="preserve">a #GstMIKEYMessage</doc>
<type name="MIKEYMessage" c:type="GstMIKEYMessage*"/>
</instance-parameter>
<parameter name="C" transfer-ownership="none">
<doc xml:space="preserve">envelope key cache indicator</doc>
<type name="MIKEYCacheType" c:type="GstMIKEYCacheType"/>
</parameter>
<parameter name="data_len" transfer-ownership="none">
<doc xml:space="preserve">the length of @data</doc>
<type name="guint16" c:type="guint16"/>
</parameter>
<parameter name="data" transfer-ownership="none">
<doc xml:space="preserve">the encrypted envelope key</doc>
<array length="1" zero-terminated="0" c:type="const guint8*">
<type name="guint8" c:type="guint8"/>
</array>
</parameter>
</parameters>
</method>
<method name="add_rand" c:identifier="gst_mikey_message_add_rand" version="1.4">
<doc xml:space="preserve">Add a new RAND payload to @msg with the given parameters.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE on success</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="msg" transfer-ownership="none">
<doc xml:space="preserve">a #GstMIKEYMessage</doc>
<type name="MIKEYMessage" c:type="GstMIKEYMessage*"/>
</instance-parameter>
<parameter name="len" transfer-ownership="none">
<doc xml:space="preserve">the length of @rand</doc>
<type name="guint8" c:type="guint8"/>
</parameter>
<parameter name="rand" transfer-ownership="none">
<doc xml:space="preserve">random data</doc>
<array length="0" zero-terminated="0" c:type="const guint8*">
<type name="guint8" c:type="guint8"/>
</array>
</parameter>
</parameters>
</method>
<method name="add_rand_len" c:identifier="gst_mikey_message_add_rand_len" version="1.4">
<doc xml:space="preserve">Add a new RAND payload to @msg with @len random bytes.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE on success</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="msg" transfer-ownership="none">
<doc xml:space="preserve">a #GstMIKEYMessage</doc>
<type name="MIKEYMessage" c:type="GstMIKEYMessage*"/>
</instance-parameter>
<parameter name="len" transfer-ownership="none">
<doc xml:space="preserve">length</doc>
<type name="guint8" c:type="guint8"/>
</parameter>
</parameters>
</method>
<method name="add_t" c:identifier="gst_mikey_message_add_t" version="1.4">
<doc xml:space="preserve">Add a new T payload to @msg with the given parameters.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE on success</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="msg" transfer-ownership="none">
<doc xml:space="preserve">a #GstMIKEYMessage</doc>
<type name="MIKEYMessage" c:type="GstMIKEYMessage*"/>
</instance-parameter>
<parameter name="type" transfer-ownership="none">
<doc xml:space="preserve">specifies the timestamp type used</doc>
<type name="MIKEYTSType" c:type="GstMIKEYTSType"/>
</parameter>
<parameter name="ts_value" transfer-ownership="none">
<doc xml:space="preserve">The timestamp value of the specified @type</doc>
<array zero-terminated="0" c:type="const guint8*">
<type name="guint8" c:type="guint8"/>
</array>
</parameter>
</parameters>
</method>
<method name="add_t_now_ntp_utc" c:identifier="gst_mikey_message_add_t_now_ntp_utc" version="1.4">
<doc xml:space="preserve">Add a new T payload to @msg that contains the current time
in NTP-UTC format.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE on success</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="msg" transfer-ownership="none">
<doc xml:space="preserve">a #GstMIKEYMessage</doc>
<type name="MIKEYMessage" c:type="GstMIKEYMessage*"/>
</instance-parameter>
</parameters>
</method>
<method name="base64_encode" c:identifier="gst_mikey_message_base64_encode" version="1.8">
<return-value transfer-ownership="full">
<doc xml:space="preserve">a #gchar, base64-encoded data</doc>
<type name="utf8" c:type="gchar*"/>
</return-value>
<parameters>
<instance-parameter name="msg" transfer-ownership="none">
<doc xml:space="preserve">a #GstMIKEYMessage</doc>
<type name="MIKEYMessage" c:type="GstMIKEYMessage*"/>
</instance-parameter>
</parameters>
</method>
<method name="find_payload" c:identifier="gst_mikey_message_find_payload" version="1.4">
<doc xml:space="preserve">Find the @nth occurrence of the payload with @type in @msg.</doc>
<return-value transfer-ownership="none" nullable="1">
<doc xml:space="preserve">the @nth #GstMIKEYPayload of @type.</doc>
<type name="MIKEYPayload" c:type="const GstMIKEYPayload*"/>
</return-value>
<parameters>
<instance-parameter name="msg" transfer-ownership="none">
<doc xml:space="preserve">a #GstMIKEYMessage</doc>
<type name="MIKEYMessage" c:type="const GstMIKEYMessage*"/>
</instance-parameter>
<parameter name="type" transfer-ownership="none">
<doc xml:space="preserve">a #GstMIKEYPayloadType</doc>
<type name="MIKEYPayloadType" c:type="GstMIKEYPayloadType"/>
</parameter>
<parameter name="nth" transfer-ownership="none">
<doc xml:space="preserve">payload to find</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</method>
<method name="get_cs_srtp" c:identifier="gst_mikey_message_get_cs_srtp" version="1.4">
<doc xml:space="preserve">Get the policy information of @msg at @idx.</doc>
<return-value transfer-ownership="none" nullable="1">
<doc xml:space="preserve">a #GstMIKEYMapSRTP</doc>
<type name="MIKEYMapSRTP" c:type="const GstMIKEYMapSRTP*"/>
</return-value>
<parameters>
<instance-parameter name="msg" transfer-ownership="none">
<doc xml:space="preserve">a #GstMIKEYMessage</doc>
<type name="MIKEYMessage" c:type="const GstMIKEYMessage*"/>
</instance-parameter>
<parameter name="idx" transfer-ownership="none">
<doc xml:space="preserve">an index</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</method>
<method name="get_n_cs" c:identifier="gst_mikey_message_get_n_cs" version="1.4">
<doc xml:space="preserve">Get the number of crypto sessions in @msg.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the number of crypto sessions</doc>
<type name="guint" c:type="guint"/>
</return-value>
<parameters>
<instance-parameter name="msg" transfer-ownership="none">
<doc xml:space="preserve">a #GstMIKEYMessage</doc>
<type name="MIKEYMessage" c:type="const GstMIKEYMessage*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_n_payloads" c:identifier="gst_mikey_message_get_n_payloads" version="1.4">
<doc xml:space="preserve">Get the number of payloads in @msg.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the number of payloads in @msg</doc>
<type name="guint" c:type="guint"/>
</return-value>
<parameters>
<instance-parameter name="msg" transfer-ownership="none">
<doc xml:space="preserve">a #GstMIKEYMessage</doc>
<type name="MIKEYMessage" c:type="const GstMIKEYMessage*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_payload" c:identifier="gst_mikey_message_get_payload" version="1.4">
<doc xml:space="preserve">Get the #GstMIKEYPayload at @idx in @msg</doc>
<return-value transfer-ownership="none" nullable="1">
<doc xml:space="preserve">the #GstMIKEYPayload at @idx. The payload
remains valid for as long as it is part of @msg.</doc>
<type name="MIKEYPayload" c:type="const GstMIKEYPayload*"/>
</return-value>
<parameters>
<instance-parameter name="msg" transfer-ownership="none">
<doc xml:space="preserve">a #GstMIKEYMessage</doc>
<type name="MIKEYMessage" c:type="const GstMIKEYMessage*"/>
</instance-parameter>
<parameter name="idx" transfer-ownership="none">
<doc xml:space="preserve">an index</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</method>
<method name="insert_cs_srtp" c:identifier="gst_mikey_message_insert_cs_srtp" version="1.4">
<doc xml:space="preserve">Insert a Crypto Session map for SRTP in @msg at @idx
When @idx is -1, the policy will be appended.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE on success</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="msg" transfer-ownership="none">
<doc xml:space="preserve">a #GstMIKEYMessage</doc>
<type name="MIKEYMessage" c:type="GstMIKEYMessage*"/>
</instance-parameter>
<parameter name="idx" transfer-ownership="none">
<doc xml:space="preserve">the index to insert at</doc>
<type name="gint" c:type="gint"/>
</parameter>
<parameter name="map" transfer-ownership="none">
<doc xml:space="preserve">the map info</doc>
<type name="MIKEYMapSRTP" c:type="const GstMIKEYMapSRTP*"/>
</parameter>
</parameters>
</method>
<method name="insert_payload" c:identifier="gst_mikey_message_insert_payload" version="1.4">
<doc xml:space="preserve">Insert the @payload at index @idx in @msg. If @idx is -1, the payload
will be appended to @msg.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE on success</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="msg" transfer-ownership="none">
<doc xml:space="preserve">a #GstMIKEYMessage</doc>
<type name="MIKEYMessage" c:type="GstMIKEYMessage*"/>
</instance-parameter>
<parameter name="idx" transfer-ownership="none">
<doc xml:space="preserve">an index</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="payload" transfer-ownership="full">
<doc xml:space="preserve">a #GstMIKEYPayload</doc>
<type name="MIKEYPayload" c:type="GstMIKEYPayload*"/>
</parameter>
</parameters>
</method>
<method name="remove_cs_srtp" c:identifier="gst_mikey_message_remove_cs_srtp" version="1.4">
<doc xml:space="preserve">Remove the SRTP policy at @idx.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE on success</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="msg" transfer-ownership="none">
<doc xml:space="preserve">a #GstMIKEYMessage</doc>
<type name="MIKEYMessage" c:type="GstMIKEYMessage*"/>
</instance-parameter>
<parameter name="idx" transfer-ownership="none">
<doc xml:space="preserve">the index to remove</doc>
<type name="gint" c:type="gint"/>
</parameter>
</parameters>
</method>
<method name="remove_payload" c:identifier="gst_mikey_message_remove_payload" version="1.4">
<doc xml:space="preserve">Remove the payload in @msg at @idx</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE on success</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="msg" transfer-ownership="none">
<doc xml:space="preserve">a #GstMIKEYMessage</doc>
<type name="MIKEYMessage" c:type="GstMIKEYMessage*"/>
</instance-parameter>
<parameter name="idx" transfer-ownership="none">
<doc xml:space="preserve">an index</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</method>
<method name="replace_cs_srtp" c:identifier="gst_mikey_message_replace_cs_srtp" version="1.4">
<doc xml:space="preserve">Replace a Crypto Session map for SRTP in @msg at @idx with @map.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE on success</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="msg" transfer-ownership="none">
<doc xml:space="preserve">a #GstMIKEYMessage</doc>
<type name="MIKEYMessage" c:type="GstMIKEYMessage*"/>
</instance-parameter>
<parameter name="idx" transfer-ownership="none">
<doc xml:space="preserve">the index to insert at</doc>
<type name="gint" c:type="gint"/>
</parameter>
<parameter name="map" transfer-ownership="none">
<doc xml:space="preserve">the map info</doc>
<type name="MIKEYMapSRTP" c:type="const GstMIKEYMapSRTP*"/>
</parameter>
</parameters>
</method>
<method name="replace_payload" c:identifier="gst_mikey_message_replace_payload" version="1.4">
<doc xml:space="preserve">Replace the payload at @idx in @msg with @payload.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE on success</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="msg" transfer-ownership="none">
<doc xml:space="preserve">a #GstMIKEYMessage</doc>
<type name="MIKEYMessage" c:type="GstMIKEYMessage*"/>
</instance-parameter>
<parameter name="idx" transfer-ownership="none">
<doc xml:space="preserve">an index</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="payload" transfer-ownership="full">
<doc xml:space="preserve">a #GstMIKEYPayload</doc>
<type name="MIKEYPayload" c:type="GstMIKEYPayload*"/>
</parameter>
</parameters>
</method>
<method name="set_info" c:identifier="gst_mikey_message_set_info" version="1.4">
<doc xml:space="preserve">Set the information in @msg.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE on success</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="msg" transfer-ownership="none">
<doc xml:space="preserve">a #GstMIKEYMessage</doc>
<type name="MIKEYMessage" c:type="GstMIKEYMessage*"/>
</instance-parameter>
<parameter name="version" transfer-ownership="none">
<doc xml:space="preserve">a version</doc>
<type name="guint8" c:type="guint8"/>
</parameter>
<parameter name="type" transfer-ownership="none">
<doc xml:space="preserve">a #GstMIKEYType</doc>
<type name="MIKEYType" c:type="GstMIKEYType"/>
</parameter>
<parameter name="V" transfer-ownership="none">
<doc xml:space="preserve">verify flag</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
<parameter name="prf_func" transfer-ownership="none">
<doc xml:space="preserve">the #GstMIKEYPRFFunc function to use</doc>
<type name="MIKEYPRFFunc" c:type="GstMIKEYPRFFunc"/>
</parameter>
<parameter name="CSB_id" transfer-ownership="none">
<doc xml:space="preserve">the Crypto Session Bundle id</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
<parameter name="map_type" transfer-ownership="none">
<doc xml:space="preserve">the #GstMIKEYMapType</doc>
<type name="MIKEYMapType" c:type="GstMIKEYMapType"/>
</parameter>
</parameters>
</method>
<method name="to_bytes" c:identifier="gst_mikey_message_to_bytes" version="1.4" throws="1">
<doc xml:space="preserve">Convert @msg to a #GBytes.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a new #GBytes for @msg.</doc>
<type name="GLib.Bytes" c:type="GBytes*"/>
</return-value>
<parameters>
<instance-parameter name="msg" transfer-ownership="none">
<doc xml:space="preserve">a #GstMIKEYMessage</doc>
<type name="MIKEYMessage" c:type="GstMIKEYMessage*"/>
</instance-parameter>
<parameter name="info" transfer-ownership="none">
<doc xml:space="preserve">a #GstMIKEYEncryptInfo</doc>
<type name="MIKEYEncryptInfo" c:type="GstMIKEYEncryptInfo*"/>
</parameter>
</parameters>
</method>
<method name="to_caps" c:identifier="gst_mikey_message_to_caps" version="1.8.1">
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE on success</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="msg" transfer-ownership="none">
<doc xml:space="preserve">a #GstMIKEYMessage</doc>
<type name="MIKEYMessage" c:type="const GstMIKEYMessage*"/>
</instance-parameter>
<parameter name="caps" transfer-ownership="none">
<doc xml:space="preserve">a #GstCaps to be filled with SRTP parameters (srtp/srtcp cipher, authorization, key data)</doc>
<type name="Gst.Caps" c:type="GstCaps*"/>
</parameter>
</parameters>
</method>
</record>
<enumeration name="MIKEYPRFFunc" c:type="GstMIKEYPRFFunc">
<doc xml:space="preserve">The PRF function that has been/will be used for key derivation</doc>
<member name="mikey_prf_mikey_1" value="0" c:identifier="GST_MIKEY_PRF_MIKEY_1">
<doc xml:space="preserve">MIKEY-1 PRF function</doc>
</member>
</enumeration>
<record name="MIKEYPayload" c:type="GstMIKEYPayload" glib:type-name="GstMIKEYPayload" glib:get-type="gst_mikey_payload_get_type" c:symbol-prefix="mikey_payload">
<doc xml:space="preserve">Hold the common fields for all payloads</doc>
<field name="mini_object" readable="0" private="1">
<type name="Gst.MiniObject" c:type="GstMiniObject"/>
</field>
<field name="type" writable="1">
<doc xml:space="preserve">the payload type</doc>
<type name="MIKEYPayloadType" c:type="GstMIKEYPayloadType"/>
</field>
<field name="len" writable="1">
<doc xml:space="preserve">length of the payload</doc>
<type name="guint" c:type="guint"/>
</field>
<constructor name="new" c:identifier="gst_mikey_payload_new" version="1.4">
<doc xml:space="preserve">Make a new #GstMIKEYPayload with @type.</doc>
<return-value transfer-ownership="full" nullable="1">
<doc xml:space="preserve">a new #GstMIKEYPayload or %NULL on failure.</doc>
<type name="MIKEYPayload" c:type="GstMIKEYPayload*"/>
</return-value>
<parameters>
<parameter name="type" transfer-ownership="none">
<doc xml:space="preserve">a #GstMIKEYPayloadType</doc>
<type name="MIKEYPayloadType" c:type="GstMIKEYPayloadType"/>
</parameter>
</parameters>
</constructor>
<method name="kemac_add_sub" c:identifier="gst_mikey_payload_kemac_add_sub" version="1.4">
<doc xml:space="preserve">Add a new sub payload to @payload.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE on success.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="payload" transfer-ownership="none">
<doc xml:space="preserve">a #GstMIKEYPayload</doc>
<type name="MIKEYPayload" c:type="GstMIKEYPayload*"/>
</instance-parameter>
<parameter name="newpay" transfer-ownership="full">
<doc xml:space="preserve">a #GstMIKEYPayload to add</doc>
<type name="MIKEYPayload" c:type="GstMIKEYPayload*"/>
</parameter>
</parameters>
</method>
<method name="kemac_get_n_sub" c:identifier="gst_mikey_payload_kemac_get_n_sub" version="1.4">
<doc xml:space="preserve">Get the number of sub payloads of @payload. @payload should be of type
%GST_MIKEY_PT_KEMAC.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the number of sub payloads in @payload</doc>
<type name="guint" c:type="guint"/>
</return-value>
<parameters>
<instance-parameter name="payload" transfer-ownership="none">
<doc xml:space="preserve">a #GstMIKEYPayload</doc>
<type name="MIKEYPayload" c:type="const GstMIKEYPayload*"/>
</instance-parameter>
</parameters>
</method>
<method name="kemac_get_sub" c:identifier="gst_mikey_payload_kemac_get_sub" version="1.4">
<doc xml:space="preserve">Get the sub payload of @payload at @idx. @payload should be of type
%GST_MIKEY_PT_KEMAC.</doc>
<return-value transfer-ownership="none" nullable="1">
<doc xml:space="preserve">the #GstMIKEYPayload at @idx.</doc>
<type name="MIKEYPayload" c:type="const GstMIKEYPayload*"/>
</return-value>
<parameters>
<instance-parameter name="payload" transfer-ownership="none">
<doc xml:space="preserve">a #GstMIKEYPayload</doc>
<type name="MIKEYPayload" c:type="const GstMIKEYPayload*"/>
</instance-parameter>
<parameter name="idx" transfer-ownership="none">
<doc xml:space="preserve">an index</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</method>
<method name="kemac_remove_sub" c:identifier="gst_mikey_payload_kemac_remove_sub" version="1.4">
<doc xml:space="preserve">Remove the sub payload at @idx in @payload.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE on success.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="payload" transfer-ownership="none">
<doc xml:space="preserve">a #GstMIKEYPayload</doc>
<type name="MIKEYPayload" c:type="GstMIKEYPayload*"/>
</instance-parameter>
<parameter name="idx" transfer-ownership="none">
<doc xml:space="preserve">the index to remove</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</method>
<method name="kemac_set" c:identifier="gst_mikey_payload_kemac_set" version="1.4">
<doc xml:space="preserve">Set the KEMAC parameters. @payload should point to a %GST_MIKEY_PT_KEMAC
payload.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE on success</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="payload" transfer-ownership="none">
<doc xml:space="preserve">a #GstMIKEYPayload</doc>
<type name="MIKEYPayload" c:type="GstMIKEYPayload*"/>
</instance-parameter>
<parameter name="enc_alg" transfer-ownership="none">
<doc xml:space="preserve">the #GstMIKEYEncAlg</doc>
<type name="MIKEYEncAlg" c:type="GstMIKEYEncAlg"/>
</parameter>
<parameter name="mac_alg" transfer-ownership="none">
<doc xml:space="preserve">a #GstMIKEYMacAlg</doc>
<type name="MIKEYMacAlg" c:type="GstMIKEYMacAlg"/>
</parameter>
</parameters>
</method>
<method name="key_data_set_interval" c:identifier="gst_mikey_payload_key_data_set_interval" version="1.4">
<doc xml:space="preserve">Set the key validity period in the %GST_MIKEY_PT_KEY_DATA @payload.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE on success</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="payload" transfer-ownership="none">
<doc xml:space="preserve">a #GstMIKEYPayload</doc>
<type name="MIKEYPayload" c:type="GstMIKEYPayload*"/>
</instance-parameter>
<parameter name="vf_len" transfer-ownership="none">
<doc xml:space="preserve">the length of @vf_data</doc>
<type name="guint8" c:type="guint8"/>
</parameter>
<parameter name="vf_data" transfer-ownership="none">
<doc xml:space="preserve">the Valid From data</doc>
<array length="0" zero-terminated="0" c:type="const guint8*">
<type name="guint8" c:type="guint8"/>
</array>
</parameter>
<parameter name="vt_len" transfer-ownership="none">
<doc xml:space="preserve">the length of @vt_data</doc>
<type name="guint8" c:type="guint8"/>
</parameter>
<parameter name="vt_data" transfer-ownership="none">
<doc xml:space="preserve">the Valid To data</doc>
<array length="2" zero-terminated="0" c:type="const guint8*">
<type name="guint8" c:type="guint8"/>
</array>
</parameter>
</parameters>
</method>
<method name="key_data_set_key" c:identifier="gst_mikey_payload_key_data_set_key" version="1.4">
<doc xml:space="preserve">Set @key_len bytes of @key_data of type @key_type as the key for the
%GST_MIKEY_PT_KEY_DATA @payload.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE on success</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="payload" transfer-ownership="none">
<doc xml:space="preserve">a #GstMIKEYPayload</doc>
<type name="MIKEYPayload" c:type="GstMIKEYPayload*"/>
</instance-parameter>
<parameter name="key_type" transfer-ownership="none">
<doc xml:space="preserve">a #GstMIKEYKeyDataType</doc>
<type name="MIKEYKeyDataType" c:type="GstMIKEYKeyDataType"/>
</parameter>
<parameter name="key_len" transfer-ownership="none">
<doc xml:space="preserve">the length of @key_data</doc>
<type name="guint16" c:type="guint16"/>
</parameter>
<parameter name="key_data" transfer-ownership="none">
<doc xml:space="preserve">the key of type @key_type</doc>
<array length="1" zero-terminated="0" c:type="const guint8*">
<type name="guint8" c:type="guint8"/>
</array>
</parameter>
</parameters>
</method>
<method name="key_data_set_salt" c:identifier="gst_mikey_payload_key_data_set_salt" version="1.4">
<doc xml:space="preserve">Set the salt key data. If @salt_len is 0 and @salt_data is %NULL, the
salt data will be removed.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE on success</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="payload" transfer-ownership="none">
<doc xml:space="preserve">a #GstMIKEYPayload</doc>
<type name="MIKEYPayload" c:type="GstMIKEYPayload*"/>
</instance-parameter>
<parameter name="salt_len" transfer-ownership="none">
<doc xml:space="preserve">the length of @salt_data</doc>
<type name="guint16" c:type="guint16"/>
</parameter>
<parameter name="salt_data" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve">the salt</doc>
<array length="0" zero-terminated="0" c:type="const guint8*">
<type name="guint8" c:type="guint8"/>
</array>
</parameter>
</parameters>
</method>
<method name="key_data_set_spi" c:identifier="gst_mikey_payload_key_data_set_spi" version="1.4">
<doc xml:space="preserve">Set the SPI/MKI validity in the %GST_MIKEY_PT_KEY_DATA @payload.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE on success</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="payload" transfer-ownership="none">
<doc xml:space="preserve">a #GstMIKEYPayload</doc>
<type name="MIKEYPayload" c:type="GstMIKEYPayload*"/>
</instance-parameter>
<parameter name="spi_len" transfer-ownership="none">
<doc xml:space="preserve">the length of @spi_data</doc>
<type name="guint8" c:type="guint8"/>
</parameter>
<parameter name="spi_data" transfer-ownership="none">
<doc xml:space="preserve">the SPI/MKI data</doc>
<array length="0" zero-terminated="0" c:type="const guint8*">
<type name="guint8" c:type="guint8"/>
</array>
</parameter>
</parameters>
</method>
<method name="pke_set" c:identifier="gst_mikey_payload_pke_set" version="1.4">
<doc xml:space="preserve">Set the PKE values in @payload. @payload must be of type
%GST_MIKEY_PT_PKE.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE on success</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="payload" transfer-ownership="none">
<doc xml:space="preserve">a #GstMIKEYPayload</doc>
<type name="MIKEYPayload" c:type="GstMIKEYPayload*"/>
</instance-parameter>
<parameter name="C" transfer-ownership="none">
<doc xml:space="preserve">envelope key cache indicator</doc>
<type name="MIKEYCacheType" c:type="GstMIKEYCacheType"/>
</parameter>
<parameter name="data_len" transfer-ownership="none">
<doc xml:space="preserve">the length of @data</doc>
<type name="guint16" c:type="guint16"/>
</parameter>
<parameter name="data" transfer-ownership="none">
<doc xml:space="preserve">the encrypted envelope key</doc>
<array length="1" zero-terminated="0" c:type="const guint8*">
<type name="guint8" c:type="guint8"/>
</array>
</parameter>
</parameters>
</method>
<method name="rand_set" c:identifier="gst_mikey_payload_rand_set" version="1.4">
<doc xml:space="preserve">Set the random values in a %GST_MIKEY_PT_RAND @payload.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE on success</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="payload" transfer-ownership="none">
<doc xml:space="preserve">a #GstMIKEYPayload</doc>
<type name="MIKEYPayload" c:type="GstMIKEYPayload*"/>
</instance-parameter>
<parameter name="len" transfer-ownership="none">
<doc xml:space="preserve">the length of @rand</doc>
<type name="guint8" c:type="guint8"/>
</parameter>
<parameter name="rand" transfer-ownership="none">
<doc xml:space="preserve">random values</doc>
<array length="0" zero-terminated="0" c:type="const guint8*">
<type name="guint8" c:type="guint8"/>
</array>
</parameter>
</parameters>
</method>
<method name="sp_add_param" c:identifier="gst_mikey_payload_sp_add_param" version="1.4">
<doc xml:space="preserve">Add a new parameter to the %GST_MIKEY_PT_SP @payload with @type, @len
and @val.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE on success</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="payload" transfer-ownership="none">
<doc xml:space="preserve">a #GstMIKEYPayload</doc>
<type name="MIKEYPayload" c:type="GstMIKEYPayload*"/>
</instance-parameter>
<parameter name="type" transfer-ownership="none">
<doc xml:space="preserve">a type</doc>
<type name="guint8" c:type="guint8"/>
</parameter>
<parameter name="len" transfer-ownership="none">
<doc xml:space="preserve">a length</doc>
<type name="guint8" c:type="guint8"/>
</parameter>
<parameter name="val" transfer-ownership="none">
<doc xml:space="preserve">@len bytes of data</doc>
<array length="1" zero-terminated="0" c:type="const guint8*">
<type name="guint8" c:type="guint8"/>
</array>
</parameter>
</parameters>
</method>
<method name="sp_get_n_params" c:identifier="gst_mikey_payload_sp_get_n_params" version="1.4">
<doc xml:space="preserve">Get the number of security policy parameters in a %GST_MIKEY_PT_SP
@payload.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the number of parameters in @payload</doc>
<type name="guint" c:type="guint"/>
</return-value>
<parameters>
<instance-parameter name="payload" transfer-ownership="none">
<doc xml:space="preserve">a #GstMIKEYPayload</doc>
<type name="MIKEYPayload" c:type="const GstMIKEYPayload*"/>
</instance-parameter>
</parameters>
</method>
<method name="sp_get_param" c:identifier="gst_mikey_payload_sp_get_param" version="1.4">
<doc xml:space="preserve">Get the Security Policy parameter in a %GST_MIKEY_PT_SP @payload
at @idx.</doc>
<return-value transfer-ownership="none" nullable="1">
<doc xml:space="preserve">the #GstMIKEYPayloadSPParam at @idx in @payload</doc>
<type name="MIKEYPayloadSPParam" c:type="const GstMIKEYPayloadSPParam*"/>
</return-value>
<parameters>
<instance-parameter name="payload" transfer-ownership="none">
<doc xml:space="preserve">a #GstMIKEYPayload</doc>
<type name="MIKEYPayload" c:type="const GstMIKEYPayload*"/>
</instance-parameter>
<parameter name="idx" transfer-ownership="none">
<doc xml:space="preserve">an index</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</method>
<method name="sp_remove_param" c:identifier="gst_mikey_payload_sp_remove_param" version="1.4">
<doc xml:space="preserve">Remove the Security Policy parameters from a %GST_MIKEY_PT_SP
@payload at @idx.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE on success</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="payload" transfer-ownership="none">
<doc xml:space="preserve">a #GstMIKEYPayload</doc>
<type name="MIKEYPayload" c:type="GstMIKEYPayload*"/>
</instance-parameter>
<parameter name="idx" transfer-ownership="none">
<doc xml:space="preserve">an index</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</method>
<method name="sp_set" c:identifier="gst_mikey_payload_sp_set" version="1.4">
<doc xml:space="preserve">Set the Security Policy parameters for @payload.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE on success</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="payload" transfer-ownership="none">
<doc xml:space="preserve">a #GstMIKEYPayload</doc>
<type name="MIKEYPayload" c:type="GstMIKEYPayload*"/>
</instance-parameter>
<parameter name="policy" transfer-ownership="none">
<doc xml:space="preserve">the policy number</doc>