mp3splt-gtk: src/utilities.h Source File

mp3splt-gtk 0.9.3.1519

Loading...
Searching...
No Matches
utilities.h
1/**********************************************************
2 *
3 * mp3splt-gtk -- utility based on mp3splt,
4 * for mp3/ogg splitting without decoding
5 *
6 * Copyright (c) 2005-2014 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
41gint directory_exists(const gchar *directory);
42gint file_exists(const gchar *fname);
43void print_processing_file(gchar *filename, ui_state *ui);
44void remove_end_slash_n_r_from_filename(char *filename);
45gchar *transform_to_utf8(gchar *text, gint free_or_not, gint *must_be_freed);
46void build_path(GString *path, const gchar *dir, const gchar *filename);
47
48gboolean double_equals(gdouble double_to_compare, gdouble compared_value);
49
50//points and tags utilities
51
52 points_and_tags *new_points_and_tags();
53void free_points_and_tags(points_and_tags **pat);
54void append_point_to_pat(splt_point *point, points_and_tags *pat);
55void append_tags_to_pat(splt_tags *tags, points_and_tags *pat);
56
57#endif
58
points_and_tags
Definition ui_types.h:99
ui_state
Definition ui_types.h:509
print_processing_file
void print_processing_file(gchar *filename, ui_state *ui)
Issues the message "Processing file <filename>" 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:131
file_exists
gint file_exists(const gchar *fname)
check if specified file exists
Definition utilities.c:62
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:97
directory_exists
gint directory_exists(const gchar *directory)
check if specified directory exists
Definition utilities.c:44