]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gstreamer-rtp-0.10: Turn GstRTCPPacket into a struct
authorAli Sabil <ali.sabil@gmail.com>
Fri, 17 Apr 2009 13:25:27 +0000 (15:25 +0200)
committerAli Sabil <ali.sabil@gmail.com>
Fri, 17 Apr 2009 13:25:27 +0000 (15:25 +0200)
vapi/gstreamer-rtp-0.10.vapi
vapi/packages/gstreamer-rtp-0.10/gstreamer-rtp-0.10.metadata

index df2fad6f0a5261c78ba7c9ff4d6e6a559279292a..bbb1af4197171c452f277d62eb93135b65355e89 100644 (file)
@@ -94,17 +94,28 @@ namespace Gst {
                public uint timestamp_offset { get; set; }
        }
        [Compact]
-       [CCode (cheader_filename = "gst/rtp/gstrtcpbuffer.h")]
-       public class RTCPPacket {
+       [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
+       public class RTPPayloadInfo {
+               public uint bitrate;
+               public uint clock_rate;
+               public weak string encoding_name;
+               public weak string encoding_parameters;
+               public weak string media;
+               public uchar payload_type;
+               public static unowned Gst.RTPPayloadInfo for_name (string media, string encoding_name);
+               public static unowned Gst.RTPPayloadInfo for_pt (uchar payload_type);
+       }
+       [CCode (type_id = "GST_TYPE_RTCP_PACKET", cheader_filename = "gst/rtp/gstrtcpbuffer.h")]
+       public struct RTCPPacket {
                public weak Gst.Buffer buffer;
-               public uchar count;
-               public uint entry_offset;
-               public uint item_count;
-               public uint item_offset;
-               public uint16 length;
                public uint offset;
                public bool padding;
+               public uchar count;
                public Gst.RTCPType type;
+               public uint16 length;
+               public uint item_offset;
+               public uint item_count;
+               public uint entry_offset;
                public bool add_rb (uint32 ssrc, uchar fractionlost, int32 packetslost, uint32 exthighestseq, uint32 jitter, uint32 lsr, uint32 dlsr);
                public bool bye_add_ssrc (uint32 ssrc);
                public bool bye_add_ssrcs (uint32 ssrc, uint len);
@@ -136,18 +147,6 @@ namespace Gst {
                public void sr_get_sender_info (uint32 ssrc, uint64 ntptime, uint32 rtptime, uint32 packet_count, uint32 octet_count);
                public void sr_set_sender_info (uint32 ssrc, uint64 ntptime, uint32 rtptime, uint32 packet_count, uint32 octet_count);
        }
-       [Compact]
-       [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
-       public class RTPPayloadInfo {
-               public uint bitrate;
-               public uint clock_rate;
-               public weak string encoding_name;
-               public weak string encoding_parameters;
-               public weak string media;
-               public uchar payload_type;
-               public static unowned Gst.RTPPayloadInfo for_name (string media, string encoding_name);
-               public static unowned Gst.RTPPayloadInfo for_pt (uchar payload_type);
-       }
        [CCode (cprefix = "GST_RTCP_SDES_", has_type_id = "0", cheader_filename = "gst/rtp/gstrtcpbuffer.h")]
        public enum RTCPSDESType {
                INVALID,
@@ -286,11 +285,11 @@ namespace Gst {
        [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
        public const int RTP_VERSION;
        [CCode (cheader_filename = "gst/gst.h")]
-       public static bool rtcp_buffer_add_packet (Gst.Buffer buffer, Gst.RTCPType type, Gst.RTCPPacket packet);
+       public static bool rtcp_buffer_add_packet (Gst.Buffer buffer, Gst.RTCPType type, ref Gst.RTCPPacket packet);
        [CCode (cheader_filename = "gst/gst.h")]
        public static void rtcp_buffer_end (Gst.Buffer buffer);
        [CCode (cheader_filename = "gst/gst.h")]
-       public static bool rtcp_buffer_get_first_packet (Gst.Buffer buffer, Gst.RTCPPacket packet);
+       public static bool rtcp_buffer_get_first_packet (Gst.Buffer buffer, ref Gst.RTCPPacket packet);
        [CCode (cheader_filename = "gst/gst.h")]
        public static uint rtcp_buffer_get_packet_count (Gst.Buffer buffer);
        [CCode (cheader_filename = "gst/gst.h")]
index 235a6b5716ebc2b3cb8cadc31dfc4fcb05c6e98b..0bc57570da2ceeef0b86019eccb94c37fbaf58bd 100644 (file)
@@ -3,7 +3,7 @@ GStaticRecMutex name="pointer"
 GstRTCPSDESType cheader_filename="gst/rtp/gstrtcpbuffer.h"
 GstRTCPType cheader_filename="gst/rtp/gstrtcpbuffer.h"
 GstRTPPayload cheader_filename="gst/rtp/gstbasertpaudiopayload.h"
-GstRTCPPacket cheader_filename="gst/rtp/gstrtcpbuffer.h"
+GstRTCPPacket cheader_filename="gst/rtp/gstrtcpbuffer.h" is_value_type="1"
 GstRTPPayloadInfo cheader_filename="gst/rtp/gstrtppayloads.h"
 GstBaseRTPAudioPayload cheader_filename="gst/rtp/gstbasertpaudiopayload.h"
 GstBaseRTPDepayload cheader_filename="gst/rtp/gstbasertpdepayload.h"
@@ -100,3 +100,5 @@ gst_rtp_buffer_set_timestamp cheader_filename="gst/rtp/gstrtpbuffer.h"
 gst_rtp_buffer_set_version cheader_filename="gst/rtp/gstrtpbuffer.h"
 gst_rtp_buffer_validate cheader_filename="gst/rtp/gstrtpbuffer.h"
 gst_rtp_buffer_validate_data cheader_filename="gst/rtp/gstrtpbuffer.h"
+gst_rtcp_buffer_get_first_packet.packet is_ref="1"
+gst_rtcp_buffer_add_packet.packet is_ref="1"