1 /* EasyTAG - Tag editor for audio files
2  * Copyright (C) 2014-2015  David King <amigadave@amigadave.com>
3  * Copyright (C) 2000-2003  Jerome Couderc <easytag@gmail.com>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18  */
19 
20 #ifndef ET_MISC_H_
21 #define ET_MISC_H_
22 
23 #include <gtk/gtk.h>
24 
25 G_BEGIN_DECLS
26 
27 /*
28  * Combobox misc functions
29  */
30 gboolean Add_String_To_Combo_List(GtkListStore *liststore, const gchar *string);
31 
32 gchar *Convert_Duration (gulong duration);
33 
34 gboolean et_run_audio_player (GList *files, GError **error);
35 gboolean et_run_program (const gchar *program_name, GList *args_list, GError **error);
36 
37 gchar * et_disc_number_to_string (const guint disc_number);
38 gchar * et_track_number_to_string (const guint track_number);
39 
40 void et_filename_prepare (gchar *filename_utf8, gboolean replace_illegal);
41 gboolean et_rename_file (const gchar *old_filename, const gchar *new_filename, GError **error);
42 
43 guint et_undo_key_new (void);
44 gint et_normalized_strcmp0 (const gchar *str1, const gchar *str2);
45 gint et_normalized_strcasecmp0 (const gchar *str1, const gchar *str2);
46 gboolean et_str_empty (const gchar *str);
47 
48 G_END_DECLS
49 
50 #endif /* ET_MISC_H_ */
51