#include <dirent.h>
#include <sys/stat.h>
#include <gtk/gtk.h>
#include <libaudcore/audstrings.h>
#include "config.h"
#include "i18n.h"
#include "playback.h"
#include "playlist.h"
#include "plugins.h"
#include "main.h"
#include "misc.h"
Go to the source code of this file.
Classes | |
struct | AddTask |
struct | AddResult |
Functions | |
static gboolean | status_cb (void *unused) |
static void | status_update (const gchar *filename, gint found) |
static void | status_done_locked (void) |
static void | index_free_filenames (struct index *filenames) |
static void | index_free_tuples (struct index *tuples) |
static AddTask * | add_task_new (gint playlist_id, gint at, gboolean play, struct index *filenames, struct index *tuples) |
static void | add_task_free (AddTask *task) |
static AddResult * | add_result_new (gint playlist_id, gint at, gboolean play) |
static void | add_result_free (AddResult *result) |
static void | add_file (gchar *filename, Tuple *tuple, PluginHandle *decoder, AddResult *result, gboolean filter) |
static void | add_folder (gchar *filename, AddResult *result) |
static void | add_playlist (gchar *filename, AddResult *result) |
static void | add_generic (gchar *filename, Tuple *tuple, AddResult *result, gboolean filter) |
static gboolean | add_finish (void *unused) |
static void * | add_worker (void *unused) |
void | adder_init (void) |
void | adder_cleanup (void) |
void | playlist_entry_insert (gint playlist, gint at, gchar *filename, Tuple *tuple, gboolean play) |
void | playlist_entry_insert_batch (gint playlist, gint at, struct index *filenames, struct index *tuples, gboolean play) |
Variables | |
static GList * | add_tasks = NULL |
static GList * | add_results = NULL |
static GMutex * | mutex |
static GCond * | cond |
static gboolean | add_quit |
static GThread * | add_thread |
static gint | add_source = 0 |
static gint | status_source = 0 |
static gchar | status_path [512] |
static gint | status_count |
static GtkWidget * | status_window = NULL |
static GtkWidget * | status_path_label |
static GtkWidget * | status_count_label |
static void add_file | ( | gchar * | filename, | |
Tuple * | tuple, | |||
PluginHandle * | decoder, | |||
AddResult * | result, | |||
gboolean | filter | |||
) | [static] |
Definition at line 224 of file adder.c.
Referenced by add_folder(), add_generic(), and add_playlist().
static gboolean add_finish | ( | void * | unused | ) | [static] |
Definition at line 356 of file adder.c.
Referenced by add_worker().
static void add_folder | ( | gchar * | filename, | |
AddResult * | result | |||
) | [static] |
Definition at line 263 of file adder.c.
Referenced by add_generic().
static void add_generic | ( | gchar * | filename, | |
Tuple * | tuple, | |||
AddResult * | result, | |||
gboolean | filter | |||
) | [static] |
Definition at line 341 of file adder.c.
Referenced by add_worker().
static void add_playlist | ( | gchar * | filename, | |
AddResult * | result | |||
) | [static] |
Definition at line 316 of file adder.c.
Referenced by add_generic().
static void add_result_free | ( | AddResult * | result | ) | [static] |
Definition at line 212 of file adder.c.
Referenced by add_finish().
Definition at line 200 of file adder.c.
Referenced by add_worker().
static void add_task_free | ( | AddTask * | task | ) | [static] |
Definition at line 190 of file adder.c.
Referenced by add_worker().
static AddTask* add_task_new | ( | gint | playlist_id, | |
gint | at, | |||
gboolean | play, | |||
struct index * | filenames, | |||
struct index * | tuples | |||
) | [static] |
Definition at line 178 of file adder.c.
Referenced by playlist_entry_insert_batch().
static void* add_worker | ( | void * | unused | ) | [static] |
Definition at line 405 of file adder.c.
Referenced by adder_init().
void adder_cleanup | ( | void | ) |
Definition at line 464 of file adder.c.
Referenced by shut_down().
void adder_init | ( | void | ) |
Definition at line 453 of file adder.c.
Referenced by init_two().
static void index_free_filenames | ( | struct index * | filenames | ) | [static] |
Definition at line 152 of file adder.c.
Referenced by add_result_free(), and add_task_free().
static void index_free_tuples | ( | struct index * | tuples | ) | [static] |
Definition at line 165 of file adder.c.
Referenced by add_result_free(), and add_task_free().
static gboolean status_cb | ( | void * | unused | ) | [static] |
Definition at line 64 of file adder.c.
Referenced by status_update().
static void status_done_locked | ( | void | ) | [static] |
Definition at line 138 of file adder.c.
Referenced by add_finish(), and adder_cleanup().
static void status_update | ( | const gchar * | filename, | |
gint | found | |||
) | [static] |
Definition at line 125 of file adder.c.
Referenced by add_file(), add_folder(), and add_playlist().
Definition at line 54 of file adder.c.
Referenced by add_worker(), adder_cleanup(), and adder_init().
GList* add_results = NULL [static] |
Definition at line 50 of file adder.c.
Referenced by add_finish(), and add_worker().
gint add_source = 0 [static] |
Definition at line 56 of file adder.c.
Referenced by add_finish(), add_worker(), and adder_cleanup().
GList* add_tasks = NULL [static] |
Definition at line 49 of file adder.c.
Referenced by add_finish(), add_worker(), and playlist_entry_insert_batch().
GThread* add_thread [static] |
Definition at line 55 of file adder.c.
Referenced by adder_cleanup(), and adder_init().
GCond* cond [static] |
Definition at line 53 of file adder.c.
Referenced by add_worker(), adder_cleanup(), adder_init(), and playlist_entry_insert_batch().
GMutex* mutex [static] |
Definition at line 52 of file adder.c.
Referenced by add_finish(), add_worker(), adder_cleanup(), adder_init(), playlist_entry_insert_batch(), status_cb(), and status_update().
gint status_count [static] |
Definition at line 60 of file adder.c.
Referenced by status_cb(), and status_update().
GtkWidget * status_count_label [static] |
Definition at line 61 of file adder.c.
Referenced by status_cb().
gchar status_path[512] [static] |
Definition at line 59 of file adder.c.
Referenced by status_cb(), and status_update().
GtkWidget * status_path_label [static] |
Definition at line 61 of file adder.c.
Referenced by status_cb().
gint status_source = 0 [static] |
Definition at line 58 of file adder.c.
Referenced by status_done_locked(), and status_update().
GtkWidget* status_window = NULL [static] |
Definition at line 61 of file adder.c.
Referenced by status_cb(), and status_done_locked().