mp3splt-gtk

- Main Page
- Related Pages
- Data Structures
- Files

- File List
- Globals

utilities.h
1 /**********************************************************
2 *
3 * mp3splt-gtk -- utility based on mp3splt,
4 * for mp3/ogg splitting without decoding
5 *
6 * Copyright (c) 2005-2013 Alexandru Munteanu - m@ioalex.net
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
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
remove_end_slash_n_r_from_filename
void remove_end_slash_n_r_from_filename(char *filename)
Removes trailing \r or \n characters from a filename.
Definition: utilities.c:98
file_exists
gint file_exists(const gchar *fname)
check if specified file exists
Definition: utilities.c:62
print_processing_file
void print_processing_file(gchar *filename, ui_state *ui)
Issues the message &quot;Processing file &lt;filename&gt;&quot; into the message bar.
Definition: utilities.c:82
transform_to_utf8
gchar * transform_to_utf8(gchar *text, gint free_or_not, gint *must_be_freed)
transform text to utf8
Definition: utilities.c:132
ui_state
Definition: ui_types.h:485
directory_exists
gint directory_exists(const gchar *directory)
check if specified directory exists
Definition: utilities.c:44