Audacious  $Id:Doxyfile42802007-03-2104:39:00Znenolod$
util.h
Go to the documentation of this file.
1 /*
2  * util.h
3  * Copyright 2009-2011 John Lindgren
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are met:
7  *
8  * 1. Redistributions of source code must retain the above copyright notice,
9  * this list of conditions, and the following disclaimer.
10  *
11  * 2. Redistributions in binary form must reproduce the above copyright notice,
12  * this list of conditions, and the following disclaimer in the documentation
13  * provided with the distribution.
14  *
15  * This software is provided "as is" and without any warranty, express or
16  * implied. In no event shall the authors be liable for any damages arising from
17  * the use of this software.
18  */
19 
20 #ifndef AUDACIOUS_UTIL_H
21 #define AUDACIOUS_UTIL_H
22 
23 #include <sys/types.h>
24 #include <libaudcore/core.h>
25 
26 typedef bool_t(*DirForeachFunc) (const char * path,
27  const char * basename,
28  void * user_data);
29 
30 bool_t dir_foreach (const char * path, DirForeachFunc func, void * user_data);
31 
32 void make_directory(const char * path, mode_t mode);
33 char * write_temp_file (void * data, int64_t len);
34 
35 char * get_path_to_self (void);
36 
37 void describe_song (const char * filename, const Tuple * tuple,
38  char * * title, char * * artist, char * * album);
39 
40 #endif /* AUDACIOUS_UTIL_H */
char * write_temp_file(void *data, int64_t len)
Definition: util.c:118
const char filename
Definition: misc-api.h:85
bool_t(* DirForeachFunc)(const char *path, const char *basename, void *user_data)
Definition: util.h:26
bool_t dir_foreach(const char *path, DirForeachFunc func, void *user)
Definition: util.c:46
Index Index bool_t
Definition: playlist-api.h:122
char * get_path_to_self(void)
Definition: util.c:155
func
Definition: plugins-api.h:41
void describe_song(const char *name, const Tuple *tuple, char **_title, char **_artist, char **_album)
Definition: util.c:348
void make_directory(const char *path, mode_t mode)
Definition: util.c:109