|
Audacious
$Id:Doxyfile42802007-03-2104:39:00Znenolod$
|
#include <dirent.h>#include <glib.h>#include <regex.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <libaudcore/audstrings.h>#include <libaudcore/hook.h>#include "misc.h"#include "playlist.h"Go to the source code of this file.
Functions | |
| static const char * | get_basename (const char *filename) |
| static int | filename_compare_basename (const char *a, const char *b) |
| static int | tuple_compare_string (const Tuple *a, const Tuple *b, int field) |
| static int | tuple_compare_int (const Tuple *a, const Tuple *b, int field) |
| static int | tuple_compare_title (const Tuple *a, const Tuple *b) |
| static int | tuple_compare_album (const Tuple *a, const Tuple *b) |
| static int | tuple_compare_artist (const Tuple *a, const Tuple *b) |
| static int | tuple_compare_date (const Tuple *a, const Tuple *b) |
| static int | tuple_compare_track (const Tuple *a, const Tuple *b) |
| void | playlist_sort_by_scheme (int playlist, int scheme) |
| void | playlist_sort_selected_by_scheme (int playlist, int scheme) |
| void | playlist_remove_duplicates_by_scheme (int playlist, int scheme) |
| void | playlist_remove_failed (int playlist) |
| void | playlist_select_by_patterns (int playlist, const Tuple *patterns) |
| static char * | make_playlist_path (int playlist) |
| static void | load_playlists_real (void) |
| static void | save_playlists_real (void) |
| static void | update_cb (void *data, void *user) |
| static void | state_cb (void *data, void *user) |
| void | load_playlists (void) |
| void | save_playlists (bool_t exiting) |
Variables | |
| static const PlaylistStringCompareFunc | filename_comparisons [] |
| static const PlaylistTupleCompareFunc | tuple_comparisons [] |
| static const PlaylistStringCompareFunc | title_comparisons [] |
| static bool_t | hooks_added |
| static bool_t | state_changed |
| static int filename_compare_basename | ( | const char * | a, |
| const char * | b | ||
| ) | [static] |
Definition at line 42 of file playlist-utils.c.
| static const char* get_basename | ( | const char * | filename | ) | [static] |
Definition at line 35 of file playlist-utils.c.
Referenced by filename_compare_basename().
| void load_playlists | ( | void | ) |
Definition at line 455 of file playlist-utils.c.
Referenced by init_two().
| static void load_playlists_real | ( | void | ) | [static] |
Definition at line 286 of file playlist-utils.c.
Referenced by load_playlists().
| static char* make_playlist_path | ( | int | playlist | ) | [static] |
Definition at line 277 of file playlist-utils.c.
Referenced by load_playlists_real(), and save_playlists_real().
| void playlist_remove_duplicates_by_scheme | ( | int | playlist, |
| int | scheme | ||
| ) |
Definition at line 155 of file playlist-utils.c.
| void playlist_remove_failed | ( | int | playlist | ) |
Definition at line 213 of file playlist-utils.c.
| void playlist_select_by_patterns | ( | int | playlist, |
| const Tuple * | patterns | ||
| ) |
Definition at line 235 of file playlist-utils.c.
| void playlist_sort_by_scheme | ( | int | playlist, |
| int | scheme | ||
| ) |
Definition at line 133 of file playlist-utils.c.
| void playlist_sort_selected_by_scheme | ( | int | playlist, |
| int | scheme | ||
| ) |
Definition at line 143 of file playlist-utils.c.
| void save_playlists | ( | bool_t | exiting | ) |
Definition at line 472 of file playlist-utils.c.
Referenced by do_autosave(), and shut_down().
| static void save_playlists_real | ( | void | ) | [static] |
Definition at line 356 of file playlist-utils.c.
Referenced by save_playlists().
| static void state_cb | ( | void * | data, |
| void * | user | ||
| ) | [static] |
Definition at line 450 of file playlist-utils.c.
Referenced by load_playlists(), and save_playlists().
| static int tuple_compare_album | ( | const Tuple * | a, |
| const Tuple * | b | ||
| ) | [static] |
Definition at line 83 of file playlist-utils.c.
| static int tuple_compare_artist | ( | const Tuple * | a, |
| const Tuple * | b | ||
| ) | [static] |
Definition at line 88 of file playlist-utils.c.
| static int tuple_compare_date | ( | const Tuple * | a, |
| const Tuple * | b | ||
| ) | [static] |
Definition at line 93 of file playlist-utils.c.
| static int tuple_compare_int | ( | const Tuple * | a, |
| const Tuple * | b, | ||
| int | field | ||
| ) | [static] |
Definition at line 65 of file playlist-utils.c.
Referenced by tuple_compare_date(), and tuple_compare_track().
| static int tuple_compare_string | ( | const Tuple * | a, |
| const Tuple * | b, | ||
| int | field | ||
| ) | [static] |
Definition at line 47 of file playlist-utils.c.
Referenced by tuple_compare_album(), tuple_compare_artist(), and tuple_compare_title().
| static int tuple_compare_title | ( | const Tuple * | a, |
| const Tuple * | b | ||
| ) | [static] |
Definition at line 78 of file playlist-utils.c.
| static int tuple_compare_track | ( | const Tuple * | a, |
| const Tuple * | b | ||
| ) | [static] |
Definition at line 98 of file playlist-utils.c.
| static void update_cb | ( | void * | data, |
| void * | user | ||
| ) | [static] |
Definition at line 442 of file playlist-utils.c.
Referenced by load_playlists(), and save_playlists().
const PlaylistStringCompareFunc filename_comparisons[] [static] |
{
[PLAYLIST_SORT_PATH] = string_compare_encoded,
[PLAYLIST_SORT_FILENAME] = filename_compare_basename,
[PLAYLIST_SORT_TITLE] = NULL,
[PLAYLIST_SORT_ALBUM] = NULL,
[PLAYLIST_SORT_ARTIST] = NULL,
[PLAYLIST_SORT_DATE] = NULL,
[PLAYLIST_SORT_TRACK] = NULL,
[PLAYLIST_SORT_FORMATTED_TITLE] = NULL}
Definition at line 103 of file playlist-utils.c.
Referenced by playlist_remove_duplicates_by_scheme(), playlist_sort_by_scheme(), and playlist_sort_selected_by_scheme().
bool_t hooks_added [static] |
Definition at line 440 of file playlist-utils.c.
Referenced by load_playlists(), and save_playlists().
bool_t state_changed [static] |
Definition at line 440 of file playlist-utils.c.
Referenced by load_playlists(), save_playlists(), state_cb(), and update_cb().
const PlaylistStringCompareFunc title_comparisons[] [static] |
{
[PLAYLIST_SORT_PATH] = NULL,
[PLAYLIST_SORT_FILENAME] = NULL,
[PLAYLIST_SORT_TITLE] = NULL,
[PLAYLIST_SORT_ALBUM] = NULL,
[PLAYLIST_SORT_ARTIST] = NULL,
[PLAYLIST_SORT_DATE] = NULL,
[PLAYLIST_SORT_TRACK] = NULL,
[PLAYLIST_SORT_FORMATTED_TITLE] = string_compare}
Definition at line 123 of file playlist-utils.c.
Referenced by playlist_sort_by_scheme(), and playlist_sort_selected_by_scheme().
const PlaylistTupleCompareFunc tuple_comparisons[] [static] |
{
[PLAYLIST_SORT_PATH] = NULL,
[PLAYLIST_SORT_FILENAME] = NULL,
[PLAYLIST_SORT_TITLE] = tuple_compare_title,
[PLAYLIST_SORT_ALBUM] = tuple_compare_album,
[PLAYLIST_SORT_ARTIST] = tuple_compare_artist,
[PLAYLIST_SORT_DATE] = tuple_compare_date,
[PLAYLIST_SORT_TRACK] = tuple_compare_track,
[PLAYLIST_SORT_FORMATTED_TITLE] = NULL}
Definition at line 113 of file playlist-utils.c.
Referenced by playlist_remove_duplicates_by_scheme(), playlist_sort_by_scheme(), and playlist_sort_selected_by_scheme().
1.8.0