1 /* gstreamer-netbuffer-0.10.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Gst", lower_case_cprefix = "gst_")]
5 [CCode (cheader_filename = "gst/netbuffer/gstnetbuffer.h")]
6 public class NetBuffer : Gst.Buffer {
7 public weak Gst.Buffer buffer;
8 public Gst.NetAddress from;
9 public Gst.NetAddress to;
10 [CCode (cname = "gst_netbuffer_new", has_construct_function = false)]
13 [CCode (type_id = "GST_TYPE_NET_ADDRESS", cheader_filename = "gst/netbuffer/gstnetbuffer.h")]
14 public struct NetAddress {
15 public Gst.NetType type;
18 [CCode (cname = "gst_netaddress_equal")]
19 public bool equal (Gst.NetAddress naddr2);
20 [CCode (cname = "gst_netaddress_get_address_bytes")]
21 public int get_address_bytes ([CCode (array_length = false)] uchar[] address, out uint16 port);
22 [CCode (cname = "gst_netaddress_get_ip4_address")]
23 public bool get_ip4_address (out uint32 address, out uint16 port);
24 [CCode (cname = "gst_netaddress_get_ip6_address")]
25 public bool get_ip6_address ([CCode (array_length = false)] uchar[] address, out uint16 port);
26 [CCode (cname = "gst_netaddress_get_net_type")]
27 public Gst.NetType get_net_type ();
28 [CCode (cname = "gst_netaddress_set_address_bytes")]
29 public int set_address_bytes (Gst.NetType type, [CCode (array_length = false)] uchar[] address, uint16 port);
30 [CCode (cname = "gst_netaddress_set_ip4_address")]
31 public void set_ip4_address (uint32 address, uint16 port);
32 [CCode (cname = "gst_netaddress_set_ip6_address")]
33 public void set_ip6_address ([CCode (array_length = false)] uchar[] address, uint16 port);
34 [CCode (cname = "gst_netaddress_to_string")]
35 public int to_string (string dest, ulong len);
37 [CCode (cprefix = "GST_NET_TYPE_", has_type_id = false, cheader_filename = "gst/netbuffer/gstnetbuffer.h")]
43 [CCode (cheader_filename = "gst/netbuffer/gstnetbuffer.h")]
44 public const int NETADDRESS_MAX_LEN;