1 /* EasyTAG - tag editor for audio files
2  * Copyright (C) 2015  David King <amigadave@amigadave.com>
3  *
4  * This program is free software; you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License as published by the Free
6  * Software Foundation; either version 2 of the License, or (at your option)
7  * any later version.
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
12  * more details.
13  *
14  * You should have received a copy of the GNU General Public License along with
15  * this program; if not, write to the Free Software Foundation, Inc., 51
16  * Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
17  */
18 
19 #include "file_info.h"
20 
21 /*
22  * Create a new File_Info structure
23  */
24 ET_File_Info *
et_file_info_new(void)25 et_file_info_new (void)
26 {
27     return g_slice_new0 (ET_File_Info);
28 }
29 
30 /*
31  * Frees a File_Info item.
32  */
33 void
et_file_info_free(ET_File_Info * file_info)34 et_file_info_free (ET_File_Info *file_info)
35 {
36     g_return_if_fail (file_info != NULL);
37 
38     g_free (file_info->mpc_profile);
39     g_free (file_info->mpc_version);
40 
41     g_slice_free (ET_File_Info, file_info);
42 }
43