Debian Codegraph @

src/cfg_stream.c

raw symbols SCIP
1 /*
2 * Copyright (c) 2017, 2020 Moritz Grimm <[email protected]>
3 *
4 * Permission to use, copy, modify, and distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 */
16
17 #ifdef HAVE_CONFIG_Hcxx . . $ `<built-in>:412:9`!
18 # include "config.h"cxx . . $ `<file>/src/config.h`/
19 #endif /* HAVE_CONFIG_H */
20
21 #include <sys/queue.h>
22
23 #include <string.h>
24
25 #include "cfg_private.h"cxx . . $ `<file>/src/cfg_private.h`/
26 #include "cfg_stream.h"cxx . . $ `<file>/src/cfg_stream.h`/
27 #include "xalloc.h"cxx . . $ `<file>/src/xalloc.h`/
28
29 struct cfg_streamcxx . . $ cfg_stream# {
30 TAILQ_ENTRYcxx . . $ `<external>/2546723208511035544/queue.h:382:9`!(cfg_stream) entrycxx . . $ cfg_stream#entry.;
31 char *namecxx . . $ cfg_stream#name.;
32 char *mountpointcxx . . $ cfg_stream#mountpoint.;
33 char *intakecxx . . $ cfg_stream#intake.;
34 char *servercxx . . $ cfg_stream#server.;
35 int publiccxx . . $ cfg_stream#public.;
36 enum cfg_stream_formatcxx . . $ cfg_stream_format# formatcxx . . $ cfg_stream#format.;
37 char *encodercxx . . $ cfg_stream#encoder.;
38 char *stream_namecxx . . $ cfg_stream#stream_name.;
39 char *stream_urlcxx . . $ cfg_stream#stream_url.;
40 char *stream_genrecxx . . $ cfg_stream#stream_genre.;
41 char *stream_descriptioncxx . . $ cfg_stream#stream_description.;
42 char *stream_qualitycxx . . $ cfg_stream#stream_quality.;
43 char *stream_bitratecxx . . $ cfg_stream#stream_bitrate.;
44 char *stream_sampleratecxx . . $ cfg_stream#stream_samplerate.;
45 char *stream_channelscxx . . $ cfg_stream#stream_channels.;
46 };
47
48 TAILQ_HEADcxx . . $ `<external>/2546723208511035544/queue.h:372:9`!(cfg_stream_list, cfg_stream);
49
50 struct cfg_stream_listcxx . . $ cfg_stream_list# *
51 cfg_stream_list_createcxx . . $ cfg_stream_list_create(f0c21fd0bbd2a8b).(void)
52 {
53 struct cfg_stream_listcxx . . $ cfg_stream_list# *sl;
54
55 sl = xcalloccxx . . $ `src/xalloc.h:23:9`!(1UL, sizeof(*sl));
56 TAILQ_INITcxx . . $ `<external>/2546723208511035544/queue.h:387:9`!(sl);
57
58 return (sl);
59 }
60
61 void
62 cfg_stream_list_destroycxx . . $ cfg_stream_list_destroy(9aaa289081a424bc).(cfg_stream_list_tcxx . . $ cfg_stream_list_t# *sl_p)
63 {
64 struct cfg_stream_listcxx . . $ cfg_stream_list# *sl = *sl_p;
65 struct cfg_streamcxx . . $ cfg_stream# *s;
66
67 if (!sl)
68 return;
69
70 while (NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`! != (s = TAILQ_FIRSTcxx . . $ `<external>/2546723208511035544/queue.h:458:9`!(sl))) {
71 TAILQ_REMOVEcxx . . $ `<external>/2546723208511035544/queue.h:426:9`!(sl, s, entry);
72 cfg_stream_destroycxx . . $ cfg_stream_destroy(ea9072f5fdb406ab).(&s);
73 }
74
75 xfreecxx . . $ `src/xalloc.h:26:9`!(sl);
76 *sl_p = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
77 }
78
79 unsigned int
80 cfg_stream_list_nentriescxx . . $ cfg_stream_list_nentries(e1945ce0955e259f).(struct cfg_stream_listcxx . . $ cfg_stream_list# *sl)
81 {
82 struct cfg_streamcxx . . $ cfg_stream# *s;
83 unsigned int n = 0;
84
85 TAILQ_FOREACHcxx . . $ `<external>/2546723208511035544/queue.h:435:9`!(s, sl, entry) {
86 n++;
87 }
88
89 return (n);
90 }
91
92 struct cfg_streamcxx . . $ cfg_stream# *
93 cfg_stream_list_findcxx . . $ cfg_stream_list_find(47cc06abd3dd2318).(struct cfg_stream_listcxx . . $ cfg_stream_list# *sl, const char *name)
94 {
95 struct cfg_streamcxx . . $ cfg_stream# *s;
96
97 TAILQ_FOREACHcxx . . $ `<external>/2546723208511035544/queue.h:435:9`!(s, sl, entry) {
98 if (0 == strcasecmpcxx . . $ strcasecmp(5ae29d726ae57f88).(s->namecxx . . $ cfg_stream#name., name))
99 return (s);
100 }
101
102 return (NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
103 }
104
105 struct cfg_streamcxx . . $ cfg_stream# *
106 cfg_stream_list_getcxx . . $ cfg_stream_list_get(47cc06abd3dd2318).(struct cfg_stream_listcxx . . $ cfg_stream_list# *sl, const char *name)
107 {
108 struct cfg_streamcxx . . $ cfg_stream# *s;
109
110 s = cfg_stream_list_findcxx . . $ cfg_stream_list_find(47cc06abd3dd2318).(sl, name);
111 if (s)
112 return (s);
113 s = cfg_stream_createcxx . . $ cfg_stream_create(78a201faae4997c5).(name);
114 if (!s)
115 return (NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
116
117 TAILQ_INSERT_TAILcxx . . $ `<external>/2546723208511035544/queue.h:402:9`!(sl, s, entry);
118
119 return (s);
120 }
121
122 void
123 cfg_stream_list_foreachcxx . . $ cfg_stream_list_foreach(5392dc7e38b5b63e).(struct cfg_stream_listcxx . . $ cfg_stream_list# *sl,
124 void (*cb)(cfg_stream_tcxx . . $ cfg_stream_t#, void *), void *cb_arg)
125 {
126 struct cfg_streamcxx . . $ cfg_stream# *s;
127
128 TAILQ_FOREACHcxx . . $ `<external>/2546723208511035544/queue.h:435:9`!(s, sl, entry) {
129 cb(s, cb_arg);
130 }
131 }
132
133 struct cfg_streamcxx . . $ cfg_stream# *
134 cfg_stream_createcxx . . $ cfg_stream_create(78a201faae4997c5).(const char *name)
135 {
136 struct cfg_streamcxx . . $ cfg_stream# *s;
137
138 if (!name || !name[0])
139 return (NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
140
141 s = xcalloccxx . . $ `src/xalloc.h:23:9`!(1UL, sizeof(*s));
142 s->namecxx . . $ cfg_stream#name. = xstrdupcxx . . $ `src/xalloc.h:25:9`!(name);
143
144 return (s);
145 }
146
147 void
148 cfg_stream_destroycxx . . $ cfg_stream_destroy(ea9072f5fdb406ab).(struct cfg_streamcxx . . $ cfg_stream# **s_p)
149 {
150 struct cfg_streamcxx . . $ cfg_stream# *s = *s_p;
151
152 xfreecxx . . $ `src/xalloc.h:26:9`!(s->name);
153 xfreecxx . . $ `src/xalloc.h:26:9`!(s->mountpoint);
154 xfreecxx . . $ `src/xalloc.h:26:9`!(s->intake);
155 xfreecxx . . $ `src/xalloc.h:26:9`!(s->server);
156 xfreecxx . . $ `src/xalloc.h:26:9`!(s->encoder);
157 xfreecxx . . $ `src/xalloc.h:26:9`!(s->stream_name);
158 xfreecxx . . $ `src/xalloc.h:26:9`!(s->stream_url);
159 xfreecxx . . $ `src/xalloc.h:26:9`!(s->stream_genre);
160 xfreecxx . . $ `src/xalloc.h:26:9`!(s->stream_description);
161 xfreecxx . . $ `src/xalloc.h:26:9`!(s->stream_quality);
162 xfreecxx . . $ `src/xalloc.h:26:9`!(s->stream_bitrate);
163 xfreecxx . . $ `src/xalloc.h:26:9`!(s->stream_samplerate);
164 xfreecxx . . $ `src/xalloc.h:26:9`!(s->stream_channels);
165 xfreecxx . . $ `src/xalloc.h:26:9`!(s);
166 *s_p = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
167 }
168
169 int
170 cfg_stream_str2fmtcxx . . $ cfg_stream_str2fmt(f0e7c7a61906323).(const char *str, enum cfg_stream_formatcxx . . $ cfg_stream_format# *fmt_p)
171 {
172 if (0 == strcasecmpcxx . . $ strcasecmp(5ae29d726ae57f88).(str, CFG_SFMT_OGGcxx . . $ `src/cfg_stream.h:20:9`!)) {
173 *fmt_p = CFG_STREAM_OGGcxx . . $ CFG_STREAM_OGG.;
174 } else if (0 == strcasecmpcxx . . $ strcasecmp(5ae29d726ae57f88).(str, CFG_SFMT_MP3cxx . . $ `src/cfg_stream.h:21:9`!)) {
175 *fmt_p = CFG_STREAM_MP3cxx . . $ CFG_STREAM_MP3.;
176 } else if (0 == strcasecmpcxx . . $ strcasecmp(5ae29d726ae57f88).(str, CFG_SFMT_WEBMcxx . . $ `src/cfg_stream.h:22:9`!)) {
177 *fmt_p = CFG_STREAM_WEBMcxx . . $ CFG_STREAM_WEBM.;
178 } else if (0 == strcasecmpcxx . . $ strcasecmp(5ae29d726ae57f88).(str, CFG_SFMT_MATROSKAcxx . . $ `src/cfg_stream.h:23:9`!)) {
179 *fmt_p = CFG_STREAM_MATROSKAcxx . . $ CFG_STREAM_MATROSKA.;
180 } else
181 return (-1);
182 return (0);
183 }
184
185 const char *
186 cfg_stream_fmt2strcxx . . $ cfg_stream_fmt2str(87c1bd3fe9e88488).(enum cfg_stream_formatcxx . . $ cfg_stream_format# fmt)
187 {
188 switch (fmt) {
189 case CFG_STREAM_OGGcxx . . $ CFG_STREAM_OGG.:
190 return (CFG_SFMT_OGGcxx . . $ `src/cfg_stream.h:20:9`!);
191 case CFG_STREAM_MP3cxx . . $ CFG_STREAM_MP3.:
192 return (CFG_SFMT_MP3cxx . . $ `src/cfg_stream.h:21:9`!);
193 case CFG_STREAM_WEBMcxx . . $ CFG_STREAM_WEBM.:
194 return (CFG_SFMT_WEBMcxx . . $ `src/cfg_stream.h:22:9`!);
195 case CFG_STREAM_MATROSKAcxx . . $ CFG_STREAM_MATROSKA.:
196 return (CFG_SFMT_MATROSKAcxx . . $ `src/cfg_stream.h:23:9`!);
197 default:
198 return (NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
199 }
200 }
201
202
203 int
204 cfg_stream_set_namecxx . . $ cfg_stream_set_name(60eb938a45999d0f).(struct cfg_streamcxx . . $ cfg_stream# *s, struct cfg_stream_listcxx . . $ cfg_stream_list# *sl,
205 const char *name, const char **errstrp)
206 {
207 struct cfg_streamcxx . . $ cfg_stream# *s2;
208
209 if (!name || !name[0]) {
210 if (errstrp)
211 *errstrp = "empty";
212 return (-1);
213 }
214
215 s2 = cfg_stream_list_findcxx . . $ cfg_stream_list_find(47cc06abd3dd2318).(sl, name);
216 if (s2 && s2 != s) {
217 if (errstrp)
218 *errstrp = "already exists";
219 return (-1);
220 }
221
222 SET_XSTRDUPcxx . . $ `src/cfg_private.h:71:9`!(s->name, name, errstrp);
223
224 return (0);
225 }
226
227 int
228 cfg_stream_set_mountpointcxx . . $ cfg_stream_set_mountpoint(60eb938a45999d0f).(struct cfg_streamcxx . . $ cfg_stream# *s,
229 struct cfg_stream_listcxx . . $ cfg_stream_list# *not_used, const char *mountpoint,
230 const char **errstrp)
231 {
232 (void)not_used;
233 SET_XSTRDUPcxx . . $ `src/cfg_private.h:71:9`!(s->mountpoint, mountpoint, errstrp);
234 return (0);
235 }
236
237 int
238 cfg_stream_set_intakecxx . . $ cfg_stream_set_intake(60eb938a45999d0f).(struct cfg_streamcxx . . $ cfg_stream# *s, struct cfg_stream_listcxx . . $ cfg_stream_list# *not_used,
239 const char *intake, const char **errstrp)
240 {
241 (void)not_used;
242 SET_XSTRDUPcxx . . $ `src/cfg_private.h:71:9`!(s->intake, intake, errstrp);
243 return (0);
244 }
245
246 int
247 cfg_stream_set_servercxx . . $ cfg_stream_set_server(60eb938a45999d0f).(struct cfg_streamcxx . . $ cfg_stream# *s, struct cfg_stream_listcxx . . $ cfg_stream_list# *not_used,
248 const char *server, const char **errstrp)
249 {
250 (void)not_used;
251 SET_XSTRDUPcxx . . $ `src/cfg_private.h:71:9`!(s->server, server, errstrp);
252 return (0);
253 }
254
255 int
256 cfg_stream_set_publiccxx . . $ cfg_stream_set_public(60eb938a45999d0f).(struct cfg_streamcxx . . $ cfg_stream# *s, struct cfg_stream_listcxx . . $ cfg_stream_list# *not_used,
257 const char *public, const char **errstrp)
258 {
259 (void)not_used;
260 SET_BOOLEANcxx . . $ `src/cfg_private.h:81:9`!(s->public, public, errstrp);
261 return (0);
262 }
263
264 int
265 cfg_stream_set_formatcxx . . $ cfg_stream_set_format(60eb938a45999d0f).(struct cfg_streamcxx . . $ cfg_stream# *s, struct cfg_stream_listcxx . . $ cfg_stream_list# *not_used,
266 const char *fmt_str, const char **errstrp)
267 {
268 enum cfg_stream_formatcxx . . $ cfg_stream_format# fmt;
269
270 (void)not_used;
271
272 if (!fmt_str || !fmt_str[0]) {
273 if (errstrp)
274 *errstrp = "empty";
275 return (-1);
276 }
277
278 if (0 > cfg_stream_str2fmtcxx . . $ cfg_stream_str2fmt(f0e7c7a61906323).(fmt_str, &fmt)) {
279 if (errstrp)
280 *errstrp = "unsupported stream format";
281 return (-1);
282 }
283
284 s->formatcxx . . $ cfg_stream#format. = fmt;
285
286 return (0);
287 }
288
289 int
290 cfg_stream_set_encodercxx . . $ cfg_stream_set_encoder(60eb938a45999d0f).(struct cfg_streamcxx . . $ cfg_stream# *s, struct cfg_stream_listcxx . . $ cfg_stream_list# *not_used,
291 const char *encoder, const char **errstrp)
292 {
293 (void)not_used;
294
295 if (NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`! == encoder) {
296 if (s->encodercxx . . $ cfg_stream#encoder.)
297 xfreecxx . . $ `src/xalloc.h:26:9`!(s->encoder);
298 s->encodercxx . . $ cfg_stream#encoder. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
299 return (0);
300 }
301
302 SET_XSTRDUPcxx . . $ `src/cfg_private.h:71:9`!(s->encoder, encoder, errstrp);
303 return (0);
304 }
305
306 int
307 cfg_stream_set_stream_namecxx . . $ cfg_stream_set_stream_name(60eb938a45999d0f).(struct cfg_streamcxx . . $ cfg_stream# *s,
308 struct cfg_stream_listcxx . . $ cfg_stream_list# *not_used, const char *stream_name,
309 const char **errstrp)
310 {
311 (void)not_used;
312 SET_XSTRDUPcxx . . $ `src/cfg_private.h:71:9`!(s->stream_name, stream_name, errstrp);
313 return (0);
314 }
315
316 int
317 cfg_stream_set_stream_urlcxx . . $ cfg_stream_set_stream_url(60eb938a45999d0f).(struct cfg_streamcxx . . $ cfg_stream# *s,
318 struct cfg_stream_listcxx . . $ cfg_stream_list# *not_used, const char *stream_url,
319 const char **errstrp)
320 {
321 (void)not_used;
322 SET_XSTRDUPcxx . . $ `src/cfg_private.h:71:9`!(s->stream_url, stream_url, errstrp);
323 return (0);
324 }
325
326 int
327 cfg_stream_set_stream_genrecxx . . $ cfg_stream_set_stream_genre(60eb938a45999d0f).(struct cfg_streamcxx . . $ cfg_stream# *s,
328 struct cfg_stream_listcxx . . $ cfg_stream_list# *not_used, const char *stream_genre,
329 const char **errstrp)
330 {
331 (void)not_used;
332 SET_XSTRDUPcxx . . $ `src/cfg_private.h:71:9`!(s->stream_genre, stream_genre, errstrp);
333 return (0);
334 }
335
336 int
337 cfg_stream_set_stream_descriptioncxx . . $ cfg_stream_set_stream_description(60eb938a45999d0f).(struct cfg_streamcxx . . $ cfg_stream# *s,
338 struct cfg_stream_listcxx . . $ cfg_stream_list# *not_used, const char *stream_description,
339 const char **errstrp)
340 {
341 (void)not_used;
342 SET_XSTRDUPcxx . . $ `src/cfg_private.h:71:9`!(s->stream_description, stream_description, errstrp);
343 return (0);
344 }
345
346 int
347 cfg_stream_set_stream_qualitycxx . . $ cfg_stream_set_stream_quality(60eb938a45999d0f).(struct cfg_streamcxx . . $ cfg_stream# *s,
348 struct cfg_stream_listcxx . . $ cfg_stream_list# *not_used, const char *stream_quality,
349 const char **errstrp)
350 {
351 (void)not_used;
352 SET_XSTRDUPcxx . . $ `src/cfg_private.h:71:9`!(s->stream_quality, stream_quality, errstrp);
353 return (0);
354 }
355
356 int
357 cfg_stream_set_stream_bitratecxx . . $ cfg_stream_set_stream_bitrate(60eb938a45999d0f).(struct cfg_streamcxx . . $ cfg_stream# *s,
358 struct cfg_stream_listcxx . . $ cfg_stream_list# *not_used, const char *stream_bitrate,
359 const char **errstrp)
360 {
361 (void)not_used;
362 SET_XSTRDUPcxx . . $ `src/cfg_private.h:71:9`!(s->stream_bitrate, stream_bitrate, errstrp);
363 return (0);
364 }
365
366 int
367 cfg_stream_set_stream_sampleratecxx . . $ cfg_stream_set_stream_samplerate(60eb938a45999d0f).(struct cfg_streamcxx . . $ cfg_stream# *s,
368 struct cfg_stream_listcxx . . $ cfg_stream_list# *not_used, const char *stream_samplerate,
369 const char **errstrp)
370 {
371 (void)not_used;
372 SET_XSTRDUPcxx . . $ `src/cfg_private.h:71:9`!(s->stream_samplerate, stream_samplerate, errstrp);
373 return (0);
374 }
375
376 int
377 cfg_stream_set_stream_channelscxx . . $ cfg_stream_set_stream_channels(60eb938a45999d0f).(struct cfg_streamcxx . . $ cfg_stream# *s,
378 struct cfg_stream_listcxx . . $ cfg_stream_list# *not_used, const char *stream_channels,
379 const char **errstrp)
380 {
381 (void)not_used;
382 SET_XSTRDUPcxx . . $ `src/cfg_private.h:71:9`!(s->stream_channels, stream_channels, errstrp);
383 return (0);
384 }
385
386 int
387 cfg_stream_validatecxx . . $ cfg_stream_validate(6db635df7f999560).(struct cfg_streamcxx . . $ cfg_stream# *s, const char **errstrp)
388 {
389 if (CFG_STREAM_INVALIDcxx . . $ CFG_STREAM_INVALID. == cfg_stream_get_formatcxx . . $ cfg_stream_get_format(a1a4274431071f63).(s)) {
390 if (NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`! != errstrp)
391 *errstrp = "format missing or unsupported";
392 return (-1);
393 }
394
395 return (0);
396 }
397
398 const char *
399 cfg_stream_get_namecxx . . $ cfg_stream_get_name(2200fed2ef732c87).(struct cfg_streamcxx . . $ cfg_stream# *s)
400 {
401 return (s->namecxx . . $ cfg_stream#name.);
402 }
403
404 const char *
405 cfg_stream_get_mountpointcxx . . $ cfg_stream_get_mountpoint(2200fed2ef732c87).(struct cfg_streamcxx . . $ cfg_stream# *s)
406 {
407 return (s->mountpointcxx . . $ cfg_stream#mountpoint.);
408 }
409
410 const char *
411 cfg_stream_get_intakecxx . . $ cfg_stream_get_intake(2200fed2ef732c87).(struct cfg_streamcxx . . $ cfg_stream# *s)
412 {
413 return (s->intakecxx . . $ cfg_stream#intake.);
414 }
415
416 const char *
417 cfg_stream_get_servercxx . . $ cfg_stream_get_server(2200fed2ef732c87).(struct cfg_streamcxx . . $ cfg_stream# *s)
418 {
419 return (s->servercxx . . $ cfg_stream#server.);
420 }
421
422 int
423 cfg_stream_get_publiccxx . . $ cfg_stream_get_public(b112842c4d681374).(struct cfg_streamcxx . . $ cfg_stream# *s)
424 {
425 return (s->publiccxx . . $ cfg_stream#public.);
426 }
427
428 enum cfg_stream_formatcxx . . $ cfg_stream_format#
429 cfg_stream_get_formatcxx . . $ cfg_stream_get_format(a1a4274431071f63).(struct cfg_streamcxx . . $ cfg_stream# *s)
430 {
431 return (s->formatcxx . . $ cfg_stream#format.);
432 }
433
434 const char *
435 cfg_stream_get_format_strcxx . . $ cfg_stream_get_format_str(2200fed2ef732c87).(struct cfg_streamcxx . . $ cfg_stream# *s)
436 {
437 return (cfg_stream_fmt2strcxx . . $ cfg_stream_fmt2str(87c1bd3fe9e88488).(s->formatcxx . . $ cfg_stream#format.));
438 }
439
440 const char *
441 cfg_stream_get_encodercxx . . $ cfg_stream_get_encoder(2200fed2ef732c87).(struct cfg_streamcxx . . $ cfg_stream# *s)
442 {
443 return (s->encodercxx . . $ cfg_stream#encoder.);
444 }
445
446 const char *
447 cfg_stream_get_stream_namecxx . . $ cfg_stream_get_stream_name(2200fed2ef732c87).(struct cfg_streamcxx . . $ cfg_stream# *s)
448 {
449 return (s->stream_namecxx . . $ cfg_stream#stream_name.);
450 }
451
452 const char *
453 cfg_stream_get_stream_urlcxx . . $ cfg_stream_get_stream_url(2200fed2ef732c87).(struct cfg_streamcxx . . $ cfg_stream# *s)
454 {
455 return (s->stream_urlcxx . . $ cfg_stream#stream_url.);
456 }
457
458 const char *
459 cfg_stream_get_stream_genrecxx . . $ cfg_stream_get_stream_genre(2200fed2ef732c87).(struct cfg_streamcxx . . $ cfg_stream# *s)
460 {
461 return (s->stream_genrecxx . . $ cfg_stream#stream_genre.);
462 }
463
464 const char *
465 cfg_stream_get_stream_descriptioncxx . . $ cfg_stream_get_stream_description(2200fed2ef732c87).(struct cfg_streamcxx . . $ cfg_stream# *s)
466 {
467 return (s->stream_descriptioncxx . . $ cfg_stream#stream_description.);
468 }
469
470 const char *
471 cfg_stream_get_stream_qualitycxx . . $ cfg_stream_get_stream_quality(2200fed2ef732c87).(struct cfg_streamcxx . . $ cfg_stream# *s)
472 {
473 return (s->stream_qualitycxx . . $ cfg_stream#stream_quality.);
474 }
475
476 const char *
477 cfg_stream_get_stream_bitratecxx . . $ cfg_stream_get_stream_bitrate(2200fed2ef732c87).(struct cfg_streamcxx . . $ cfg_stream# *s)
478 {
479 return (s->stream_bitratecxx . . $ cfg_stream#stream_bitrate.);
480 }
481
482 const char *
483 cfg_stream_get_stream_sampleratecxx . . $ cfg_stream_get_stream_samplerate(2200fed2ef732c87).(struct cfg_streamcxx . . $ cfg_stream# *s)
484 {
485 return (s->stream_sampleratecxx . . $ cfg_stream#stream_samplerate.);
486 }
487
488 const char *
489 cfg_stream_get_stream_channelscxx . . $ cfg_stream_get_stream_channels(2200fed2ef732c87).(struct cfg_streamcxx . . $ cfg_stream# *s)
490 {
491 return (s->stream_channelscxx . . $ cfg_stream#stream_channels.);
492 }