mp3splt-gtk
utilities.h
1 /**********************************************************
2  *
3  * mp3splt-gtk -- utility based on mp3splt,
4  * for mp3/ogg splitting without decoding
5  *
6  * Copyright (c) 2005-2012 Alexandru Munteanu - io_fx@yahoo.fr
7  *
8  * http://mp3splt.sourceforge.net/
9  *
10  *********************************************************/
11 
12 /**********************************************************
13  *
14  * This program is free software; you can redistribute it and/or
15  * modify it under the terms of the GNU General Public License
16  * as published by the Free Software Foundation; either version 2
17  * of the License, or (at your option) any later version.
18  *
19  * This program is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22  * GNU General Public License for more details.
23  *
24  * You should have received a copy of the GNU General Public License
25  * along with this program; if not, write to the Free Software
26  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
27  * USA.
28  *
29  *********************************************************/
30 
31 #ifndef UTILITIES_H
32 
33 #define UTILITIES_H
34 
35 #define DOUBLE_PRECISION 0.00000001
36 
37 #include "external_includes.h"
38 #include "ui_types.h"
39 #include "main_window.h"
40 
41 gint directory_exists(const gchar *directory);
42 gint file_exists(const gchar *fname);
43 void print_processing_file(gchar *filename, ui_state *ui);
44 void remove_end_slash_n_r_from_filename(char *filename);
45 gchar *transform_to_utf8(gchar *text, gint free_or_not, gint *must_be_freed);
46 void build_path(GString *path, const gchar *dir, const gchar *filename);
47 
48 gboolean double_equals(gdouble double_to_compare, gdouble compared_value);
49 
50 #endif
51