1 #ifndef __ICY_H 2 #define __ICY_H 3 4 enum 5 { 6 SERVERTYPE_SHOUTCAST, 7 SERVERTYPE_ICECAST 8 }; 9 10 /* Icy headers */ 11 typedef struct icyHeaders 12 { 13 char *name; 14 char *genre; 15 char *notice1; 16 char *notice2; 17 char *content_type; 18 char *url; 19 /* type: 20 * 0 Shoutcast 21 * 1 Icecast 22 */ 23 int type; 24 int br; 25 int metaint; 26 int pub; 27 } icyHeaders; 28 29 icyHeaders *readicyheaders(char *headers); 30 void free_icy_headers(icyHeaders *icy); 31 void print_icyheaders(icyHeaders *_icy_headers ); 32 33 #endif 34