Audacious  $Id:Doxyfile42802007-03-2104:39:00Znenolod$
Defines | Functions
util.c File Reference
#include <dirent.h>
#include <limits.h>
#include <unistd.h>
#include <glib.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <errno.h>
#include <libaudcore/audstrings.h>
#include <libaudcore/stringpool.h>
#include "audconfig.h"
#include "debug.h"
#include "i18n.h"
#include "misc.h"
#include "plugins.h"
#include "util.h"

Go to the source code of this file.

Defines

#define URL_HISTORY_MAX_SIZE   30

Functions

gboolean dir_foreach (const gchar *path, DirForeachFunc func, void *user)
gchar * util_get_localdir (void)
 util_get_localdir:
gchar * construct_uri (const gchar *string, const gchar *playlist_name)
gint file_get_mtime (const gchar *filename)
void make_directory (const gchar *path, mode_t mode)
gchar * get_path_to_self (void)
void util_add_url_history_entry (const gchar *url)
static gchar * skip_top_folders (gchar *name)
static void split_filename (gchar *name, gchar **base, gchar **first, gchar **second)
static gchar * stream_name (gchar *name)
void describe_song (const gchar *name, const Tuple *tuple, gchar **_title, gchar **_artist, gchar **_album)

Define Documentation

#define URL_HISTORY_MAX_SIZE   30

Definition at line 181 of file util.c.

Referenced by util_add_url_history_entry().


Function Documentation

gchar* construct_uri ( const gchar *  string,
const gchar *  playlist_name 
)

Definition at line 109 of file util.c.

void describe_song ( const gchar *  name,
const Tuple tuple,
gchar **  _title,
gchar **  _artist,
gchar **  _album 
)

Definition at line 310 of file util.c.

Referenced by entry_set_tuple_real().

gboolean dir_foreach ( const gchar *  path,
DirForeachFunc  func,
void *  user 
)

Definition at line 61 of file util.c.

Referenced by scan_plugins().

gint file_get_mtime ( const gchar *  filename)

Definition at line 139 of file util.c.

Referenced by plugin_register(), and plugin_register_loaded().

gchar* get_path_to_self ( void  )

Definition at line 159 of file util.c.

Referenced by relocate_paths().

void make_directory ( const gchar *  path,
mode_t  mode 
)

Definition at line 150 of file util.c.

Referenced by make_dirs().

static gchar* skip_top_folders ( gchar *  name) [static]

Definition at line 206 of file util.c.

Referenced by describe_song().

static void split_filename ( gchar *  name,
gchar **  base,
gchar **  first,
gchar **  second 
) [static]

Definition at line 239 of file util.c.

Referenced by describe_song().

static gchar* stream_name ( gchar *  name) [static]

Definition at line 284 of file util.c.

Referenced by describe_song().

void util_add_url_history_entry ( const gchar *  url)

Definition at line 184 of file util.c.

gchar* util_get_localdir ( void  )

util_get_localdir:

Returns a string with the full path of Audacious local datadir (where config files are placed). It's useful in order to put in the right place custom config files for audacious plugins.

Return value: a string with full path of Audacious local datadir (should be freed after use)

Definition at line 95 of file util.c.