Skip to content

Latest commit

 

History

History
30 lines (26 loc) · 1.12 KB

playlist.h

File metadata and controls

30 lines (26 loc) · 1.12 KB
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
playlist: playlist logic
copyright 1995-2007 by the mpg123 project - free software under the terms of the LGPL 2.1
see COPYING and AUTHORS files in distribution or http://mpg123.org
initially written by Michael Hipp, outsourced/reorganized by Thomas Orgis
*/
#ifndef MPG123_PLAYLIST_H
#define MPG123_PLAYLIST_H
#include "mpg123app.h"
/* create playlist form argv including reading of playlist file */
void prepare_playlist(int argc, char** argv);
/* returns the next url to play or NULL when there is none left */
char *get_next_file(void);
/* Get current track number, optionally the total count and loop counter. */
size_t playlist_pos(size_t *total, long *loop);
/* frees memory that got allocated in prepare_playlist */
void free_playlist(void);
/* Print out the playlist, with optional position indicator. */
void print_playlist(FILE* out, int showpos);
/* This prepares a jump to be executed on next get_next_file(). */
void playlist_jump(ssize_t incr);
/* Aim for the next directory (just trigger next track for random play). */
void playlist_next_dir(void);
/* Same for previous one. */
void playlist_prev_dir(void);
#endif