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 <milliByte@DeathsDoor.com>
9 * Copyright (C) 2004-2006 Alexander Kern <alex.kern@gmx.de>
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"
31extern char *cur_trackname; /* Take a guess */
32extern int cur_index; /* Current index mark */
33extern int cur_frame; /* Current frame number */
34extern struct wm_play *playlist; /* = NULL */
35
36/*extern int cur_track;*/ /* Current track number, starting at 1 */
37extern char *cur_artist; /* Name of current CD's artist */
38extern char cur_avoid; /* Avoid flag */
39extern char cur_contd; /* Continued flag */
40extern char *cur_cdname; /* Album name */
41extern int cur_nsections; /* Number of sections currently defined */
42extern int exit_on_eject;
43extern int cur_pos_abs;
44extern int cur_pos_rel;
45extern int cur_cdlen;
46
47extern int cur_ntracks;
48extern int cur_lasttrack;
49extern int cur_firsttrack;
50extern int cur_listno;
51extern int cur_stopmode;
52
53void wipe_cdinfo( void );
54void play_next_entry( int forward );
55void make_playlist( int playmode, int starttrack );
56int get_autoplay( void );
57int get_playmode( void );
58void pl_find_track( int track );
59void play_prev_track( int forward );
60void play_next_track( int forward );
61int tracklen( int num );
62int get_default_volume( int track );
63int split_trackinfo( int pos );
64int remove_trackinfo( int num );
65void freeup( char **x );
66int get_runtime( void );
67const char *trackname( int num );
68void stash_cdinfo( char *artist, char *cdname, int autoplay, int playmode );
69void stash_trkinfo( int track, char *songname, int contd, int avoid );
70int get_avoid( int num );
71int get_contd( int num );
72void default_volume( int track, int vol );
73char *listentry( int num );
74
75#endif /* WM_CDINFO_H */
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:00:58 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.