File: client.h

package info (click to toggle)
gimp-gap 2.6.0%2Bdfsg-3
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 20,716 kB
  • sloc: ansic: 119,817; sh: 3,890; makefile: 931; lisp: 97; pascal: 55
file content (71 lines) | stat: -rw-r--r-- 3,001 bytes parent folder | download | duplicates (4)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/* $Header$
 * Warren W. Gay VE3WWG		Wed Feb 26 22:01:36 1997
 *
 * CLIENT.C HEADER FILE:
 *
 * 	X LessTif WAV Play :
 *
 * 	Copyright (C) 1997  Warren W. Gay VE3WWG
 *
 * This  program is free software; you can redistribute it and/or modify it
 * under the  terms  of  the GNU General Public License as published by the
 * Free Software Foundation version 2 of the License.
 *
 * This  program  is  distributed  in  the hope that it will be useful, but
 * WITHOUT   ANY   WARRANTY;   without   even  the   implied   warranty  of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
 * Public License for more details (see enclosed file COPYING).
 *
 * You  should have received a copy of the GNU General Public License along
 * with this  program; if not, write to the Free Software Foundation, Inc.,
 * 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 * Send correspondance to:
 *
 * 	Warren W. Gay VE3WWG
 * 	5536 Montevideo Road #17
 *	Mississauga, Ontario L5N 2P4
 *
 * Email:
 * 	wwg@ica.net			(current ISP of the month :-) )
 * 	bx249@freenet.toronto.on.ca	(backup)
 *
 * Revision 1.2  1999/12/04 00:01:20  wwg
 * Implement wavplay-1.4 release changes
 *
 * Revision 1.1.1.1  1999/11/21 19:50:56  wwg
 * Import wavplay-1.3 into CVS
 *
 * Revision 1.1  1997/04/14 01:01:16  wwg
 * Initial revision
 *
 */
#ifndef _client_h_
#define _client_h_ "@(#)client.h $Revision$"

extern int tosvr_cmd(MSGTYP cmd,int flags,ErrFunc erf);		/* Simple server command */
extern int tosvr_start(ErrFunc erf);				/* Start server */
extern int tosvr_bye(int flags,ErrFunc erf);			/* Tell server to exit */

#define tosvr_bye(flags,erf) tosvr_cmd(ToSvr_Bye,flags,erf)	/* Tell server to exit */
#define tosvr_play(flags,erf) tosvr_cmd(ToSvr_Play,flags,erf)	/* Tell server to play */
#define tosvr_pause(flags,erf) tosvr_cmd(ToSvr_Pause,flags,erf) /* Tell server to pause */
#define tosvr_stop(flags,erf) tosvr_cmd(ToSvr_Stop,flags,erf)	/* Tell server to stop */
#define tosvr_restore(flags,erf) tosvr_cmd(ToSvr_Restore,flags,erf) /* Tell server to restore settings */
#define tosvr_semreset(flags,erf) tosvr_cmd(ToSvr_SemReset,flags,erf) /* Tell server to reset semaphores */

extern int tosvr_path(const char *path,int flags,ErrFunc erf);	/* Tell server a pathname */
extern int tosvr_bits(int flags,ErrFunc erf,int bits);		/* Tell server bits override */
extern int tosvr_start_sample(int flags, ErrFunc eft, UInt32 sample); /* Tell server to start at sample */
extern int tosvr_sampling_rate(int flags,ErrFunc erf,UInt32 sampling_rate);
extern int tosvr_chan(int flags,ErrFunc erf,Chan chan);		/* Override Mono/Stereo */
extern int tosvr_record(int flags,ErrFunc erf,
	Chan chan_mode,UInt32 sampling_rate,UInt16 data_bits);	/* Start recording */
extern int tosvr_debug(int flags,ErrFunc erf,int bDebugMode);	/* Set debug mode in server */

extern pid_t svrPID;						/* Forked process ID of server */
extern int svrIPC;						/* IPC ID of message queue */

#endif /* _client_h_ */

/* $Source$ */