#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 URL_HISTORY_MAX_SIZE 30 |
Definition at line 167 of file util.c.
Referenced by util_add_url_history_entry().
gchar* construct_uri | ( | const gchar * | string, | |
const gchar * | playlist_name | |||
) |
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 147 of file util.c.
Referenced by module_register().
void make_directory | ( | const gchar * | path, | |
mode_t | mode | |||
) |
Definition at line 158 of file util.c.
Referenced by aud_make_user_dir().
GList* plugin_get_list | ( | gint | type | ) |
Definition at line 193 of file util.c.
Referenced by create_plugin_pages(), destroy_plugin_pages(), on_effect_plugin_view_realize(), on_general_plugin_view_realize(), on_input_plugin_view_realize(), and on_vis_plugin_view_realize().
static gboolean plugin_list_func | ( | PluginHandle * | plugin, | |
GList ** | list | |||
) | [static] |
Definition at line 184 of file util.c.
Referenced by plugin_get_list().
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)