#include <dirent.h>
#include <sys/stat.h>
#include <unistd.h>
#include <glib.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <errno.h>
#include <libaudcore/audstrings.h>
#include "debug.h"
#include "i18n.h"
#include "misc.h"
#include "plugins.h"
#include "util.h"
Go to the source code of this file.
Functions | |
bool_t | dir_foreach (const char *path, DirForeachFunc func, void *user) |
char * | construct_uri (const char *string, const char *playlist_name) |
int | file_get_mtime (const char *filename) |
void | make_directory (const char *path, mode_t mode) |
char * | write_temp_file (void *data, int64_t len) |
char * | get_path_to_self (void) |
static char * | skip_top_folders (char *name) |
static void | split_filename (char *name, char **base, char **first, char **second) |
static char * | stream_name (char *name) |
static char * | get_nonblank_field (const Tuple *tuple, int field) |
static char * | str_get_decoded (char *str) |
void | describe_song (const char *name, const Tuple *tuple, char **_title, char **_artist, char **_album) |
char* construct_uri | ( | const char * | string, | |
const char * | playlist_name | |||
) |
void describe_song | ( | const char * | name, | |
const Tuple * | tuple, | |||
char ** | _title, | |||
char ** | _artist, | |||
char ** | _album | |||
) |
Definition at line 335 of file util.c.
Referenced by entry_set_tuple_real().
bool_t dir_foreach | ( | const char * | path, | |
DirForeachFunc | func, | |||
void * | user | |||
) |
Definition at line 53 of file util.c.
Referenced by scan_plugins().
int file_get_mtime | ( | const char * | filename | ) |
Definition at line 104 of file util.c.
Referenced by plugin_register(), and plugin_register_loaded().
static char* get_nonblank_field | ( | const Tuple * | tuple, | |
int | field | |||
) | [static] |
Definition at line 310 of file util.c.
Referenced by describe_song().
char* get_path_to_self | ( | void | ) |
Definition at line 161 of file util.c.
Referenced by relocate_paths().
void make_directory | ( | const char * | path, | |
mode_t | mode | |||
) |
Definition at line 115 of file util.c.
Referenced by make_dirs().
static char* skip_top_folders | ( | char * | name | ) | [static] |
Definition at line 207 of file util.c.
Referenced by describe_song().
static void split_filename | ( | char * | name, | |
char ** | base, | |||
char ** | first, | |||
char ** | second | |||
) | [static] |
Definition at line 242 of file util.c.
Referenced by describe_song().
static char* str_get_decoded | ( | char * | str | ) | [static] |
Definition at line 323 of file util.c.
Referenced by describe_song().
static char* stream_name | ( | char * | name | ) | [static] |
Definition at line 287 of file util.c.
Referenced by describe_song().
char* write_temp_file | ( | void * | data, | |
int64_t | len | |||
) |
Definition at line 124 of file util.c.
Referenced by art_get_file().