Audacious $Id:Doxyfile42802007-03-2104:39:00Znenolod$
util.h
Go to the documentation of this file.
00001 /*  Audacious - Cross-platform multimedia player
00002  *  Copyright (C) 2005-2011  Audacious development team
00003  *
00004  *  Based on BMP:
00005  *  Copyright (C) 2003-2004  BMP development team
00006  *
00007  *  Based on XMMS:
00008  *  Copyright (C) 1998-2003  XMMS development team
00009  *
00010  *  This program is free software; you can redistribute it and/or modify
00011  *  it under the terms of the GNU General Public License as published by
00012  *  the Free Software Foundation; under version 3 of the License.
00013  *
00014  *  This program is distributed in the hope that it will be useful,
00015  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  *  GNU General Public License for more details.
00018  *
00019  *  You should have received a copy of the GNU General Public License
00020  *  along with this program.  If not, see <http://www.gnu.org/licenses>.
00021  *
00022  *  The Audacious team does not consider modular code linking to
00023  *  Audacious or using our public API to be a derived work.
00024  */
00025 
00026 #ifndef AUDACIOUS_UTIL_H
00027 #define AUDACIOUS_UTIL_H
00028 
00029 #include <sys/types.h>
00030 #include <libaudcore/core.h>
00031 
00032 typedef bool_t(*DirForeachFunc) (const char * path,
00033                                    const char * basename,
00034                                    gpointer user_data);
00035 
00036 bool_t dir_foreach (const char * path, DirForeachFunc func, void * user_data);
00037 
00038 int file_get_mtime (const char * filename);
00039 void make_directory(const char * path, mode_t mode);
00040 char * write_temp_file (void * data, int64_t len);
00041 
00042 char * get_path_to_self (void);
00043 
00044 void describe_song (const char * filename, const Tuple * tuple,
00045  char * * title, char * * artist, char * * album);
00046 
00047 #endif /* AUDACIOUS_UTIL_H */