| 1 |
/* |
| 2 |
icy: support for SHOUTcast ICY meta info, an attempt to keep it organized |
| 3 |
|
| 4 |
copyright 2006-2023 by the mpg123 project - free software under the terms of the LGPL 2.1 |
| 5 |
see COPYING and AUTHORS files in distribution or http://mpg123.org |
| 6 |
initially written by Thomas Orgis and modelled after patch by Honza |
| 7 |
*/ |
| 8 |
#ifndef MPG123_ICY_H |
| 9 |
#define MPG123_ICY_H |
| 10 |
|
| 11 |
#ifndef NO_ICY |
| 12 |
|
| 13 |
#include "../compat/compat.h" |
| 14 |
#include "mpg123.h" |
| 15 |
|
| 16 |
struct icy_meta |
| 17 |
{ |
| 18 |
char* data; |
| 19 |
int64_t interval; |
| 20 |
int64_t next; |
| 21 |
}; |
| 22 |
|
| 23 |
void INT123_init_icy(struct icy_meta *); |
| 24 |
void INT123_clear_icy(struct icy_meta *); |
| 25 |
void INT123_reset_icy(struct icy_meta *); |
| 26 |
|
| 27 |
#else |
| 28 |
|
| 29 |
#undef INT123_init_icy |
| 30 |
#define INT123_init_icy(a) |
| 31 |
#undef INT123_clear_icy |
| 32 |
#define INT123_clear_icy(a) |
| 33 |
#undef INT123_reset_icy |
| 34 |
#define INT123_reset_icy(a) |
| 35 |
|
| 36 |
#endif /* NO_ICY */ |
| 37 |
|
| 38 |
#endif |