ncmpc  0.29
Data Structures | Functions
filelist.h File Reference
#include "Compiler.h"
#include <glib.h>

Go to the source code of this file.

Data Structures

struct  filelist_entry
 
struct  filelist
 

Functions

struct filelistfilelist_new (void)
 
void filelist_free (struct filelist *filelist)
 
struct filelist_entryfilelist_append (struct filelist *filelist, struct mpd_entity *entity)
 
void filelist_move (struct filelist *filelist, struct filelist *from)
 
gcc_pure gint compare_filelist_entry_path (gconstpointer filelist_entry1, gconstpointer filelist_entry2)
 
void filelist_sort_all (struct filelist *filelist, GCompareFunc compare_func)
 
void filelist_sort_dir_play (struct filelist *filelist, GCompareFunc compare_func)
 
void filelist_no_duplicates (struct filelist *filelist)
 
gcc_pure int filelist_find_song (const struct filelist *flist, const struct mpd_song *song)
 
gcc_pure int filelist_find_directory (const struct filelist *filelist, const char *name)
 
void filelist_recv (struct filelist *filelist, struct mpd_connection *connection)
 
struct filelistfilelist_new_recv (struct mpd_connection *connection)
 

Function Documentation

◆ filelist_new()

struct filelist* filelist_new ( void  )

◆ filelist_free()

void filelist_free ( struct filelist filelist)

◆ filelist_append()

struct filelist_entry* filelist_append ( struct filelist filelist,
struct mpd_entity *  entity 
)

◆ filelist_move()

void filelist_move ( struct filelist filelist,
struct filelist from 
)

◆ compare_filelist_entry_path()

gcc_pure gint compare_filelist_entry_path ( gconstpointer  filelist_entry1,
gconstpointer  filelist_entry2 
)

◆ filelist_sort_all()

void filelist_sort_all ( struct filelist filelist,
GCompareFunc  compare_func 
)

◆ filelist_sort_dir_play()

void filelist_sort_dir_play ( struct filelist filelist,
GCompareFunc  compare_func 
)

◆ filelist_no_duplicates()

void filelist_no_duplicates ( struct filelist filelist)

Eliminates duplicate songs from the filelist.

◆ filelist_find_song()

gcc_pure int filelist_find_song ( const struct filelist flist,
const struct mpd_song *  song 
)

◆ filelist_find_directory()

gcc_pure int filelist_find_directory ( const struct filelist filelist,
const char *  name 
)

◆ filelist_recv()

void filelist_recv ( struct filelist filelist,
struct mpd_connection *  connection 
)

Receives entities from the connection, and appends them to the specified filelist. This does not finish the response, and does not check for errors.

◆ filelist_new_recv()

struct filelist* filelist_new_recv ( struct mpd_connection *  connection)

Creates a new filelist and receives entities from the connection. This does not finish the response, and does not check for errors.