<?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 version="1.2"
            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">
  <include name="Gst" version="0.10"/>
  <package name="gstreamer-netbuffer-0.10"/>
  <c:include name="gst/netbuffer/gstnetbuffer.h"/>
  <namespace name="GstNetbuffer"
             version="0.10"
             shared-library="libgstnetbuffer-0.10.so.2.6"
             c:identifier-prefixes="Gst"
             c:symbol-prefixes="gst">
    <function-macro name="IS_NETBUFFER"
                    c:identifier="GST_IS_NETBUFFER"
                    introspectable="0">
      <source-position filename="gstnetbuffer.h" line="32"/>
      <parameters>
        <parameter name="obj">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="IS_NETBUFFER_CLASS"
                    c:identifier="GST_IS_NETBUFFER_CLASS"
                    introspectable="0">
      <source-position filename="gstnetbuffer.h" line="33"/>
      <parameters>
        <parameter name="klass">
        </parameter>
      </parameters>
    </function-macro>
    <constant name="NETADDRESS_MAX_LEN"
              value="64"
              c:type="GST_NETADDRESS_MAX_LEN"
              version="0.10.24">
      <doc xml:space="preserve"
           filename="gstnetbuffer.h"
           line="52">The maximum length of a string representation of a GstNetAddress as produced
by gst_netaddress_to_string().</doc>
      <source-position filename="gstnetbuffer.h" line="60"/>
      <type name="gint" c:type="gint"/>
    </constant>
    <function-macro name="NETBUFFER"
                    c:identifier="GST_NETBUFFER"
                    introspectable="0">
      <source-position filename="gstnetbuffer.h" line="35"/>
      <parameters>
        <parameter name="obj">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="NETBUFFER_CLASS"
                    c:identifier="GST_NETBUFFER_CLASS"
                    introspectable="0">
      <source-position filename="gstnetbuffer.h" line="36"/>
      <parameters>
        <parameter name="klass">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="NETBUFFER_GET_CLASS"
                    c:identifier="GST_NETBUFFER_GET_CLASS"
                    introspectable="0">
      <source-position filename="gstnetbuffer.h" line="34"/>
      <parameters>
        <parameter name="obj">
        </parameter>
      </parameters>
    </function-macro>
    <record name="NetAddress" c:type="GstNetAddress">
      <doc xml:space="preserve"
           filename="gstnetbuffer.h"
           line="62">An opaque network address as used in #GstNetBuffer.</doc>
      <source-position filename="gstnetbuffer.h" line="77"/>
      <field name="type" readable="0" private="1">
        <type name="NetType" c:type="GstNetType"/>
      </field>
      <union name="address" c:type="address">
        <source-position filename="gstnetbuffer.h" line="73"/>
        <field name="ip6" writable="1">
          <array zero-terminated="0" fixed-size="16">
            <type name="guint8" c:type="guint8"/>
          </array>
        </field>
        <field name="ip4" writable="1">
          <type name="guint32" c:type="guint32"/>
        </field>
      </union>
      <field name="port" writable="1">
        <type name="guint16" c:type="guint16"/>
      </field>
      <field name="_gst_reserved" readable="0" private="1">
        <array zero-terminated="0" fixed-size="4">
          <type name="gpointer" c:type="gpointer"/>
        </array>
      </field>
    </record>
    <class name="NetBuffer"
           c:symbol-prefix="netbuffer"
           c:type="GstNetBuffer"
           parent="Gst.Buffer"
           glib:type-name="GstNetBuffer"
           glib:get-type="gst_netbuffer_get_type"
           glib:type-struct="NetBufferClass"
           glib:fundamental="1">
      <doc xml:space="preserve"
           filename="gstnetbuffer.c"
           line="20">#GstNetBuffer is a subclass of a normal #GstBuffer that contains two
additional metadata fields of type #GstNetAddress named 'to' and 'from'. The
buffer can be used to store additional information about the origin of the
buffer data and is used in various network elements to track the to and from
addresses.

Last reviewed on 2006-08-21 (0.10.10)</doc>
      <source-position filename="gstnetbuffer.h" line="103"/>
      <constructor name="new" c:identifier="gst_netbuffer_new">
        <doc xml:space="preserve"
             filename="gstnetbuffer.c"
             line="91">Create a new network buffer.</doc>
        <source-position filename="gstnetbuffer.h" line="108"/>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve"
               filename="gstnetbuffer.c"
               line="96">a new #GstNetBuffer.</doc>
          <type name="NetBuffer" c:type="GstNetBuffer*"/>
        </return-value>
      </constructor>
      <field name="buffer">
        <doc xml:space="preserve"
             filename="gstnetbuffer.h"
             line="81">the parent #GstBuffer</doc>
        <type name="Gst.Buffer" c:type="GstBuffer"/>
      </field>
      <field name="from">
        <doc xml:space="preserve"
             filename="gstnetbuffer.h"
             line="82">the address where this buffer came from.</doc>
        <type name="NetAddress" c:type="GstNetAddress"/>
      </field>
      <field name="to">
        <doc xml:space="preserve"
             filename="gstnetbuffer.h"
             line="83">the address where this buffer should go to.</doc>
        <type name="NetAddress" c:type="GstNetAddress"/>
      </field>
      <field name="_gst_reserved" readable="0" private="1">
        <array zero-terminated="0" fixed-size="4">
          <type name="gpointer" c:type="gpointer"/>
        </array>
      </field>
    </class>
    <record name="NetBufferClass"
            c:type="GstNetBufferClass"
            glib:is-gtype-struct-for="NetBuffer">
      <source-position filename="gstnetbuffer.h" line="103"/>
      <field name="buffer_class">
        <type name="Gst.BufferClass" c:type="GstBufferClass"/>
      </field>
      <field name="_gst_reserved" readable="0" private="1">
        <array zero-terminated="0" fixed-size="4">
          <type name="gpointer" c:type="gpointer"/>
        </array>
      </field>
    </record>
    <enumeration name="NetType" c:type="GstNetType">
      <doc xml:space="preserve"
           filename="gstnetbuffer.h"
           line="38">The Address type used in #GstNetAddress.</doc>
      <source-position filename="gstnetbuffer.h" line="50"/>
      <member name="unknown" value="0" c:identifier="GST_NET_TYPE_UNKNOWN">
        <doc xml:space="preserve"
             filename="gstnetbuffer.h"
             line="40">unknown address type</doc>
      </member>
      <member name="ip4" value="1" c:identifier="GST_NET_TYPE_IP4">
        <doc xml:space="preserve"
             filename="gstnetbuffer.h"
             line="41">an IPv4 address type</doc>
      </member>
      <member name="ip6" value="2" c:identifier="GST_NET_TYPE_IP6">
        <doc xml:space="preserve"
             filename="gstnetbuffer.h"
             line="42">and IPv6 address type</doc>
      </member>
    </enumeration>
    <function name="netaddress_equal"
              c:identifier="gst_netaddress_equal"
              version="0.10.18">
      <doc xml:space="preserve"
           filename="gstnetbuffer.c"
           line="325">Compare two #GstNetAddress structures</doc>
      <source-position filename="gstnetbuffer.h" line="121"/>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve"
             filename="gstnetbuffer.c"
             line="332">TRUE if they are identical, FALSE otherwise</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="naddr1" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstnetbuffer.c"
               line="327">The first #GstNetAddress</doc>
          <type name="NetAddress" c:type="const GstNetAddress*"/>
        </parameter>
        <parameter name="naddr2" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstnetbuffer.c"
               line="328">The second #GstNetAddress</doc>
          <type name="NetAddress" c:type="const GstNetAddress*"/>
        </parameter>
      </parameters>
    </function>
    <function name="netaddress_get_address_bytes"
              c:identifier="gst_netaddress_get_address_bytes"
              version="0.10.22">
      <doc xml:space="preserve"
           filename="gstnetbuffer.c"
           line="240">Get just the address bytes stored in @naddr into @address.

Note that @port is expressed in network byte order, use g_ntohs() to convert
it to host order. IP4 addresses are also stored in network byte order.</doc>
      <source-position filename="gstnetbuffer.h" line="119"/>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve"
             filename="gstnetbuffer.c"
             line="251">number of bytes actually copied</doc>
        <type name="gint" c:type="gint"/>
      </return-value>
      <parameters>
        <parameter name="naddr" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstnetbuffer.c"
               line="242">a network address</doc>
          <type name="NetAddress" c:type="const GstNetAddress*"/>
        </parameter>
        <parameter name="address" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstnetbuffer.c"
               line="243">a location to store the result.</doc>
          <type name="guint8" c:type="guint8*"/>
        </parameter>
        <parameter name="port" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstnetbuffer.c"
               line="244">a location to store the port.</doc>
          <type name="guint16" c:type="guint16*"/>
        </parameter>
      </parameters>
    </function>
    <function name="netaddress_get_ip4_address"
              c:identifier="gst_netaddress_get_ip4_address">
      <doc xml:space="preserve"
           filename="gstnetbuffer.c"
           line="168">Get the IPv4 address stored in @naddr into @address. This function requires
that the address type of @naddr is of type #GST_NET_TYPE_IP4.

Note that @port and @address are expressed in network byte order, use
g_ntohs() and g_ntohl() to convert them to host order.</doc>
      <source-position filename="gstnetbuffer.h" line="117"/>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve"
             filename="gstnetbuffer.c"
             line="180">TRUE if the address could be retrieved.</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="naddr" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstnetbuffer.c"
               line="170">a network address</doc>
          <type name="NetAddress" c:type="const GstNetAddress*"/>
        </parameter>
        <parameter name="address" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstnetbuffer.c"
               line="171">a location to store the address.</doc>
          <type name="guint32" c:type="guint32*"/>
        </parameter>
        <parameter name="port" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstnetbuffer.c"
               line="172">a location to store the port.</doc>
          <type name="guint16" c:type="guint16*"/>
        </parameter>
      </parameters>
    </function>
    <function name="netaddress_get_ip6_address"
              c:identifier="gst_netaddress_get_ip6_address">
      <doc xml:space="preserve"
           filename="gstnetbuffer.c"
           line="199">Get the IPv6 address stored in @naddr into @address.

If @naddr is of type GST_NET_TYPE_IP4, the transitional IP6 address is
returned.

Note that @port is expressed in network byte order, use g_ntohs() to convert
it to host order.</doc>
      <source-position filename="gstnetbuffer.h" line="118"/>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve"
             filename="gstnetbuffer.c"
             line="213">TRUE if the address could be retrieved.</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="naddr" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstnetbuffer.c"
               line="201">a network address</doc>
          <type name="NetAddress" c:type="const GstNetAddress*"/>
        </parameter>
        <parameter name="address" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstnetbuffer.c"
               line="202">a location to store the result.</doc>
          <type name="guint8" c:type="guint8*"/>
        </parameter>
        <parameter name="port" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstnetbuffer.c"
               line="203">a location to store the port.</doc>
          <type name="guint16" c:type="guint16*"/>
        </parameter>
      </parameters>
    </function>
    <function name="netaddress_get_net_type"
              c:identifier="gst_netaddress_get_net_type">
      <doc xml:space="preserve"
           filename="gstnetbuffer.c"
           line="152">Get the type of address stored in @naddr.</doc>
      <source-position filename="gstnetbuffer.h" line="116"/>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve"
             filename="gstnetbuffer.c"
             line="158">the network type stored in @naddr.</doc>
        <type name="NetType" c:type="GstNetType"/>
      </return-value>
      <parameters>
        <parameter name="naddr" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstnetbuffer.c"
               line="154">a network address</doc>
          <type name="NetAddress" c:type="const GstNetAddress*"/>
        </parameter>
      </parameters>
    </function>
    <function name="netaddress_set_address_bytes"
              c:identifier="gst_netaddress_set_address_bytes"
              version="0.10.22">
      <doc xml:space="preserve"
           filename="gstnetbuffer.c"
           line="281">Set just the address bytes stored in @naddr into @address.

Note that @port must be expressed in network byte order, use g_htons() to
convert it to network byte order. IP4 address bytes must also be
stored in network byte order.</doc>
      <source-position filename="gstnetbuffer.h" line="113"/>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve"
             filename="gstnetbuffer.c"
             line="294">number of bytes actually copied</doc>
        <type name="gint" c:type="gint"/>
      </return-value>
      <parameters>
        <parameter name="naddr" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstnetbuffer.c"
               line="283">a network address</doc>
          <type name="NetAddress" c:type="GstNetAddress*"/>
        </parameter>
        <parameter name="type" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstnetbuffer.c"
               line="284">the address type (IPv4 or IPV6)</doc>
          <type name="NetType" c:type="GstNetType"/>
        </parameter>
        <parameter name="address" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstnetbuffer.c"
               line="285">a location to store the result.</doc>
          <type name="guint8" c:type="guint8*"/>
        </parameter>
        <parameter name="port" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstnetbuffer.c"
               line="286">a location to store the port.</doc>
          <type name="guint16" c:type="guint16"/>
        </parameter>
      </parameters>
    </function>
    <function name="netaddress_set_ip4_address"
              c:identifier="gst_netaddress_set_ip4_address">
      <doc xml:space="preserve"
           filename="gstnetbuffer.c"
           line="108">Set @naddr with the IPv4 @address and @port pair.

Note that @port and @address must be expressed in network byte order,
use g_htons() and g_htonl() to convert them to network byte order.</doc>
      <source-position filename="gstnetbuffer.h" line="111"/>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="naddr" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstnetbuffer.c"
               line="110">a network address</doc>
          <type name="NetAddress" c:type="GstNetAddress*"/>
        </parameter>
        <parameter name="address" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstnetbuffer.c"
               line="111">an IPv4 network address.</doc>
          <type name="guint32" c:type="guint32"/>
        </parameter>
        <parameter name="port" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstnetbuffer.c"
               line="112">a port number to set.</doc>
          <type name="guint16" c:type="guint16"/>
        </parameter>
      </parameters>
    </function>
    <function name="netaddress_set_ip6_address"
              c:identifier="gst_netaddress_set_ip6_address">
      <doc xml:space="preserve"
           filename="gstnetbuffer.c"
           line="130">Set @naddr with the IPv6 @address and @port pair.

Note that @port must be expressed in network byte order, use g_htons() to convert
it to network byte order.</doc>
      <source-position filename="gstnetbuffer.h" line="112"/>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="naddr" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstnetbuffer.c"
               line="132">a network address</doc>
          <type name="NetAddress" c:type="GstNetAddress*"/>
        </parameter>
        <parameter name="address" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstnetbuffer.c"
               line="133">an IPv6 network address.</doc>
          <type name="guint8" c:type="guint8*"/>
        </parameter>
        <parameter name="port" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstnetbuffer.c"
               line="134">a port number to set.</doc>
          <type name="guint16" c:type="guint16"/>
        </parameter>
      </parameters>
    </function>
    <function name="netaddress_to_string"
              c:identifier="gst_netaddress_to_string"
              version="0.10.24">
      <doc xml:space="preserve"
           filename="gstnetbuffer.c"
           line="365">Copies a string representation of @naddr into @dest. Up to @len bytes are
copied.</doc>
      <source-position filename="gstnetbuffer.h" line="124"/>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve"
             filename="gstnetbuffer.c"
             line="374">the number of bytes which would be produced if the buffer was large
enough</doc>
        <type name="gint" c:type="gint"/>
      </return-value>
      <parameters>
        <parameter name="naddr" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstnetbuffer.c"
               line="367">a #GstNetAddress</doc>
          <type name="NetAddress" c:type="const GstNetAddress*"/>
        </parameter>
        <parameter name="dest" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstnetbuffer.c"
               line="368">destination</doc>
          <type name="utf8" c:type="gchar*"/>
        </parameter>
        <parameter name="len" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="gstnetbuffer.c"
               line="369">len of @dest</doc>
          <type name="gulong" c:type="gulong"/>
        </parameter>
      </parameters>
    </function>
  </namespace>
</repository>
