ReactOS  0.4.14-dev-838-g99f979d
icy.c
Go to the documentation of this file.
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 {
15  icy->data = NULL;
16 }
17 
18 void clear_icy(struct icy_meta *icy)
19 {
20  if(icy->data != NULL) free(icy->data);
21  init_icy(icy);
22 }
23 
24 void reset_icy(struct icy_meta *icy)
25 {
26  clear_icy(icy);
27  init_icy(icy);
28 }
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 }*/
Definition: icy.h:16
#define free
Definition: debug_ros.c:5
char * data
Definition: icy.h:18
void reset_icy(struct icy_meta *icy)
Definition: icy.c:24
smooth NULL
Definition: ftsmooth.c:416
void init_icy(struct icy_meta *icy)
Definition: icy.c:13
void clear_icy(struct icy_meta *icy)
Definition: icy.c:18