This file is indexed.

/usr/include/gstreamermm-1.0/gstreamermm/sdpmessage.h is in libgstreamermm-1.0-dev 1.10.0+dfsg-1.

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
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
// Generated by gmmproc 2.50.1 -- DO NOT MODIFY!
#ifndef _GSTREAMERMM_SDPMESSAGE_H
#define _GSTREAMERMM_SDPMESSAGE_H


#include <glibmm/ustring.h>
#include <sigc++/sigc++.h>

/* gstreamermm - a C++ wrapper for gstreamer
 *
 * Copyright 2016 The gstreamermm Development Team
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free
 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 * Last reviewed on 2016-12-11 (1.10.0)
 */


#include <gst/sdp/gstsdpmessage.h>

namespace Gst
{

class Caps;

namespace SDP
{
/** @addtogroup gstreamermmEnums gstreamermm Enums and Flags */

/** 
 *  @var Result SDP_OK
 * A successful return value.
 * 
 *  @var Result SDP_EINVAL
 * A function was given invalid parameters.
 * 
 *  @enum Result
 * 
 * Return values for the SDP functions.
 *
 * @ingroup gstreamermmEnums
 */
enum Result
{
  SDP_OK = 0,
  SDP_EINVAL = -1
};


/** The contents of the SDP "k=" field which is used to convey encryption
 * keys.
 */
class Key
{
  public:
#ifndef DOXYGEN_SHOULD_SKIP_THIS
  using CppObjectType = Key;
  using BaseObjectType = GstSDPKey;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */

private:


public:
  explicit Key(const GstSDPKey* gobject_);
  Key(const Key& other);
  Key(Key&& other);
  ~Key();

  GstSDPKey* gobj() { return &gobject_; }
  const GstSDPKey* gobj() const { return &gobject_; }

  Glib::ustring get_type() const;
  Glib::ustring get_data() const;

protected:
  GstSDPKey gobject_;


};

/** The contents of the SDP "m=" field with all related fields.
 */
class Media
{
  public:
#ifndef DOXYGEN_SHOULD_SKIP_THIS
  using CppObjectType = Media;
  using BaseObjectType = GstSDPMedia;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */

private:

public:
  Media();
  Media(const Media& other);
  Media(Media&& other);
  virtual ~Media();

  GstSDPMedia* gobj() { return gobject_; }
  const GstSDPMedia* gobj() const { return gobject_; }

  
  /** Convert the contents of @a media to a text string.
   * 
   * @return A dynamically allocated string representing the media.
   */
  Glib::ustring as_text() const;
  
  /** Get the media description of @a media.
   * 
   * @return The media description.
   */
  Glib::ustring get_media() const;
  
  /** Set the media description of @a media to @a med.
   * 
   * @param med The media description.
   * @return Gst::SDP_OK.
   */
  Result set_media(const Glib::ustring& med);
  
  /** Get the port number for @a media.
   * 
   * @return The port number of @a media.
   */
  guint get_port() const;
  
  /** Get the number of ports for @a media.
   * 
   * @return The number of ports for @a media.
   */
  guint get_num_ports() const;
  
  /** Set the port information in @a media.
   * 
   * @param port The port number.
   * @param num_ports The number of ports.
   * @return Gst::SDP_OK.
   */
  Result set_port_info(guint port, guint num_ports);
  
  /** Get the transport protocol of @a media
   * 
   * @return The transport protocol of @a media.
   */
  Glib::ustring get_proto() const;
  
  /** Set the media transport protocol of @a media to @a proto.
   * 
   * @param proto The media transport protocol.
   * @return Gst::SDP_OK.
   */
  Result set_proto(const Glib::ustring& proto);
  
  /** Get the number of formats in @a media.
   * 
   * @return The number of formats in @a media.
   */
  guint formats_len() const;
  
  /** Get the format information at position @a idx in @a media.
   * 
   * @param idx An index.
   * @return The format at position @a idx.
   */
  Glib::ustring get_format(guint idx) const;
  
  /** Insert the format information to @a media at @a idx. When @a idx is -1,
   * the format is appended.
   * 
   * @param idx An index.
   * @param format The format.
   * @return Gst::SDP_OK.
   */
  Result insert_format(gint idx, const Glib::ustring& format);
  
  /** Replace the format information in @a media at @a idx with @a format.
   * 
   * @param idx An index.
   * @param format The format.
   * @return Gst::SDP_OK.
   */
  Result replace_format(guint idx, const Glib::ustring& format);
  
  /** Remove the format information in @a media at @a idx.
   * 
   * @param idx An index.
   * @return Gst::SDP_OK.
   */
  Result remove_format(guint idx);
  
  /** Add the format information to @a media.
   * 
   * @param format The format.
   * @return Gst::SDP_OK.
   */
  Result add_format(const Glib::ustring& format);
  
  /** Get the information of @a media
   * 
   * @return The information of @a media.
   */
  Glib::ustring get_information() const;
  
  /** Set the media information of @a media to @a information.
   * 
   * @param information The media information.
   * @return Gst::SDP_OK.
   */
  Result set_information(const Glib::ustring& information);
  
  /** Get the number of connection fields in @a media.
   * 
   * @return The number of connections in @a media.
   */
  guint connections_len() const;
  
  /** Remove the connection information in @a media at @a idx.
   * 
   * @param idx An index.
   * @return Gst::SDP_OK.
   */
  Result remove_connection(guint idx);
  
  /** Add the given connection parameters to @a media.
   * 
   * @param nettype The type of network. "IN" is defined to have the meaning
   * "Internet".
   * @param addrtype The type of address.
   * @param address The address.
   * @param ttl The time to live of the address.
   * @param addr_number The number of layers.
   * @return A Gst::SDPResult.
   */
  Result add_connection(const Glib::ustring& nettype, const Glib::ustring& addrtype, const Glib::ustring& address, guint ttl, guint addr_number);
  
  /** Get the number of bandwidth fields in @a media.
   * 
   * @return The number of bandwidths in @a media.
   */
  guint bandwidths_len() const;
  
  /** Remove the bandwidth information in @a media at @a idx.
   * 
   * @param idx An index.
   * @return Gst::SDP_OK.
   */
  Result remove_bandwidth(guint idx);
  
  /** Add the bandwidth information with @a bwtype and @a bandwith to @a media.
   * 
   * @param bwtype The bandwidth modifier type.
   * @param bandwith The bandwidth in kilobits per second.
   * @return Gst::SDP_OK.
   */
  Result add_bandwidth(const Glib::ustring& bwtype, guint bandwith);

 
  /** Get the encryption information from @a media.
   * 
   * @return A Gst::SDPKey.
   */
  Gst::SDP::Key get_key() const;

  
  /** Adds the encryption information to @a media.
   * 
   * @param key The encryption type.
   * @param data The encryption data.
   * @return A Gst::SDPResult.
   */
  Result set_key(const Glib::ustring& key, const Glib::ustring& data);
  
  /** Get the number of attribute fields in @a media.
   * 
   * @return The number of attributes in @a media.
   */
  guint attributes_len() const;
  
  /** Get the first attribute value for @a key in @a media.
   * 
   * @param key A key.
   * @return The first attribute value for @a key.
   */
  Glib::ustring get_attribute_val(const Glib::ustring& key) const;
  
  /** Get the @a nth attribute value for @a key in @a media.
   * 
   * @param key A key.
   * @param nth An index.
   * @return The @a nth attribute value.
   */
  Glib::ustring get_attribute_val(const Glib::ustring& key, guint nth) const;
  
  /** Remove the attribute in @a media at @a idx.
   * 
   * @param idx An index.
   * @return Gst::SDP_OK.
   */
  Result remove_attribute(guint idx);
  
  /** Add the attribute with @a key and @a value to @a media.
   * 
   * @param key A key.
   * @param value A value.
   * @return Gst::SDP_OK.
   */
  Result add_attribute(const Glib::ustring& key, const Glib::ustring& value);
  
  /** Mapping of caps from SDP fields:
   * 
   * a=rtpmap:(payload) (encoding_name)/(clock_rate)[/(encoding_params)]
   * 
   * a=framesize:(payload) (width)-(height)
   * 
   * a=fmtp:(payload) (param)[=(value)];...
   * 
   * @param pt A payload type.
   * @return A Gst::Caps, or <tt>nullptr</tt> if an error happened.
   */
  Glib::RefPtr<Gst::Caps> get_caps_from_media(int pt) const;
  
  /** Mapping of attributes of Gst::SDPMedia to Gst::Caps
   * 
   * @param caps A Gst::Caps.
   * @return A Gst::SDPResult.
   */
  Result attributes_to_caps(const Glib::RefPtr<Gst::Caps>& caps) const;

protected:
  GstSDPMedia *gobject_ = nullptr;


};

} // SDP
} // Gst


#endif /* _GSTREAMERMM_SDPMESSAGE_H */