util.c File Reference

#include <glib.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <errno.h>
#include <libaudcore/audstrings.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 function, gpointer user_data, GError **error)
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)
void util_add_url_history_entry (const gchar *url)
static gboolean plugin_list_func (PluginHandle *plugin, GList **list)
GList * plugin_get_list (gint type)

Define Documentation

#define URL_HISTORY_MAX_SIZE   30

Definition at line 158 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 106 of file util.c.

gboolean dir_foreach ( const gchar *  path,
DirForeachFunc  function,
gpointer  user_data,
GError **  error 
)

Definition at line 54 of file util.c.

Referenced by scan_plugins().

gint file_get_mtime ( const gchar *  filename  ) 

Definition at line 138 of file util.c.

Referenced by module_register().

void make_directory ( const gchar *  path,
mode_t  mode 
)

Definition at line 149 of file util.c.

Referenced by aud_make_user_dir().

GList* plugin_get_list ( gint  type  ) 
static gboolean plugin_list_func ( PluginHandle plugin,
GList **  list 
) [static]

Definition at line 175 of file util.c.

Referenced by plugin_get_list().

void util_add_url_history_entry ( const gchar *  url  ) 

Definition at line 161 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 92 of file util.c.


Generated on 8 Jun 2011 for Audacious by  doxygen 1.6.1