2 * Gnome Simple Stateful Music Player
3 * Copyright (C) 2007 Andy Balaam
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.
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.
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 void gssmp_files_init ();
23 void gssmp_files_quit ();
25 void gssmp_files_test_parent_dir ();
27 gchar
* gssmp_files_find_next_file_after (const gchar
* file_path
);
28 gchar
* gssmp_files_find_previous_file_before (const gchar
* file_path
);
30 gchar
* gssmp_files_find_next_file_in_dir (const gchar
* dir
,
31 const gchar
* cur_file_name
);
33 gchar
* gssmp_files_find_previous_file_in_dir (const gchar
* dir
,
34 const gchar
* cur_file_name
);
36 gchar
* gssmp_files_get_parent_of_dir (const gchar
* dir
);
39 * Clear the cached shuffled list, e.g. because the user chose a different
42 void gssmp_files_reset_shuffle ();
45 * Returns the next file in the cached shuffled list. The returned string
46 * must be freed by the caller.
48 gchar
* gssmp_files_find_next_shuffled_file ();
51 * Returns the previous file in the cached shuffled list. The returned string
52 * must be freed by the caller.
54 gchar
* gssmp_files_find_previous_shuffled_file ();
57 * Returns the absolute path of the supplied path, which may be relative.
58 * The returned string must be freed by the caller.
60 gchar
* gssmp_files_make_absolute (const gchar
* path
);