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