Add missing libraries to examples' Makefiles
[dockapps.git] / ascd / libworkman / include / wm_cdinfo.h
blobdc1204a6c41828949444ed883ae74729311d2ed2
1 #ifndef WM_CDINFO_H
2 #define WM_CDINFO_H
3 /*
4 * $Id: wm_cdinfo.h,v 1.5 1999/05/28 03:35:58 dirk Exp $
6 * This file is part of WorkMan, the civilized CD player library
7 * (c) 1991-1997 by Steven Grimm (original author)
8 * (c) by Dirk Försterling (current 'author' = maintainer)
9 * The maintainer can be contacted by his e-mail address:
10 * milliByte@DeathsDoor.com
12 * This library is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU Library General Public
14 * License as published by the Free Software Foundation; either
15 * version 2 of the License, or (at your option) any later version.
17 * This library is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * Library General Public License for more details.
22 * You should have received a copy of the GNU Library General Public
23 * License along with this library; if not, write to the Free
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 * Prototypes from cdinfo.c
28 * This is just one more step to a more modular and understandable code.
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 extern struct wm_cdinfo thiscd;
36 extern struct wm_cdinfo *cd;
37 extern int cur_track; /* Current track number, starting at 1 */
38 extern char *cur_artist; /* Name of current CD's artist */
39 extern char cur_avoid; /* Avoid flag */
40 extern char cur_contd; /* Continued flag */
41 extern char *cur_cdname; /* Album name */
42 extern int cur_nsections; /* Number of sections currently defined */
43 extern int exit_on_eject;
44 extern int cur_track;
45 extern int cur_pos_abs;
46 extern int cur_pos_rel;
47 extern int cur_tracklen;
48 extern int cur_cdlen;
49 extern enum wm_cd_modes cur_cdmode;
50 extern int cur_ntracks;
51 extern int cur_lasttrack;
52 extern int cur_firsttrack;
53 extern int cur_listno;
54 extern int cur_stopmode;
56 void wipe_cdinfo( void );
57 void play_next_entry( int forward );
58 void make_playlist( int playmode, int starttrack );
59 int get_autoplay( void );
60 int get_playmode( void );
61 void pl_find_track( int track );
62 void play_prev_track( int forward );
63 void play_next_track( int forward );
64 int tracklen( int num );
65 int get_default_volume( int track );
66 int split_trackinfo( int pos );
67 int remove_trackinfo( int num );
68 void freeup( char **x );
69 int get_runtime( void );
70 char *trackname( int num );
71 void stash_cdinfo( char *artist, char *cdname, int autoplay, int playmode );
72 void stash_trkinfo( int track, char *songname, int contd, int avoid );
73 int get_avoid( int num );
74 int get_contd( int num );
75 void default_volume( int track, int vol );
76 char *listentry( int num );
78 #endif /* WM_CDINFO_H */