Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1905 | serge | 1 | /* |
2 | icy: Puny code to pretend for a serious ICY data structure. |
||
3 | |||
4 | copyright 2007 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 |
||
7 | */ |
||
8 | |||
9 | #include "icy.h" |
||
10 | |||
11 | void init_icy(struct icy_meta *icy) |
||
12 | { |
||
13 | icy->data = NULL; |
||
14 | } |
||
15 | |||
16 | void clear_icy(struct icy_meta *icy) |
||
17 | { |
||
18 | if(icy->data != NULL) free(icy->data); |
||
19 | init_icy(icy); |
||
20 | } |
||
21 | |||
22 | void reset_icy(struct icy_meta *icy) |
||
23 | { |
||
24 | clear_icy(icy); |
||
25 | init_icy(icy); |
||
26 | } |
||
27 | /*void set_icy(struct icy_meta *icy, char* new_data) |
||
28 | { |
||
29 | if(icy->data) free(icy->data); |
||
30 | icy->data = new_data; |
||
31 | icy->changed = 1; |
||
32 | }*/ |