/src/mpg123/src/libmpg123/icy.c
Line | Count | Source (jump to first uncovered line) |
1 | | /* |
2 | | icy: Puny code to pretend for a serious ICY data structure. |
3 | | |
4 | | copyright 2007-2015 by the mpg123 project |
5 | | -= free software under the terms of the LGPL 2.1 =- |
6 | | see COPYING and AUTHORS files in distribution or http://mpg123.org |
7 | | initially written by Thomas Orgis |
8 | | */ |
9 | | |
10 | | #include "intsym.h" |
11 | | #include "icy.h" |
12 | | |
13 | | void init_icy(struct icy_meta *icy) |
14 | 0 | { |
15 | 0 | icy->data = NULL; |
16 | 0 | } |
17 | | |
18 | | void clear_icy(struct icy_meta *icy) |
19 | 0 | { |
20 | 0 | if(icy->data != NULL) free(icy->data); |
21 | 0 | init_icy(icy); |
22 | 0 | } |
23 | | |
24 | | void reset_icy(struct icy_meta *icy) |
25 | 0 | { |
26 | 0 | clear_icy(icy); |
27 | 0 | init_icy(icy); |
28 | 0 | } |
29 | | /*void set_icy(struct icy_meta *icy, char* new_data) |
30 | | { |
31 | | if(icy->data) free(icy->data); |
32 | | icy->data = new_data; |
33 | | icy->changed = 1; |
34 | | }*/ |