This file is indexed.

/usr/share/gir-1.0/GstNetbuffer-0.10.gir is in libgstreamer-plugins-base0.10-dev 0.10.36-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
<?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.0"
             c:identifier-prefixes="Gst"
             c:symbol-prefixes="gst">
    <constant name="NETADDRESS_MAX_LEN"
              value="64"
              c:type="GST_NETADDRESS_MAX_LEN"
              version="0.10.24">
      <doc xml:space="preserve">The maximum length of a string representation of a GstNetAddress as produced
by gst_netaddress_to_string().</doc>
      <type name="gint" c:type="gint"/>
    </constant>
    <record name="NetAddress" c:type="GstNetAddress">
      <doc xml:space="preserve">An opaque network address as used in #GstNetBuffer.</doc>
      <field name="type" readable="0" private="1">
        <type name="NetType" c:type="GstNetType"/>
      </field>
      <union name="address" c:type="address">
        <field name="ip6" writable="1">
          <array zero-terminated="0" c:type="guint8" 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" c:type="gpointer" 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">#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>
      <constructor name="new" c:identifier="gst_netbuffer_new">
        <doc xml:space="preserve">Create a new network buffer.</doc>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve">a new #GstNetBuffer.</doc>
          <type name="NetBuffer" c:type="GstNetBuffer*"/>
        </return-value>
      </constructor>
      <field name="buffer">
        <doc xml:space="preserve">the parent #GstBuffer</doc>
        <type name="Gst.Buffer" c:type="GstBuffer"/>
      </field>
      <field name="from">
        <doc xml:space="preserve">the address where this buffer came from.</doc>
        <type name="NetAddress" c:type="GstNetAddress"/>
      </field>
      <field name="to">
        <doc xml:space="preserve">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" c:type="gpointer" fixed-size="4">
          <type name="gpointer" c:type="gpointer"/>
        </array>
      </field>
    </class>
    <record name="NetBufferClass"
            c:type="GstNetBufferClass"
            glib:is-gtype-struct-for="NetBuffer">
      <field name="buffer_class">
        <type name="Gst.BufferClass" c:type="GstBufferClass"/>
      </field>
      <field name="_gst_reserved" readable="0" private="1">
        <array zero-terminated="0" c:type="gpointer" fixed-size="4">
          <type name="gpointer" c:type="gpointer"/>
        </array>
      </field>
    </record>
    <enumeration name="NetType" c:type="GstNetType">
      <doc xml:space="preserve">The Address type used in #GstNetAddress.</doc>
      <member name="unknown" value="0" c:identifier="GST_NET_TYPE_UNKNOWN">
        <doc xml:space="preserve">unknown address type</doc>
      </member>
      <member name="ip4" value="1" c:identifier="GST_NET_TYPE_IP4">
        <doc xml:space="preserve">an IPv4 address type</doc>
      </member>
      <member name="ip6" value="2" c:identifier="GST_NET_TYPE_IP6">
        <doc xml:space="preserve">and IPv6 address type</doc>
      </member>
    </enumeration>
    <function name="netaddress_equal"
              c:identifier="gst_netaddress_equal"
              version="0.10.18">
      <doc xml:space="preserve">Compare two #GstNetAddress structures</doc>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve">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">The first #GstNetAddress</doc>
          <type name="NetAddress" c:type="const GstNetAddress*"/>
        </parameter>
        <parameter name="naddr2" transfer-ownership="none">
          <doc xml:space="preserve">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">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>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve">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">a network address</doc>
          <type name="NetAddress" c:type="const GstNetAddress*"/>
        </parameter>
        <parameter name="address" transfer-ownership="none">
          <doc xml:space="preserve">a location to store the result.</doc>
          <type name="guint8" c:type="guint8"/>
        </parameter>
        <parameter name="port" transfer-ownership="none">
          <doc xml:space="preserve">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">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>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve">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">a network address</doc>
          <type name="NetAddress" c:type="const GstNetAddress*"/>
        </parameter>
        <parameter name="address" transfer-ownership="none">
          <doc xml:space="preserve">a location to store the address.</doc>
          <type name="guint32" c:type="guint32*"/>
        </parameter>
        <parameter name="port" transfer-ownership="none">
          <doc xml:space="preserve">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">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>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve">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">a network address</doc>
          <type name="NetAddress" c:type="const GstNetAddress*"/>
        </parameter>
        <parameter name="address" transfer-ownership="none">
          <doc xml:space="preserve">a location to store the result.</doc>
          <type name="guint8" c:type="guint8"/>
        </parameter>
        <parameter name="port" transfer-ownership="none">
          <doc xml:space="preserve">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">Get the type of address stored in @naddr.</doc>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve">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">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">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>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve">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">a network address</doc>
          <type name="NetAddress" c:type="GstNetAddress*"/>
        </parameter>
        <parameter name="type" transfer-ownership="none">
          <doc xml:space="preserve">the address type (IPv4 or IPV6)</doc>
          <type name="NetType" c:type="GstNetType"/>
        </parameter>
        <parameter name="address" transfer-ownership="none">
          <doc xml:space="preserve">a location to store the result.</doc>
          <type name="guint8" c:type="guint8"/>
        </parameter>
        <parameter name="port" transfer-ownership="none">
          <doc xml:space="preserve">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">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>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="naddr" transfer-ownership="none">
          <doc xml:space="preserve">a network address</doc>
          <type name="NetAddress" c:type="GstNetAddress*"/>
        </parameter>
        <parameter name="address" transfer-ownership="none">
          <doc xml:space="preserve">an IPv4 network address.</doc>
          <type name="guint32" c:type="guint32"/>
        </parameter>
        <parameter name="port" transfer-ownership="none">
          <doc xml:space="preserve">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">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>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="naddr" transfer-ownership="none">
          <doc xml:space="preserve">a network address</doc>
          <type name="NetAddress" c:type="GstNetAddress*"/>
        </parameter>
        <parameter name="address" transfer-ownership="none">
          <doc xml:space="preserve">an IPv6 network address.</doc>
          <type name="guint8" c:type="guint8"/>
        </parameter>
        <parameter name="port" transfer-ownership="none">
          <doc xml:space="preserve">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">Copies a string representation of @naddr into @dest. Up to @len bytes are
copied.</doc>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve">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">a #GstNetAddress</doc>
          <type name="NetAddress" c:type="const GstNetAddress*"/>
        </parameter>
        <parameter name="dest" transfer-ownership="none">
          <doc xml:space="preserve">destination</doc>
          <type name="utf8" c:type="gchar*"/>
        </parameter>
        <parameter name="len" transfer-ownership="none">
          <doc xml:space="preserve">len of @dest</doc>
          <type name="gulong" c:type="gulong"/>
        </parameter>
      </parameters>
    </function>
  </namespace>
</repository>