[vala] gstreamer-rtp-0.10: Turn GstRTCPPacket into a struct
- From: Ali Sabil <asabil src gnome org>
- To: svn-commits-list gnome org
- Subject: [vala] gstreamer-rtp-0.10: Turn GstRTCPPacket into a struct
- Date: Fri, 17 Apr 2009 09:29:28 -0400 (EDT)
commit 2ae9e6023c3a409b1f6f63fdbb2116548f9312fd
Author: Ali Sabil <ali sabil gmail com>
Date: Fri Apr 17 15:17:41 2009 +0200
gstreamer-rtp-0.10: Turn GstRTCPPacket into a struct
---
vapi/gstreamer-rtp-0.10.vapi | 41 ++++++++++----------
.../gstreamer-rtp-0.10/gstreamer-rtp-0.10.metadata | 4 +-
2 files changed, 23 insertions(+), 22 deletions(-)
diff --git a/vapi/gstreamer-rtp-0.10.vapi b/vapi/gstreamer-rtp-0.10.vapi
index df2fad6..bbb1af4 100644
--- a/vapi/gstreamer-rtp-0.10.vapi
+++ b/vapi/gstreamer-rtp-0.10.vapi
@@ -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")]
diff --git a/vapi/packages/gstreamer-rtp-0.10/gstreamer-rtp-0.10.metadata b/vapi/packages/gstreamer-rtp-0.10/gstreamer-rtp-0.10.metadata
index 235a6b5..0bc5757 100644
--- a/vapi/packages/gstreamer-rtp-0.10/gstreamer-rtp-0.10.metadata
+++ b/vapi/packages/gstreamer-rtp-0.10/gstreamer-rtp-0.10.metadata
@@ -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"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]