Debian Codegraph @

src/ezconfig0.c

raw symbols SCIP
1 /*
2 * ezstream - source client for Icecast with external en-/decoder support
3 * Copyright (C) 2003, 2004, 2005, 2006 Ed Zaleski <[email protected]>
4 * Copyright (C) 2007, 2009, 2015 Moritz Grimm <[email protected]>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
19
20 #ifdef HAVE_CONFIG_Hcxx . . $ `<built-in>:412:9`!
21 # include "config.h"cxx . . $ `<file>/src/config.h`/
22 #endif
23
24 #include "compat.h"cxx . . $ `<file>/compat/compat.h`/
25
26 #include <ctype.h>
27 #include <stdio.h>
28 #include <stdlib.h>
29 #include <string.h>
30
31 #include "ezconfig0.h"cxx . . $ `<file>/src/ezconfig0.h`/
32 #include "log.h"cxx . . $ `<file>/src/log.h`/
33 #include "util.h"cxx . . $ `<file>/src/util.h`/
34
35 #include <libxml/parser.h>
36
37 #define XML_CHARcxx . . $ `src/ezconfig0.c:37:9`!(s) (const xmlChar *)(s)
38 #define STD_CHARcxx . . $ `src/ezconfig0.c:38:9`!(s) (const char *)(s)
39
40 static EZCONFIGcxx . . $ EZCONFIG# ezConfigcxx . . $ ezConfig.;
41 static const char *blankStringcxx . . $ blankString. = "";
42
43 unsigned int checkDecoderLinecxx . . $ checkDecoderLine(3b738b2b5f20ad0f).(const char *, const char *, long);
44 unsigned int checkEncoderLinecxx . . $ checkEncoderLine(3b738b2b5f20ad0f).(const char *, const char *, long);
45 unsigned int checkFormatLinecxx . . $ checkFormatLine(3b738b2b5f20ad0f).(const char *, const char *, long);
46
47 EZCONFIGcxx . . $ EZCONFIG# *
48 getEZConfigcxx . . $ getEZConfig(50f9941a0a2c49e7).(void)
49 {
50 return (&ezConfigcxx . . $ ezConfig.);
51 }
52
53 const char *
54 getFormatEncodercxx . . $ getFormatEncoder(fb58d2e09a2a1ce6).(const char *format)
55 {
56 int i;
57
58 for (i = 0; i < ezConfigcxx . . $ ezConfig..numEncoderDecoderscxx . . $ tag_EZCONFIG#numEncoderDecoders.; i++) {
59 if (ezConfigcxx . . $ ezConfig..encoderDecoderscxx . . $ tag_EZCONFIG#encoderDecoders.[i] != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`! &&
60 ezConfigcxx . . $ ezConfig..encoderDecoderscxx . . $ tag_EZCONFIG#encoderDecoders.[i]->formatcxx . . $ tag_FORMAT_ENCDEC#format. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`! &&
61 strcmpcxx . . $ strcmp(5ae29d726ae57f88).(ezConfigcxx . . $ ezConfig..encoderDecoderscxx . . $ tag_EZCONFIG#encoderDecoders.[i]->formatcxx . . $ tag_FORMAT_ENCDEC#format., format) == 0) {
62 if (ezConfigcxx . . $ ezConfig..encoderDecoderscxx . . $ tag_EZCONFIG#encoderDecoders.[i]->encodercxx . . $ tag_FORMAT_ENCDEC#encoder. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!)
63 return (ezConfigcxx . . $ ezConfig..encoderDecoderscxx . . $ tag_EZCONFIG#encoderDecoders.[i]->encodercxx . . $ tag_FORMAT_ENCDEC#encoder.);
64 else
65 return (blankStringcxx . . $ blankString.);
66 }
67 }
68
69 return (blankStringcxx . . $ blankString.);
70 }
71
72 const char *
73 getFormatDecodercxx . . $ getFormatDecoder(fb58d2e09a2a1ce6).(const char *match)
74 {
75 int i;
76
77 for (i = 0; i < ezConfigcxx . . $ ezConfig..numEncoderDecoderscxx . . $ tag_EZCONFIG#numEncoderDecoders.; i++) {
78 if (ezConfigcxx . . $ ezConfig..encoderDecoderscxx . . $ tag_EZCONFIG#encoderDecoders.[i] != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`! &&
79 ezConfigcxx . . $ ezConfig..encoderDecoderscxx . . $ tag_EZCONFIG#encoderDecoders.[i]->matchcxx . . $ tag_FORMAT_ENCDEC#match. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`! &&
80 strcmpcxx . . $ strcmp(5ae29d726ae57f88).(ezConfigcxx . . $ ezConfig..encoderDecoderscxx . . $ tag_EZCONFIG#encoderDecoders.[i]->matchcxx . . $ tag_FORMAT_ENCDEC#match., match) == 0) {
81 if (ezConfigcxx . . $ ezConfig..encoderDecoderscxx . . $ tag_EZCONFIG#encoderDecoders.[i]->decodercxx . . $ tag_FORMAT_ENCDEC#decoder. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!)
82 return (ezConfigcxx . . $ ezConfig..encoderDecoderscxx . . $ tag_EZCONFIG#encoderDecoders.[i]->decodercxx . . $ tag_FORMAT_ENCDEC#decoder.);
83 else
84 return (blankStringcxx . . $ blankString.);
85 }
86 }
87
88 return (blankStringcxx . . $ blankString.);
89 }
90
91 int
92 parseConfigcxx . . $ parseConfig(5c4306d8553b3696).(const char *fileName)
93 {
94 xmlDocPtrcxx . . $ xmlDocPtr# doc;
95 xmlNodePtrcxx . . $ xmlNodePtr# cur;
96 xmlCharcxx . . $ xmlChar# *ls_xmlContentPtr;
97 int program_set, reconnect_set, shuffle_set,
98 streamOnce_set, svrinfopublic_set,
99 refresh_set;
100 unsigned int config_error;
101
102 xmlLineNumbersDefaultcxx . . $ xmlLineNumbersDefault(7864480464b09eea).(1);
103 if ((doc = xmlParseFilecxx . . $ xmlParseFile(c66d212a4d76caed).(fileName)) == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
104 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s: Parse error (not well-formed XML.)\n", fileName);
105 return (0);
106 }
107
108 cur = xmlDocGetRootElementcxx . . $ xmlDocGetRootElement(53aa9a676bd496f2).(doc);
109
110 if (cur == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
111 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s: Parse error (empty XML document.)\n", fileName);
112 xmlFreeDoccxx . . $ xmlFreeDoc(42de24d0ab3f771).(doc);
113 return (0);
114 }
115
116 memsetcxx . . $ memset(d1de1e4fb215f1c6).(&ezConfigcxx . . $ ezConfig., 0, sizeof(ezConfigcxx . . $ ezConfig.));
117 ezConfigcxx . . $ ezConfig..metadataRefreshIntervalcxx . . $ tag_EZCONFIG#metadataRefreshInterval. = -1;
118
119 config_error = 0;
120 program_set = 0;
121 reconnect_set = 0;
122 refresh_set = 0;
123 shuffle_set = 0;
124 streamOnce_set = 0;
125 svrinfopublic_set = 0;
126
127 for (cur = cur->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`!; cur != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; cur = cur->nextcxx . . $ _xmlNode#next.) {
128 if (!xmlStrcmpcxx . . $ xmlStrcmp(e46526da1a64e2fc).(cur->namecxx . . $ _xmlNode#name., (const xmlCharcxx . . $ xmlChar# *)"url")) {
129 if (ezConfigcxx . . $ ezConfig..URLcxx . . $ tag_EZCONFIG#URL. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
130 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: Cannot have multiple <url> elements\n",
131 fileName, xmlGetLineNocxx . . $ xmlGetLineNo(1af19c3869e338ea).(cur));
132 config_error++;
133 continue;
134 }
135 if (cur->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`! != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
136 ls_xmlContentPtr = xmlNodeListGetStringcxx . . $ xmlNodeListGetString(a2de33c63125b8c).(doc, cur->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`!, 1);
137 ezConfigcxx . . $ ezConfig..URLcxx . . $ tag_EZCONFIG#URL. = strdupcxx . . $ strdup(a8b8e32347182212).(STD_CHARcxx . . $ `src/ezconfig0.c:38:9`!(ls_xmlContentPtr));
138 xmlFreecxx . . $ xmlFree.(ls_xmlContentPtr);
139 }
140 }
141 if (!xmlStrcmpcxx . . $ xmlStrcmp(e46526da1a64e2fc).(cur->namecxx . . $ _xmlNode#name., (const xmlCharcxx . . $ xmlChar# *)"sourceuser")) {
142 if (ezConfigcxx . . $ ezConfig..usernamecxx . . $ tag_EZCONFIG#username. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
143 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: Cannot have multiple <sourceuser> elements\n",
144 fileName, xmlGetLineNocxx . . $ xmlGetLineNo(1af19c3869e338ea).(cur));
145 config_error++;
146 continue;
147 }
148 if (cur->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`! != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
149 ls_xmlContentPtr = xmlNodeListGetStringcxx . . $ xmlNodeListGetString(a2de33c63125b8c).(doc, cur->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`!, 1);
150 ezConfigcxx . . $ ezConfig..usernamecxx . . $ tag_EZCONFIG#username. = strdupcxx . . $ strdup(a8b8e32347182212).(STD_CHARcxx . . $ `src/ezconfig0.c:38:9`!(ls_xmlContentPtr));
151 xmlFreecxx . . $ xmlFree.(ls_xmlContentPtr);
152 }
153 }
154 if (!xmlStrcmpcxx . . $ xmlStrcmp(e46526da1a64e2fc).(cur->namecxx . . $ _xmlNode#name., (const xmlCharcxx . . $ xmlChar# *)"sourcepassword")) {
155 if (ezConfigcxx . . $ ezConfig..passwordcxx . . $ tag_EZCONFIG#password. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
156 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: Cannot have multiple <sourcepassword> elements\n",
157 fileName, xmlGetLineNocxx . . $ xmlGetLineNo(1af19c3869e338ea).(cur));
158 config_error++;
159 continue;
160 }
161 if (cur->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`! != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
162 ls_xmlContentPtr = xmlNodeListGetStringcxx . . $ xmlNodeListGetString(a2de33c63125b8c).(doc, cur->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`!, 1);
163 ezConfigcxx . . $ ezConfig..passwordcxx . . $ tag_EZCONFIG#password. = strdupcxx . . $ strdup(a8b8e32347182212).(STD_CHARcxx . . $ `src/ezconfig0.c:38:9`!(ls_xmlContentPtr));
164 xmlFreecxx . . $ xmlFree.(ls_xmlContentPtr);
165 }
166 }
167 if (!xmlStrcmpcxx . . $ xmlStrcmp(e46526da1a64e2fc).(cur->namecxx . . $ _xmlNode#name., (const xmlCharcxx . . $ xmlChar# *)"format")) {
168 if (ezConfigcxx . . $ ezConfig..formatcxx . . $ tag_EZCONFIG#format. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
169 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: Cannot have multiple <format> elements\n",
170 fileName, xmlGetLineNocxx . . $ xmlGetLineNo(1af19c3869e338ea).(cur));
171 config_error++;
172 continue;
173 }
174 if (cur->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`! != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
175 char *p;
176
177 ls_xmlContentPtr = xmlNodeListGetStringcxx . . $ xmlNodeListGetString(a2de33c63125b8c).(doc, cur->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`!, 1);
178 ezConfigcxx . . $ ezConfig..formatcxx . . $ tag_EZCONFIG#format. = strdupcxx . . $ strdup(a8b8e32347182212).(STD_CHARcxx . . $ `src/ezconfig0.c:38:9`!(ls_xmlContentPtr));
179 xmlFreecxx . . $ xmlFree.(ls_xmlContentPtr);
180 for (p = ezConfigcxx . . $ ezConfig..formatcxx . . $ tag_EZCONFIG#format.; *p != '\0'; p++)
181 *p = (char)touppercxx . . $ `<external>/17904084882347303253/ctype.h:221:11`!((int)*p);
182 }
183 }
184 if (!xmlStrcmpcxx . . $ xmlStrcmp(e46526da1a64e2fc).(cur->namecxx . . $ _xmlNode#name., (const xmlCharcxx . . $ xmlChar# *)"filename")) {
185 if (ezConfigcxx . . $ ezConfig..fileNamecxx . . $ tag_EZCONFIG#fileName. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
186 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: Cannot have multiple <filename> elements\n",
187 fileName, xmlGetLineNocxx . . $ xmlGetLineNo(1af19c3869e338ea).(cur));
188 config_error++;
189 continue;
190 }
191 if (cur->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`! != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
192 ls_xmlContentPtr = xmlNodeListGetStringcxx . . $ xmlNodeListGetString(a2de33c63125b8c).(doc, cur->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`!, 1);
193 if (strlencxx . . $ strlen(751346f8406fd082).(STD_CHARcxx . . $ `src/ezconfig0.c:38:9`!(ls_xmlContentPtr)) > PATH_MAXcxx . . $ `<external>/6347054901304145714/limits.h:13:9`! - 1) {
194 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: Path or filename in <filename> is too long\n",
195 fileName, xmlGetLineNocxx . . $ xmlGetLineNo(1af19c3869e338ea).(cur));
196 config_error++;
197 continue;
198 }
199 ezConfigcxx . . $ ezConfig..fileNamecxx . . $ tag_EZCONFIG#fileName. = strdupcxx . . $ strdup(a8b8e32347182212).(STD_CHARcxx . . $ `src/ezconfig0.c:38:9`!(ls_xmlContentPtr));
200 xmlFreecxx . . $ xmlFree.(ls_xmlContentPtr);
201 }
202 }
203 if (!xmlStrcmpcxx . . $ xmlStrcmp(e46526da1a64e2fc).(cur->namecxx . . $ _xmlNode#name., (const xmlCharcxx . . $ xmlChar# *)"metadata_progname")) {
204 if (ezConfigcxx . . $ ezConfig..metadataProgramcxx . . $ tag_EZCONFIG#metadataProgram. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
205 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: Cannot have multiple <metadata_progname> elements\n",
206 fileName, xmlGetLineNocxx . . $ xmlGetLineNo(1af19c3869e338ea).(cur));
207 config_error++;
208 continue;
209 }
210 if (cur->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`! != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
211 ls_xmlContentPtr = xmlNodeListGetStringcxx . . $ xmlNodeListGetString(a2de33c63125b8c).(doc, cur->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`!, 1);
212 if (strlencxx . . $ strlen(751346f8406fd082).(STD_CHARcxx . . $ `src/ezconfig0.c:38:9`!(ls_xmlContentPtr)) > PATH_MAXcxx . . $ `<external>/6347054901304145714/limits.h:13:9`! - 1) {
213 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: Path or filename in <metadata_progname> is too long\n",
214 fileName, xmlGetLineNocxx . . $ xmlGetLineNo(1af19c3869e338ea).(cur));
215 config_error++;
216 continue;
217 }
218 ezConfigcxx . . $ ezConfig..metadataProgramcxx . . $ tag_EZCONFIG#metadataProgram. = strdupcxx . . $ strdup(a8b8e32347182212).(STD_CHARcxx . . $ `src/ezconfig0.c:38:9`!(ls_xmlContentPtr));
219 xmlFreecxx . . $ xmlFree.(ls_xmlContentPtr);
220 }
221 }
222 if (!xmlStrcmpcxx . . $ xmlStrcmp(e46526da1a64e2fc).(cur->namecxx . . $ _xmlNode#name., (const xmlCharcxx . . $ xmlChar# *)"metadata_format")) {
223 if (ezConfigcxx . . $ ezConfig..metadataFormatcxx . . $ tag_EZCONFIG#metadataFormat. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
224 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: Cannot have multiple <metadata_format> elements\n",
225 fileName, xmlGetLineNocxx . . $ xmlGetLineNo(1af19c3869e338ea).(cur));
226 config_error++;
227 continue;
228 }
229 if (cur->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`! != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
230 unsigned int ret;
231
232 ls_xmlContentPtr = xmlNodeListGetStringcxx . . $ xmlNodeListGetString(a2de33c63125b8c).(doc, cur->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`!, 1);
233 ezConfigcxx . . $ ezConfig..metadataFormatcxx . . $ tag_EZCONFIG#metadataFormat. = strdupcxx . . $ strdup(a8b8e32347182212).(STD_CHARcxx . . $ `src/ezconfig0.c:38:9`!(ls_xmlContentPtr));
234 xmlFreecxx . . $ xmlFree.(ls_xmlContentPtr);
235 if ((ret = checkFormatLinecxx . . $ checkFormatLine(3b738b2b5f20ad0f).(ezConfigcxx . . $ ezConfig..metadataFormatcxx . . $ tag_EZCONFIG#metadataFormat.,
236 fileName, xmlGetLineNocxx . . $ xmlGetLineNo(1af19c3869e338ea).(cur)))
237 > 0) {
238 config_error += ret;
239 continue;
240 }
241 }
242 }
243 if (!xmlStrcmpcxx . . $ xmlStrcmp(e46526da1a64e2fc).(cur->namecxx . . $ _xmlNode#name., (const xmlCharcxx . . $ xmlChar# *)"metadata_refreshinterval")) {
244 if (refresh_set) {
245 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: Cannot have multiple <metadata_refreshinterval> elements\n",
246 fileName, xmlGetLineNocxx . . $ xmlGetLineNo(1af19c3869e338ea).(cur));
247 config_error++;
248 continue;
249 }
250 if (cur->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`! != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
251 const char *errstr;
252 ls_xmlContentPtr = xmlNodeListGetStringcxx . . $ xmlNodeListGetString(a2de33c63125b8c).(doc, cur->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`!, 1);
253 ezConfigcxx . . $ ezConfig..metadataRefreshIntervalcxx . . $ tag_EZCONFIG#metadataRefreshInterval. = (int)strtonumcxx . . $ strtonum(2426cb88955c24b7).(STD_CHARcxx . . $ `src/ezconfig0.c:38:9`!(ls_xmlContentPtr), -1LL, (long long)INT_MAXcxx . . $ `<external>/2419331716647297546/limits.h:120:9`!, &errstr);
254 if (errstr) {
255 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: In <metadata_refreshinterval>: '%s' is %s\n",
256 fileName, xmlGetLineNocxx . . $ xmlGetLineNo(1af19c3869e338ea).(cur), STD_CHARcxx . . $ `src/ezconfig0.c:38:9`!(ls_xmlContentPtr), errstr);
257 config_error++;
258 continue;
259 }
260 xmlFreecxx . . $ xmlFree.(ls_xmlContentPtr);
261 refresh_set = 1;
262 }
263 }
264 if (!xmlStrcmpcxx . . $ xmlStrcmp(e46526da1a64e2fc).(cur->namecxx . . $ _xmlNode#name., (const xmlCharcxx . . $ xmlChar# *)"playlist_program")) {
265 if (program_set) {
266 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: Cannot have multiple <playlist_program> elements\n",
267 fileName, xmlGetLineNocxx . . $ xmlGetLineNo(1af19c3869e338ea).(cur));
268 config_error++;
269 continue;
270 }
271 if (cur->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`! != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
272 const char *errstr;
273
274 ls_xmlContentPtr = xmlNodeListGetStringcxx . . $ xmlNodeListGetString(a2de33c63125b8c).(doc, cur->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`!, 1);
275 ezConfigcxx . . $ ezConfig..fileNameIsProgramcxx . . $ tag_EZCONFIG#fileNameIsProgram. = (int)strtonumcxx . . $ strtonum(2426cb88955c24b7).(STD_CHARcxx . . $ `src/ezconfig0.c:38:9`!(ls_xmlContentPtr), 0LL, 1LL, &errstr);
276 if (errstr) {
277 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: <playlist_program> may only contain 1 or 0\n",
278 fileName, xmlGetLineNocxx . . $ xmlGetLineNo(1af19c3869e338ea).(cur));
279 config_error++;
280 continue;
281 }
282 xmlFreecxx . . $ xmlFree.(ls_xmlContentPtr);
283 program_set = 1;
284 }
285 }
286 if (!xmlStrcmpcxx . . $ xmlStrcmp(e46526da1a64e2fc).(cur->namecxx . . $ _xmlNode#name., (const xmlCharcxx . . $ xmlChar# *)"shuffle")) {
287 if (shuffle_set) {
288 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: Cannot have multiple <shuffle> elements\n",
289 fileName, xmlGetLineNocxx . . $ xmlGetLineNo(1af19c3869e338ea).(cur));
290 config_error++;
291 continue;
292 }
293 if (cur->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`! != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
294 const char *errstr;
295
296 ls_xmlContentPtr = xmlNodeListGetStringcxx . . $ xmlNodeListGetString(a2de33c63125b8c).(doc, cur->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`!, 1);
297 ezConfigcxx . . $ ezConfig..shufflecxx . . $ tag_EZCONFIG#shuffle. = (int)strtonumcxx . . $ strtonum(2426cb88955c24b7).(STD_CHARcxx . . $ `src/ezconfig0.c:38:9`!(ls_xmlContentPtr), 0LL, 1LL, &errstr);
298 if (errstr) {
299 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: <shuffle> may only contain 1 or 0\n",
300 fileName, xmlGetLineNocxx . . $ xmlGetLineNo(1af19c3869e338ea).(cur));
301 config_error++;
302 continue;
303 }
304 xmlFreecxx . . $ xmlFree.(ls_xmlContentPtr);
305 shuffle_set = 1;
306 }
307 }
308 if (!xmlStrcmpcxx . . $ xmlStrcmp(e46526da1a64e2fc).(cur->namecxx . . $ _xmlNode#name., (const xmlCharcxx . . $ xmlChar# *)"stream_once")) {
309 if (streamOnce_set) {
310 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: Cannot have multiple <stream_once> elements\n",
311 fileName, xmlGetLineNocxx . . $ xmlGetLineNo(1af19c3869e338ea).(cur));
312 config_error++;
313 continue;
314 }
315 if (cur->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`! != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
316 const char *errstr;
317
318 ls_xmlContentPtr = xmlNodeListGetStringcxx . . $ xmlNodeListGetString(a2de33c63125b8c).(doc, cur->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`!, 1);
319 ezConfigcxx . . $ ezConfig..streamOncecxx . . $ tag_EZCONFIG#streamOnce. = (int)strtonumcxx . . $ strtonum(2426cb88955c24b7).(STD_CHARcxx . . $ `src/ezconfig0.c:38:9`!(ls_xmlContentPtr), 0LL, 1LL, &errstr);
320 if (errstr) {
321 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: <stream_once> may only contain 1 or 0\n",
322 fileName, xmlGetLineNocxx . . $ xmlGetLineNo(1af19c3869e338ea).(cur));
323 config_error++;
324 continue;
325 }
326 xmlFreecxx . . $ xmlFree.(ls_xmlContentPtr);
327 streamOnce_set = 1;
328 }
329 }
330 if (!xmlStrcmpcxx . . $ xmlStrcmp(e46526da1a64e2fc).(cur->namecxx . . $ _xmlNode#name., (const xmlCharcxx . . $ xmlChar# *)"reconnect_tries")) {
331 if (reconnect_set) {
332 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: Cannot have multiple <reconnect_tries> elements\n",
333 fileName, xmlGetLineNocxx . . $ xmlGetLineNo(1af19c3869e338ea).(cur));
334 config_error++;
335 continue;
336 }
337 if (cur->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`! != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
338 const char *errstr;
339
340 ls_xmlContentPtr = xmlNodeListGetStringcxx . . $ xmlNodeListGetString(a2de33c63125b8c).(doc, cur->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`!, 1);
341 ezConfigcxx . . $ ezConfig..reconnectAttemptscxx . . $ tag_EZCONFIG#reconnectAttempts. = (unsigned int)strtonumcxx . . $ strtonum(2426cb88955c24b7).(STD_CHARcxx . . $ `src/ezconfig0.c:38:9`!(ls_xmlContentPtr), 0LL, (long long)UINT_MAXcxx . . $ `<external>/2419331716647297546/limits.h:124:9`!, &errstr);
342 if (errstr) {
343 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: In <reconnect_tries>: '%s' is %s\n",
344 fileName, xmlGetLineNocxx . . $ xmlGetLineNo(1af19c3869e338ea).(cur), STD_CHARcxx . . $ `src/ezconfig0.c:38:9`!(ls_xmlContentPtr), errstr);
345 config_error++;
346 continue;
347 }
348 xmlFreecxx . . $ xmlFree.(ls_xmlContentPtr);
349 reconnect_set = 1;
350 }
351 }
352 if (!xmlStrcmpcxx . . $ xmlStrcmp(e46526da1a64e2fc).(cur->namecxx . . $ _xmlNode#name., (const xmlCharcxx . . $ xmlChar# *)"svrinfoname")) {
353 if (ezConfigcxx . . $ ezConfig..serverNamecxx . . $ tag_EZCONFIG#serverName. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
354 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: Cannot have multiple <svrinfoname> elements\n",
355 fileName, xmlGetLineNocxx . . $ xmlGetLineNo(1af19c3869e338ea).(cur));
356 config_error++;
357 continue;
358 }
359 if (cur->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`! != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
360 ls_xmlContentPtr = xmlNodeListGetStringcxx . . $ xmlNodeListGetString(a2de33c63125b8c).(doc, cur->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`!, 1);
361 ezConfigcxx . . $ ezConfig..serverNamecxx . . $ tag_EZCONFIG#serverName. = strdupcxx . . $ strdup(a8b8e32347182212).(STD_CHARcxx . . $ `src/ezconfig0.c:38:9`!(ls_xmlContentPtr));
362 xmlFreecxx . . $ xmlFree.(ls_xmlContentPtr);
363 }
364 }
365 if (!xmlStrcmpcxx . . $ xmlStrcmp(e46526da1a64e2fc).(cur->namecxx . . $ _xmlNode#name., (const xmlCharcxx . . $ xmlChar# *)"svrinfourl")) {
366 if (ezConfigcxx . . $ ezConfig..serverURLcxx . . $ tag_EZCONFIG#serverURL. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
367 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: Cannot have multiple <svrinfourl> elements\n",
368 fileName, xmlGetLineNocxx . . $ xmlGetLineNo(1af19c3869e338ea).(cur));
369 config_error++;
370 continue;
371 }
372 if (cur->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`! != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
373 ls_xmlContentPtr = xmlNodeListGetStringcxx . . $ xmlNodeListGetString(a2de33c63125b8c).(doc, cur->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`!, 1);
374 ezConfigcxx . . $ ezConfig..serverURLcxx . . $ tag_EZCONFIG#serverURL. = strdupcxx . . $ strdup(a8b8e32347182212).(STD_CHARcxx . . $ `src/ezconfig0.c:38:9`!(ls_xmlContentPtr));
375 xmlFreecxx . . $ xmlFree.(ls_xmlContentPtr);
376 }
377 }
378 if (!xmlStrcmpcxx . . $ xmlStrcmp(e46526da1a64e2fc).(cur->namecxx . . $ _xmlNode#name., (const xmlCharcxx . . $ xmlChar# *)"svrinfogenre")) {
379 if (ezConfigcxx . . $ ezConfig..serverGenrecxx . . $ tag_EZCONFIG#serverGenre. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
380 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: Cannot have multiple <svrinfogenre> elements\n",
381 fileName, xmlGetLineNocxx . . $ xmlGetLineNo(1af19c3869e338ea).(cur));
382 config_error++;
383 continue;
384 }
385 if (cur->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`! != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
386 ls_xmlContentPtr = xmlNodeListGetStringcxx . . $ xmlNodeListGetString(a2de33c63125b8c).(doc, cur->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`!, 1);
387 ezConfigcxx . . $ ezConfig..serverGenrecxx . . $ tag_EZCONFIG#serverGenre. = strdupcxx . . $ strdup(a8b8e32347182212).(STD_CHARcxx . . $ `src/ezconfig0.c:38:9`!(ls_xmlContentPtr));
388 xmlFreecxx . . $ xmlFree.(ls_xmlContentPtr);
389 }
390 }
391 if (!xmlStrcmpcxx . . $ xmlStrcmp(e46526da1a64e2fc).(cur->namecxx . . $ _xmlNode#name., (const xmlCharcxx . . $ xmlChar# *)"svrinfodescription")) {
392 if (ezConfigcxx . . $ ezConfig..serverDescriptioncxx . . $ tag_EZCONFIG#serverDescription. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
393 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: Cannot have multiple <svrinfodescription> elements\n",
394 fileName, xmlGetLineNocxx . . $ xmlGetLineNo(1af19c3869e338ea).(cur));
395 config_error++;
396 continue;
397 }
398 if (cur->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`! != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
399 ls_xmlContentPtr = xmlNodeListGetStringcxx . . $ xmlNodeListGetString(a2de33c63125b8c).(doc, cur->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`!, 1);
400 ezConfigcxx . . $ ezConfig..serverDescriptioncxx . . $ tag_EZCONFIG#serverDescription. = strdupcxx . . $ strdup(a8b8e32347182212).(STD_CHARcxx . . $ `src/ezconfig0.c:38:9`!(ls_xmlContentPtr));
401 xmlFreecxx . . $ xmlFree.(ls_xmlContentPtr);
402 }
403 }
404 if (!xmlStrcmpcxx . . $ xmlStrcmp(e46526da1a64e2fc).(cur->namecxx . . $ _xmlNode#name., (const xmlCharcxx . . $ xmlChar# *)"svrinfobitrate")) {
405 if (ezConfigcxx . . $ ezConfig..serverBitratecxx . . $ tag_EZCONFIG#serverBitrate. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
406 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: Cannot have multiple <svrinfobitrate> elements\n",
407 fileName, xmlGetLineNocxx . . $ xmlGetLineNo(1af19c3869e338ea).(cur));
408 config_error++;
409 continue;
410 }
411 if (cur->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`! != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
412 ls_xmlContentPtr = xmlNodeListGetStringcxx . . $ xmlNodeListGetString(a2de33c63125b8c).(doc, cur->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`!, 1);
413 ezConfigcxx . . $ ezConfig..serverBitratecxx . . $ tag_EZCONFIG#serverBitrate. = strdupcxx . . $ strdup(a8b8e32347182212).(STD_CHARcxx . . $ `src/ezconfig0.c:38:9`!(ls_xmlContentPtr));
414 xmlFreecxx . . $ xmlFree.(ls_xmlContentPtr);
415 }
416 }
417
418 if (!xmlStrcmpcxx . . $ xmlStrcmp(e46526da1a64e2fc).(cur->namecxx . . $ _xmlNode#name., (const xmlCharcxx . . $ xmlChar# *)"svrinfochannels")) {
419 if (ezConfigcxx . . $ ezConfig..serverChannelscxx . . $ tag_EZCONFIG#serverChannels. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
420 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: Cannot have multiple <svrinfochannels> elements\n",
421 fileName, xmlGetLineNocxx . . $ xmlGetLineNo(1af19c3869e338ea).(cur));
422 config_error++;
423 continue;
424 }
425 if (cur->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`! != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
426 ls_xmlContentPtr = xmlNodeListGetStringcxx . . $ xmlNodeListGetString(a2de33c63125b8c).(doc, cur->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`!, 1);
427 ezConfigcxx . . $ ezConfig..serverChannelscxx . . $ tag_EZCONFIG#serverChannels. = strdupcxx . . $ strdup(a8b8e32347182212).(STD_CHARcxx . . $ `src/ezconfig0.c:38:9`!(ls_xmlContentPtr));
428 xmlFreecxx . . $ xmlFree.(ls_xmlContentPtr);
429 }
430 }
431 if (!xmlStrcmpcxx . . $ xmlStrcmp(e46526da1a64e2fc).(cur->namecxx . . $ _xmlNode#name., (const xmlCharcxx . . $ xmlChar# *)"svrinfosamplerate")) {
432 if (ezConfigcxx . . $ ezConfig..serverSampleratecxx . . $ tag_EZCONFIG#serverSamplerate. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
433 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: Cannot have multiple <svrinfosamplerate> elements\n",
434 fileName, xmlGetLineNocxx . . $ xmlGetLineNo(1af19c3869e338ea).(cur));
435 config_error++;
436 continue;
437 }
438 if (cur->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`! != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
439 ls_xmlContentPtr = xmlNodeListGetStringcxx . . $ xmlNodeListGetString(a2de33c63125b8c).(doc, cur->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`!, 1);
440 ezConfigcxx . . $ ezConfig..serverSampleratecxx . . $ tag_EZCONFIG#serverSamplerate. = strdupcxx . . $ strdup(a8b8e32347182212).(STD_CHARcxx . . $ `src/ezconfig0.c:38:9`!(ls_xmlContentPtr));
441 xmlFreecxx . . $ xmlFree.(ls_xmlContentPtr);
442 }
443 }
444 if (!xmlStrcmpcxx . . $ xmlStrcmp(e46526da1a64e2fc).(cur->namecxx . . $ _xmlNode#name., (const xmlCharcxx . . $ xmlChar# *)"svrinfoquality")) {
445 if (ezConfigcxx . . $ ezConfig..serverQualitycxx . . $ tag_EZCONFIG#serverQuality. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
446 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: Cannot have multiple <svrinfoquality> elements\n",
447 fileName, xmlGetLineNocxx . . $ xmlGetLineNo(1af19c3869e338ea).(cur));
448 config_error++;
449 continue;
450 }
451 if (cur->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`! != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
452 ls_xmlContentPtr = xmlNodeListGetStringcxx . . $ xmlNodeListGetString(a2de33c63125b8c).(doc, cur->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`!, 1);
453 ezConfigcxx . . $ ezConfig..serverQualitycxx . . $ tag_EZCONFIG#serverQuality. = strdupcxx . . $ strdup(a8b8e32347182212).(STD_CHARcxx . . $ `src/ezconfig0.c:38:9`!(ls_xmlContentPtr));
454 xmlFreecxx . . $ xmlFree.(ls_xmlContentPtr);
455 }
456 }
457 if (!xmlStrcmpcxx . . $ xmlStrcmp(e46526da1a64e2fc).(cur->namecxx . . $ _xmlNode#name., (const xmlCharcxx . . $ xmlChar# *)"svrinfopublic")) {
458 if (svrinfopublic_set) {
459 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: Cannot have multiple <svrinfopublic> elements\n",
460 fileName, xmlGetLineNocxx . . $ xmlGetLineNo(1af19c3869e338ea).(cur));
461 config_error++;
462 continue;
463 }
464 if (cur->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`! != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
465 const char *errstr;
466
467 ls_xmlContentPtr = xmlNodeListGetStringcxx . . $ xmlNodeListGetString(a2de33c63125b8c).(doc, cur->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`!, 1);
468 ezConfigcxx . . $ ezConfig..serverPubliccxx . . $ tag_EZCONFIG#serverPublic. = (int)strtonumcxx . . $ strtonum(2426cb88955c24b7).(STD_CHARcxx . . $ `src/ezconfig0.c:38:9`!(ls_xmlContentPtr), 0LL, 1LL, &errstr);
469 if (errstr) {
470 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: <svrinfopublic> may only contain 1 or 0\n",
471 fileName, xmlGetLineNocxx . . $ xmlGetLineNo(1af19c3869e338ea).(cur));
472 config_error++;
473 continue;
474 }
475 xmlFreecxx . . $ xmlFree.(ls_xmlContentPtr);
476 svrinfopublic_set = 1;
477 }
478 }
479 if (!xmlStrcmpcxx . . $ xmlStrcmp(e46526da1a64e2fc).(cur->namecxx . . $ _xmlNode#name., (const xmlCharcxx . . $ xmlChar# *)"reencode")) {
480 xmlNodePtrcxx . . $ xmlNodePtr# cur2;
481 int enable_set;
482
483 enable_set = 0;
484 for (cur2 = cur->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`!; cur2 != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
485 cur2 = cur2->nextcxx . . $ _xmlNode#next.) {
486 if (!xmlStrcmpcxx . . $ xmlStrcmp(e46526da1a64e2fc).(cur2->namecxx . . $ _xmlNode#name., (const xmlCharcxx . . $ xmlChar# *)"enable")) {
487 if (enable_set) {
488 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: Cannot have multiple <enable> elements\n",
489 fileName, xmlGetLineNocxx . . $ xmlGetLineNo(1af19c3869e338ea).(cur));
490 config_error++;
491 continue;
492 }
493 if (cur2->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`! != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
494 const char *errstr;
495
496 ls_xmlContentPtr = xmlNodeListGetStringcxx . . $ xmlNodeListGetString(a2de33c63125b8c).(doc, cur2->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`!, 1);
497 ezConfigcxx . . $ ezConfig..reencodecxx . . $ tag_EZCONFIG#reencode. = (int)strtonumcxx . . $ strtonum(2426cb88955c24b7).(STD_CHARcxx . . $ `src/ezconfig0.c:38:9`!(ls_xmlContentPtr), 0LL, 1LL, &errstr);
498 if (errstr) {
499 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: <enable> may only contain 1 or 0\n",
500 fileName, xmlGetLineNocxx . . $ xmlGetLineNo(1af19c3869e338ea).(cur));
501 config_error++;
502 continue;
503 }
504 xmlFreecxx . . $ xmlFree.(ls_xmlContentPtr);
505 enable_set = 1;
506 }
507 }
508 if (!xmlStrcmpcxx . . $ xmlStrcmp(e46526da1a64e2fc).(cur2->namecxx . . $ _xmlNode#name., (const xmlCharcxx . . $ xmlChar# *)"encdec")) {
509 xmlNodePtrcxx . . $ xmlNodePtr# cur3;
510 FORMAT_ENCDECcxx . . $ FORMAT_ENCDEC# *pformatEncDec;
511
512 pformatEncDec = calloccxx . . $ calloc(63a7bf2941bfcd7a).(1UL, sizeof(FORMAT_ENCDECcxx . . $ FORMAT_ENCDEC#));
513
514 for (cur3 = cur2->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`!;
515 cur3 != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; cur3 = cur3->nextcxx . . $ _xmlNode#next.) {
516 if (!xmlStrcmpcxx . . $ xmlStrcmp(e46526da1a64e2fc).(cur3->namecxx . . $ _xmlNode#name., (const xmlCharcxx . . $ xmlChar# *)"format")) {
517 if (pformatEncDec->formatcxx . . $ tag_FORMAT_ENCDEC#format. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
518 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: Cannot have multiple <format> elements\n",
519 fileName, xmlGetLineNocxx . . $ xmlGetLineNo(1af19c3869e338ea).(cur3));
520 config_error++;
521 continue;
522 }
523 if (cur3->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`! != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
524 char *p;
525
526 ls_xmlContentPtr = xmlNodeListGetStringcxx . . $ xmlNodeListGetString(a2de33c63125b8c).(doc, cur3->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`!, 1);
527 pformatEncDec->formatcxx . . $ tag_FORMAT_ENCDEC#format. = strdupcxx . . $ strdup(a8b8e32347182212).(STD_CHARcxx . . $ `src/ezconfig0.c:38:9`!(ls_xmlContentPtr));
528 xmlFreecxx . . $ xmlFree.(ls_xmlContentPtr);
529 for (p = pformatEncDec->formatcxx . . $ tag_FORMAT_ENCDEC#format.; *p != '\0'; p++)
530 *p = (char)touppercxx . . $ `<external>/17904084882347303253/ctype.h:221:11`!((int)*p);
531 }
532 }
533 if (!xmlStrcmpcxx . . $ xmlStrcmp(e46526da1a64e2fc).(cur3->namecxx . . $ _xmlNode#name., (const xmlCharcxx . . $ xmlChar# *)"match")) {
534 if (pformatEncDec->matchcxx . . $ tag_FORMAT_ENCDEC#match. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
535 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: Cannot have multiple <match> elements\n",
536 fileName, xmlGetLineNocxx . . $ xmlGetLineNo(1af19c3869e338ea).(cur3));
537 config_error++;
538 continue;
539 }
540 if (cur3->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`! != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
541 char *p;
542
543 ls_xmlContentPtr = xmlNodeListGetStringcxx . . $ xmlNodeListGetString(a2de33c63125b8c).(doc, cur3->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`!, 1);
544 pformatEncDec->matchcxx . . $ tag_FORMAT_ENCDEC#match. = strdupcxx . . $ strdup(a8b8e32347182212).(STD_CHARcxx . . $ `src/ezconfig0.c:38:9`!(ls_xmlContentPtr));
545 xmlFreecxx . . $ xmlFree.(ls_xmlContentPtr);
546 for (p = pformatEncDec->matchcxx . . $ tag_FORMAT_ENCDEC#match.; *p != '\0'; p++)
547 *p = (char)tolowercxx . . $ `<external>/17904084882347303253/ctype.h:220:11`!((int)*p);
548 }
549 }
550 if (!xmlStrcmpcxx . . $ xmlStrcmp(e46526da1a64e2fc).(cur3->namecxx . . $ _xmlNode#name., (const xmlCharcxx . . $ xmlChar# *)"decode")) {
551 if (pformatEncDec->decodercxx . . $ tag_FORMAT_ENCDEC#decoder. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
552 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: Cannot have multiple <decode> elements\n",
553 fileName, xmlGetLineNocxx . . $ xmlGetLineNo(1af19c3869e338ea).(cur3));
554 config_error++;
555 continue;
556 }
557 if (cur3->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`! != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
558 unsigned int ret;
559
560 ls_xmlContentPtr = xmlNodeListGetStringcxx . . $ xmlNodeListGetString(a2de33c63125b8c).(doc, cur3->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`!, 1);
561 pformatEncDec->decodercxx . . $ tag_FORMAT_ENCDEC#decoder. = strdupcxx . . $ strdup(a8b8e32347182212).(STD_CHARcxx . . $ `src/ezconfig0.c:38:9`!(ls_xmlContentPtr));
562 xmlFreecxx . . $ xmlFree.(ls_xmlContentPtr);
563 if ((ret = checkDecoderLinecxx . . $ checkDecoderLine(3b738b2b5f20ad0f).(pformatEncDec->decodercxx . . $ tag_FORMAT_ENCDEC#decoder.,
564 fileName, xmlGetLineNocxx . . $ xmlGetLineNo(1af19c3869e338ea).(cur3)))
565 > 0) {
566 config_error += ret;
567 continue;
568 }
569 }
570 }
571 if (!xmlStrcmpcxx . . $ xmlStrcmp(e46526da1a64e2fc).(cur3->namecxx . . $ _xmlNode#name., (const xmlCharcxx . . $ xmlChar# *)"encode")) {
572 if (pformatEncDec->encodercxx . . $ tag_FORMAT_ENCDEC#encoder. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
573 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: Cannot have multiple <encode> elements\n",
574 fileName, xmlGetLineNocxx . . $ xmlGetLineNo(1af19c3869e338ea).(cur3));
575 config_error++;
576 continue;
577 }
578 if (cur3->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`! != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
579 unsigned int ret;
580
581 ls_xmlContentPtr = xmlNodeListGetStringcxx . . $ xmlNodeListGetString(a2de33c63125b8c).(doc, cur3->xmlChildrenNodecxx . . $ `<external>/15370075748625258712/tree.h:908:9`!, 1);
582 pformatEncDec->encodercxx . . $ tag_FORMAT_ENCDEC#encoder. = strdupcxx . . $ strdup(a8b8e32347182212).(STD_CHARcxx . . $ `src/ezconfig0.c:38:9`!(ls_xmlContentPtr));
583 xmlFreecxx . . $ xmlFree.(ls_xmlContentPtr);
584 if ((ret = checkEncoderLinecxx . . $ checkEncoderLine(3b738b2b5f20ad0f).(pformatEncDec->encodercxx . . $ tag_FORMAT_ENCDEC#encoder.,
585 fileName, xmlGetLineNocxx . . $ xmlGetLineNo(1af19c3869e338ea).(cur3)))
586 > 0) {
587 config_error += ret;
588 continue;
589 }
590 }
591 }
592 }
593 ezConfigcxx . . $ ezConfig..encoderDecoderscxx . . $ tag_EZCONFIG#encoderDecoders.[ezConfigcxx . . $ ezConfig..numEncoderDecoderscxx . . $ tag_EZCONFIG#numEncoderDecoders.] = pformatEncDec;
594 ezConfigcxx . . $ ezConfig..numEncoderDecoderscxx . . $ tag_EZCONFIG#numEncoderDecoders.++;
595 }
596 }
597 }
598 }
599
600 xmlFreeDoccxx . . $ xmlFreeDoc(42de24d0ab3f771).(doc);
601
602 if (config_error == 0)
603 return (1);
604
605 freeConfigcxx . . $ freeConfig(18df6c5910674b29).(&ezConfigcxx . . $ ezConfig.);
606 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%u configuration error(s) in %s\n",
607 config_error, fileName);
608
609 return (0);
610 }
611
612 void
613 freeConfigcxx . . $ freeConfig(18df6c5910674b29).(EZCONFIGcxx . . $ EZCONFIG# *cfg)
614 {
615 unsigned int i;
616
617 if (cfg == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!)
618 return;
619
620 freecxx . . $ free(5d22bdacc48458e8).(cfg->URLcxx . . $ tag_EZCONFIG#URL.);
621 freecxx . . $ free(5d22bdacc48458e8).(cfg->passwordcxx . . $ tag_EZCONFIG#password.);
622 freecxx . . $ free(5d22bdacc48458e8).(cfg->formatcxx . . $ tag_EZCONFIG#format.);
623 freecxx . . $ free(5d22bdacc48458e8).(cfg->fileNamecxx . . $ tag_EZCONFIG#fileName.);
624 freecxx . . $ free(5d22bdacc48458e8).(cfg->metadataProgramcxx . . $ tag_EZCONFIG#metadataProgram.);
625 freecxx . . $ free(5d22bdacc48458e8).(cfg->metadataFormatcxx . . $ tag_EZCONFIG#metadataFormat.);
626 freecxx . . $ free(5d22bdacc48458e8).(cfg->serverNamecxx . . $ tag_EZCONFIG#serverName.);
627 freecxx . . $ free(5d22bdacc48458e8).(cfg->serverURLcxx . . $ tag_EZCONFIG#serverURL.);
628 freecxx . . $ free(5d22bdacc48458e8).(cfg->serverGenrecxx . . $ tag_EZCONFIG#serverGenre.);
629 freecxx . . $ free(5d22bdacc48458e8).(cfg->serverDescriptioncxx . . $ tag_EZCONFIG#serverDescription.);
630 freecxx . . $ free(5d22bdacc48458e8).(cfg->serverBitratecxx . . $ tag_EZCONFIG#serverBitrate.);
631 freecxx . . $ free(5d22bdacc48458e8).(cfg->serverChannelscxx . . $ tag_EZCONFIG#serverChannels.);
632 freecxx . . $ free(5d22bdacc48458e8).(cfg->serverSampleratecxx . . $ tag_EZCONFIG#serverSamplerate.);
633 freecxx . . $ free(5d22bdacc48458e8).(cfg->serverQualitycxx . . $ tag_EZCONFIG#serverQuality.);
634 for (i = 0; i < MAX_FORMAT_ENCDECcxx . . $ `src/ezconfig0.h:27:9`!; i++) {
635 if (NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`! == cfg->encoderDecoderscxx . . $ tag_EZCONFIG#encoderDecoders.[i])
636 continue;
637 freecxx . . $ free(5d22bdacc48458e8).(cfg->encoderDecoderscxx . . $ tag_EZCONFIG#encoderDecoders.[i]->formatcxx . . $ tag_FORMAT_ENCDEC#format.);
638 freecxx . . $ free(5d22bdacc48458e8).(cfg->encoderDecoderscxx . . $ tag_EZCONFIG#encoderDecoders.[i]->matchcxx . . $ tag_FORMAT_ENCDEC#match.);
639 freecxx . . $ free(5d22bdacc48458e8).(cfg->encoderDecoderscxx . . $ tag_EZCONFIG#encoderDecoders.[i]->encodercxx . . $ tag_FORMAT_ENCDEC#encoder.);
640 freecxx . . $ free(5d22bdacc48458e8).(cfg->encoderDecoderscxx . . $ tag_EZCONFIG#encoderDecoders.[i]->decodercxx . . $ tag_FORMAT_ENCDEC#decoder.);
641 freecxx . . $ free(5d22bdacc48458e8).(cfg->encoderDecoderscxx . . $ tag_EZCONFIG#encoderDecoders.[i]);
642 }
643
644 memsetcxx . . $ memset(d1de1e4fb215f1c6).(cfg, 0, sizeof(*cfg));
645 }
646
647 unsigned int
648 checkDecoderLinecxx . . $ checkDecoderLine(3b738b2b5f20ad0f).(const char *str, const char *file, long line)
649 {
650 unsigned int errors;
651 char *p;
652 int have_track = 0;
653
654 errors = 0;
655 if ((p = strstrcxx . . $ `<external>/13506128340496143423/string.h:380:11`!(str, STRING_PLACEHOLDERcxx . . $ `src/ezconfig0.h:33:9`!)) != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
656 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: `%s' placeholder not allowed in decoder command\n",
657 file, line, STRING_PLACEHOLDERcxx . . $ `src/ezconfig0.h:33:9`!);
658 errors++;
659 }
660 if ((p = strstrcxx . . $ `<external>/13506128340496143423/string.h:380:11`!(str, TRACK_PLACEHOLDERcxx . . $ `src/ezconfig0.h:29:9`!)) != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
661 p += strlencxx . . $ strlen(751346f8406fd082).(TRACK_PLACEHOLDERcxx . . $ `src/ezconfig0.h:29:9`!);
662 if ((p = strstrcxx . . $ `<external>/13506128340496143423/string.h:380:11`!(p, TRACK_PLACEHOLDERcxx . . $ `src/ezconfig0.h:29:9`!)) != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
663 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: Multiple `%s' placeholders in decoder command\n",
664 file, line, TRACK_PLACEHOLDERcxx . . $ `src/ezconfig0.h:29:9`!);
665 errors++;
666 } else
667 have_track = 1;
668 }
669 if ((p = strstrcxx . . $ `<external>/13506128340496143423/string.h:380:11`!(str, METADATA_PLACEHOLDERcxx . . $ `src/ezconfig0.h:30:9`!)) != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
670 p += strlencxx . . $ strlen(751346f8406fd082).(METADATA_PLACEHOLDERcxx . . $ `src/ezconfig0.h:30:9`!);
671 if ((p = strstrcxx . . $ `<external>/13506128340496143423/string.h:380:11`!(p, METADATA_PLACEHOLDERcxx . . $ `src/ezconfig0.h:30:9`!)) != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
672 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: Multiple `%s' placeholders in decoder command\n",
673 file, line, METADATA_PLACEHOLDERcxx . . $ `src/ezconfig0.h:30:9`!);
674 errors++;
675 }
676 }
677 if ((p = strstrcxx . . $ `<external>/13506128340496143423/string.h:380:11`!(str, ARTIST_PLACEHOLDERcxx . . $ `src/ezconfig0.h:31:9`!)) != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
678 p += strlencxx . . $ strlen(751346f8406fd082).(ARTIST_PLACEHOLDERcxx . . $ `src/ezconfig0.h:31:9`!);
679 if ((p = strstrcxx . . $ `<external>/13506128340496143423/string.h:380:11`!(p, ARTIST_PLACEHOLDERcxx . . $ `src/ezconfig0.h:31:9`!)) != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
680 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: Multiple `%s' placeholders in decoder command\n",
681 file, line, ARTIST_PLACEHOLDERcxx . . $ `src/ezconfig0.h:31:9`!);
682 errors++;
683 }
684 }
685 if ((p = strstrcxx . . $ `<external>/13506128340496143423/string.h:380:11`!(str, TITLE_PLACEHOLDERcxx . . $ `src/ezconfig0.h:32:9`!)) != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
686 p += strlencxx . . $ strlen(751346f8406fd082).(TITLE_PLACEHOLDERcxx . . $ `src/ezconfig0.h:32:9`!);
687 if ((p = strstrcxx . . $ `<external>/13506128340496143423/string.h:380:11`!(p, TITLE_PLACEHOLDERcxx . . $ `src/ezconfig0.h:32:9`!)) != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
688 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: Multiple `%s' placeholders in decoder command\n",
689 file, line, TITLE_PLACEHOLDERcxx . . $ `src/ezconfig0.h:32:9`!);
690 errors++;
691 }
692 }
693
694 if (!have_track) {
695 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: The decoder command requires the '%s' track placeholder\n",
696 file, line, TRACK_PLACEHOLDERcxx . . $ `src/ezconfig0.h:29:9`!);
697 errors++;
698 }
699
700 return (errors);
701 }
702
703 unsigned int
704 checkEncoderLinecxx . . $ checkEncoderLine(3b738b2b5f20ad0f).(const char *str, const char *file, long line)
705 {
706 unsigned int errors;
707 char *p;
708
709 errors = 0;
710 if ((p = strstrcxx . . $ `<external>/13506128340496143423/string.h:380:11`!(str, TRACK_PLACEHOLDERcxx . . $ `src/ezconfig0.h:29:9`!)) != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
711 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: `%s' placeholder not allowed in encoder command\n",
712 file, line, TRACK_PLACEHOLDERcxx . . $ `src/ezconfig0.h:29:9`!);
713 errors++;
714 }
715 if ((p = strstrcxx . . $ `<external>/13506128340496143423/string.h:380:11`!(str, STRING_PLACEHOLDERcxx . . $ `src/ezconfig0.h:33:9`!)) != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
716 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: `%s' placeholder not allowed in encoder command\n",
717 file, line, STRING_PLACEHOLDERcxx . . $ `src/ezconfig0.h:33:9`!);
718 errors++;
719 }
720 if ((p = strstrcxx . . $ `<external>/13506128340496143423/string.h:380:11`!(str, METADATA_PLACEHOLDERcxx . . $ `src/ezconfig0.h:30:9`!)) != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
721 p += strlencxx . . $ strlen(751346f8406fd082).(METADATA_PLACEHOLDERcxx . . $ `src/ezconfig0.h:30:9`!);
722 if ((p = strstrcxx . . $ `<external>/13506128340496143423/string.h:380:11`!(p, METADATA_PLACEHOLDERcxx . . $ `src/ezconfig0.h:30:9`!)) != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
723 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: Multiple `%s' placeholders in encoder command\n",
724 file, line, METADATA_PLACEHOLDERcxx . . $ `src/ezconfig0.h:30:9`!);
725 errors++;
726 }
727 }
728 if ((p = strstrcxx . . $ `<external>/13506128340496143423/string.h:380:11`!(str, ARTIST_PLACEHOLDERcxx . . $ `src/ezconfig0.h:31:9`!)) != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
729 p += strlencxx . . $ strlen(751346f8406fd082).(ARTIST_PLACEHOLDERcxx . . $ `src/ezconfig0.h:31:9`!);
730 if ((p = strstrcxx . . $ `<external>/13506128340496143423/string.h:380:11`!(p, ARTIST_PLACEHOLDERcxx . . $ `src/ezconfig0.h:31:9`!)) != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
731 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: Multiple `%s' placeholders in encoder command\n",
732 file, line, ARTIST_PLACEHOLDERcxx . . $ `src/ezconfig0.h:31:9`!);
733 errors++;
734 }
735 }
736 if ((p = strstrcxx . . $ `<external>/13506128340496143423/string.h:380:11`!(str, TITLE_PLACEHOLDERcxx . . $ `src/ezconfig0.h:32:9`!)) != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
737 p += strlencxx . . $ strlen(751346f8406fd082).(TITLE_PLACEHOLDERcxx . . $ `src/ezconfig0.h:32:9`!);
738 if ((p = strstrcxx . . $ `<external>/13506128340496143423/string.h:380:11`!(p, TITLE_PLACEHOLDERcxx . . $ `src/ezconfig0.h:32:9`!)) != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
739 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: Multiple `%s' placeholders in encoder command\n",
740 file, line, TITLE_PLACEHOLDERcxx . . $ `src/ezconfig0.h:32:9`!);
741 errors++;
742 }
743 }
744
745 return (errors);
746 }
747
748 unsigned int
749 checkFormatLinecxx . . $ checkFormatLine(3b738b2b5f20ad0f).(const char *str, const char *file, long line)
750 {
751 unsigned int errors;
752 char *p;
753
754 errors = 0;
755 if ((p = strstrcxx . . $ `<external>/13506128340496143423/string.h:380:11`!(str, METADATA_PLACEHOLDERcxx . . $ `src/ezconfig0.h:30:9`!)) != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
756 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: `%s' placeholder not allowed in <metadata_format>\n",
757 file, line, METADATA_PLACEHOLDERcxx . . $ `src/ezconfig0.h:30:9`!);
758 errors++;
759 }
760 if ((p = strstrcxx . . $ `<external>/13506128340496143423/string.h:380:11`!(str, TRACK_PLACEHOLDERcxx . . $ `src/ezconfig0.h:29:9`!)) != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
761 p += strlencxx . . $ strlen(751346f8406fd082).(TRACK_PLACEHOLDERcxx . . $ `src/ezconfig0.h:29:9`!);
762 if ((p = strstrcxx . . $ `<external>/13506128340496143423/string.h:380:11`!(p, TRACK_PLACEHOLDERcxx . . $ `src/ezconfig0.h:29:9`!)) != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
763 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: Multiple `%s' placeholders in <metadata_format>\n",
764 file, line, TRACK_PLACEHOLDERcxx . . $ `src/ezconfig0.h:29:9`!);
765 errors++;
766 }
767 }
768 if ((p = strstrcxx . . $ `<external>/13506128340496143423/string.h:380:11`!(str, STRING_PLACEHOLDERcxx . . $ `src/ezconfig0.h:33:9`!)) != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
769 p += strlencxx . . $ strlen(751346f8406fd082).(STRING_PLACEHOLDERcxx . . $ `src/ezconfig0.h:33:9`!);
770 if ((p = strstrcxx . . $ `<external>/13506128340496143423/string.h:380:11`!(p, STRING_PLACEHOLDERcxx . . $ `src/ezconfig0.h:33:9`!)) != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
771 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: Multiple `%s' placeholders in <metadata_format>\n",
772 file, line, STRING_PLACEHOLDERcxx . . $ `src/ezconfig0.h:33:9`!);
773 errors++;
774 }
775 }
776 if ((p = strstrcxx . . $ `<external>/13506128340496143423/string.h:380:11`!(str, ARTIST_PLACEHOLDERcxx . . $ `src/ezconfig0.h:31:9`!)) != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
777 p += strlencxx . . $ strlen(751346f8406fd082).(ARTIST_PLACEHOLDERcxx . . $ `src/ezconfig0.h:31:9`!);
778 if ((p = strstrcxx . . $ `<external>/13506128340496143423/string.h:380:11`!(p, ARTIST_PLACEHOLDERcxx . . $ `src/ezconfig0.h:31:9`!)) != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
779 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: Multiple `%s' placeholders in <metadata_format>\n",
780 file, line, ARTIST_PLACEHOLDERcxx . . $ `src/ezconfig0.h:31:9`!);
781 errors++;
782 }
783 }
784 if ((p = strstrcxx . . $ `<external>/13506128340496143423/string.h:380:11`!(str, TITLE_PLACEHOLDERcxx . . $ `src/ezconfig0.h:32:9`!)) != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
785 p += strlencxx . . $ strlen(751346f8406fd082).(TITLE_PLACEHOLDERcxx . . $ `src/ezconfig0.h:32:9`!);
786 if ((p = strstrcxx . . $ `<external>/13506128340496143423/string.h:380:11`!(p, TITLE_PLACEHOLDERcxx . . $ `src/ezconfig0.h:32:9`!)) != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
787 log_errorcxx . . $ log_error(581fddd72a8db8fc).("%s[%ld]: Error: Multiple `%s' placeholders in <metadata_format>\n",
788 file, line, TITLE_PLACEHOLDERcxx . . $ `src/ezconfig0.h:32:9`!);
789 errors++;
790 }
791 }
792
793 return (errors);
794 }