ReactOS 0.4.15-dev-8219-ge8b88cf
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
13void init_icy(struct icy_meta *icy)
14{
15 icy->data = NULL;
16}
17
18void clear_icy(struct icy_meta *icy)
19{
20 if(icy->data != NULL) free(icy->data);
21 init_icy(icy);
22}
23
24void 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}*/
#define free
Definition: debug_ros.c:5
#define NULL
Definition: types.h:112
#define reset_icy
Definition: intsym.h:210
#define init_icy
Definition: intsym.h:208
#define clear_icy
Definition: intsym.h:209
Definition: icy.h:17
char * data
Definition: icy.h:18