myMPD
Internal API documentation
Loading...
Searching...
No Matches
jukebox.c File Reference

Jukebox library. More...

#include "compile_time.h"
#include "src/lib/jukebox.h"
#include "src/lib/filehandler.h"
#include "src/lib/log.h"
#include "src/lib/mpack.h"
#include "src/lib/mympd_state.h"
#include "src/lib/sds_extras.h"
#include <string.h>
#include <unistd.h>
Include dependency graph for jukebox.c:

Functions

enum jukebox_modes jukebox_mode_parse (const char *str)
 
const char * jukebox_mode_lookup (enum jukebox_modes mode)
 
bool jukebox_file_save (struct t_partition_state *partition_state)
 
bool jukebox_file_read (struct t_partition_state *partition_state)
 

Detailed Description

Jukebox library.

Function Documentation

◆ jukebox_file_read()

bool jukebox_file_read ( struct t_partition_state partition_state)

Reads the jukebox list from disc

Parameters
partition_statepointer to partition state
Returns
true on success, else false

◆ jukebox_file_save()

bool jukebox_file_save ( struct t_partition_state partition_state)

Saves the jukebox list to disc

Parameters
partition_statepointer to partition state
Returns
true on success, else false

◆ jukebox_mode_lookup()

const char * jukebox_mode_lookup ( enum jukebox_modes  mode)

Returns the jukebox mode as string

Parameters
modethe jukebox mode
Returns
jukebox mode as string

◆ jukebox_mode_parse()

enum jukebox_modes jukebox_mode_parse ( const char *  str)

Parses the string to the jukebox mode

Parameters
strstring to parse
Returns
jukebox mode