This file is indexed.

/usr/include/libdmapsharing-3.0/libdmapsharing/dmap-structure.h is in libdmapsharing-3.0-dev 2.9.14-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
/*
 * Copyright (C) 2004,2005 Charles Schmidt <cschmidt2@emich.edu>
 * Copyright (C) 2006 INDT
 *  Andre Moreira Magalhaes <andre.magalhaes@indt.org.br>
 *
 * 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., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA*
 */

#ifndef __DMAP_STRUCTURE_H__
#define __DMAP_STRUCTURE_H__

#include <glib.h>
#include <glib-object.h>

G_BEGIN_DECLS typedef enum
{
	DMAP_CC_INVALID = 0,
	DMAP_RAW,		/* The RAW type does not use a content code.
				 * Instead of:
				 * CCCC BYTECOUNT DATA
				 * RAW sends:
				 * DATA
				 */
	DMAP_CC_MDCL,
	DMAP_CC_MSTT,
	DMAP_CC_MIID,
	DMAP_CC_MINM,
	DMAP_CC_MIKD,
	DMAP_CC_MPER,
	DMAP_CC_MCON,
	DMAP_CC_MCTI,
	DMAP_CC_MPCO,
	DMAP_CC_MSTS,
	DMAP_CC_MIMC,
	DMAP_CC_MCTC,
	DMAP_CC_MRCO,
	DMAP_CC_MTCO,
	DMAP_CC_MLCL,
	DMAP_CC_MLIT,
	DMAP_CC_MBCL,
	DMAP_CC_MSRV,
	DMAP_CC_MSAU,
	DMAP_CC_MSLR,
	DMAP_CC_MPRO,
	DMAP_CC_MSAL,
	DMAP_CC_MSUP,
	DMAP_CC_MSPI,
	DMAP_CC_MSEX,
	DMAP_CC_MSBR,
	DMAP_CC_MSQY,
	DMAP_CC_MSIX,
	DMAP_CC_MSRS,
	DMAP_CC_MSTM,
	DMAP_CC_MSDC,
	DMAP_CC_MCCR,
	DMAP_CC_MCNM,
	DMAP_CC_MCNA,
	DMAP_CC_MCTY,
	DMAP_CC_MLOG,
	DMAP_CC_MLID,
	DMAP_CC_MUPD,
	DMAP_CC_MUSR,
	DMAP_CC_MUTY,
	DMAP_CC_MUDL,
	DMAP_CC_MSMA,
	DMAP_CC_FQUESCH,

	DMAP_CC_APRO,
	DMAP_CC_AVDB,
	DMAP_CC_ABRO,
	DMAP_CC_ABAL,
	DMAP_CC_ABAR,
	DMAP_CC_ABCP,
	DMAP_CC_ABGN,
	DMAP_CC_ADBS,
	DMAP_CC_ASAL,
	DMAP_CC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,
	DMAP_CC_CAAS,
	DMAP_CC_CAAR,
	DMAP_CC_CAIA,
	DMAP_CC_CANP,
	DMAP_CC_CANN,
	DMAP_CC_CANA,
	DMAP_CC_CANL,
	DMAP_CC_CANG,
	DMAP_CC_CANT,
	DMAP_CC_CASP,
	DMAP_CC_CASS,
	DMAP_CC_CAST,
	DMAP_CC_CASU,
	DMAP_CC_CASG,
	DMAP_CC_CACR,

	DMAP_CC_CMCP,
	DMAP_CC_CMGT,
	DMAP_CC_CMIK,
	DMAP_CC_CMSP,
	DMAP_CC_CMST,
	DMAP_CC_CMSV,
	DMAP_CC_CMSR,
	DMAP_CC_CMMK,
	DMAP_CC_CMVO,

	DMAP_CC_CMPR,
	DMAP_CC_CAPR,
	DMAP_CC_AEFR,
	DMAP_CC_CAOV,
	DMAP_CC_CMRL,
	DMAP_CC_CAHP,
	DMAP_CC_CAIV,
	DMAP_CC_CAVC
} DMAPContentCode;

typedef struct _DMAPStructureItem DMAPStructureItem;

struct _DMAPStructureItem
{
	DMAPContentCode content_code;
	GValue content;
	guint32 size;
};

GNode *dmap_structure_add (GNode * parent, DMAPContentCode cc, ...);
gchar *dmap_structure_serialize (GNode * structure, guint * length);
GNode *dmap_structure_parse (const gchar * buf, gint buf_length);
DMAPStructureItem *dmap_structure_find_item (GNode * structure,
					     DMAPContentCode code);
GNode *dmap_structure_find_node (GNode * structure, DMAPContentCode code);
void dmap_structure_print (GNode * structure);
void dmap_structure_destroy (GNode * structure);
guint dmap_structure_get_size (GNode * structure);
void dmap_structure_increase_by_predicted_size (GNode * structure,
						guint size);

typedef enum
{
	DMAP_TYPE_BYTE = 0x0001,
	DMAP_TYPE_SIGNED_INT = 0x0002,
	DMAP_TYPE_SHORT = 0x0003,
	DMAP_TYPE_INT = 0x0005,
	DMAP_TYPE_INT64 = 0x0007,
	DMAP_TYPE_STRING = 0x0009,
	DMAP_TYPE_DATE = 0x000A,
	DMAP_TYPE_VERSION = 0x000B,
	DMAP_TYPE_CONTAINER = 0x000C,
	DMAP_TYPE_POINTER = 0x002A
} DMAPType;

typedef struct _DMAPContentCodeDefinition DMAPContentCodeDefinition;

struct _DMAPContentCodeDefinition
{
	DMAPContentCode code;
	gint32 int_code;
	const gchar *name;
	const gchar *string;
	DMAPType type;
};

const DMAPContentCodeDefinition * dmap_content_codes (guint * number);
gint32 dmap_content_code_string_as_int32 (const gchar * str);
const gchar *dmap_content_code_name (DMAPContentCode code);
DMAPType dmap_content_code_dmap_type (DMAPContentCode code);
const gchar *dmap_content_code_string (DMAPContentCode code);

DMAPContentCode dmap_content_code_read_from_buffer (const gchar * buf);

G_END_DECLS
#endif