KCompactDisc

wm_cdinfo.h
1 #ifndef WM_CDINFO_H
2 #define WM_CDINFO_H
3 /*
4  * $Id: wm_cdinfo.h 486075 2005-12-06 18:29:02Z thiago $
5  *
6  * This file is part of WorkMan, the civilized CD player library
7  * Copyright (C) 1991-1997 by Steven Grimm (original author)
8  * Copyright (C) by Dirk Försterling <[email protected]>
9  * Copyright (C) 2004-2006 Alexander Kern <[email protected]>
10  *
11  * This library is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU Library General Public
13  * License as published by the Free Software Foundation; either
14  * version 2 of the License, or (at your option) any later version.
15  *
16  * This library is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19  * Library General Public License for more details.
20  *
21  * You should have received a copy of the GNU Library General Public
22  * License along with this library; if not, write to the Free
23  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
24  *
25  * Prototypes from cdinfo.c
26  *
27  * This is just one more step to a more modular and understandable code.
28  */
29 
30 #include "wm_struct.h"
31 extern char *cur_trackname; /* Take a guess */
32 extern int cur_index; /* Current index mark */
33 extern int cur_frame; /* Current frame number */
34 extern struct wm_play *playlist; /* = NULL */
35 
36 /*extern int cur_track;*/ /* Current track number, starting at 1 */
37 extern char *cur_artist; /* Name of current CD's artist */
38 extern char cur_avoid; /* Avoid flag */
39 extern char cur_contd; /* Continued flag */
40 extern char *cur_cdname; /* Album name */
41 extern int cur_nsections; /* Number of sections currently defined */
42 extern int exit_on_eject;
43 extern int cur_pos_abs;
44 extern int cur_pos_rel;
45 extern int cur_cdlen;
46 
47 extern int cur_ntracks;
48 extern int cur_lasttrack;
49 extern int cur_firsttrack;
50 extern int cur_listno;
51 extern int cur_stopmode;
52 
53 void wipe_cdinfo( void );
54 void play_next_entry( int forward );
55 void make_playlist( int playmode, int starttrack );
56 int get_autoplay( void );
57 int get_playmode( void );
58 void pl_find_track( int track );
59 void play_prev_track( int forward );
60 void play_next_track( int forward );
61 int tracklen( int num );
62 int get_default_volume( int track );
63 int split_trackinfo( int pos );
64 int remove_trackinfo( int num );
65 void freeup( char **x );
66 int get_runtime( void );
67 const char *trackname( int num );
68 void stash_cdinfo( char *artist, char *cdname, int autoplay, int playmode );
69 void stash_trkinfo( int track, char *songname, int contd, int avoid );
70 int get_avoid( int num );
71 int get_contd( int num );
72 void default_volume( int track, int vol );
73 char *listentry( int num );
74 
75 #endif /* WM_CDINFO_H */
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Oct 18 2021 23:23:11 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.