1 /*  cdrdao - write audio CD-Rs in disc-at-once mode
2  *
3  *  Copyright (C) 1998-2000  Andreas Mueller <mueller@daneb.ping.de>
4  *
5  *  This program is free software; you can redistribute it and/or modify
6  *  it under the terms of the GNU General Public License as published by
7  *  the Free Software Foundation; either version 2 of the License, or
8  *  (at your option) any later version.
9  *
10  *  This program is distributed in the hope that it will be useful,
11  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  *  GNU General Public License for more details.
14  *
15  *  You should have received a copy of the GNU General Public License
16  *  along with this program; if not, write to the Free Software
17  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18  */
19 /*
20  * $Log: remote.h,v $
21  * Revision 1.6  2004/02/12 01:13:31  poolshark
22  * Merge from gnome2 branch
23  *
24  * Revision 1.5.4.1  2004/01/12 20:53:33  poolshark
25  * Added writer buffer fill in Progress Message structure
26  *
27  * Revision 1.5  2001/10/01 18:08:41  andreasm
28  * Enabled remote progress messages for blanking.
29  *
30  * Revision 1.4  2000/11/05 19:20:59  andreasm
31  * Unified progress messages sent from cdrdao to gcdmaster.
32  *
33  * Revision 1.3  2000/10/08 16:39:41  andreasm
34  * Remote progress message now always contain the track relative and total
35  * progress and the total number of processed tracks.
36  *
37  * Revision 1.2  2000/04/23 16:29:50  andreasm
38  * Updated to state of my private development environment.
39  *
40  * Revision 1.2  1999/12/15 20:31:46  mueller
41  * Added remote messages for 'read-cd' progress used by a GUI.
42  *
43  * Revision 1.1  1999/11/07 09:17:08  mueller
44  * Initial revision
45  *
46  */
47 
48 #ifndef __REMOTE_H__
49 #define __REMOTE_H__
50 
51 #define PGSMSG_MIN PGSMSG_RCD_ANALYZING
52 #define PGSMSG_RCD_ANALYZING   1
53 #define PGSMSG_RCD_EXTRACTING  2
54 #define PGSMSG_WCD_LEADIN      3
55 #define PGSMSG_WCD_DATA        4
56 #define PGSMSG_WCD_LEADOUT     5
57 #define PGSMSG_BLK             6
58 #define PGSMSG_MAX PGSMSG_BLK
59 
60 #define PSGMSG_MINSIZE 24
61 
62 struct ProgressMsg {
63   int status;         // see PGSMSG_* constants
64   int totalTracks;    // total number of tracks
65   int track;          // actually written track
66   int trackProgress;  // progress for current track 0..1000
67   int totalProgress;  // total writing progress 0..1000
68   int bufferFillRate; // buffer fill rate 0..100
69   int writerFillRate; // device write buffer fill rate 0..100
70 };
71 
72 #endif
73