1 /* $Header: /home/cvs/wavplay/client.h,v 1.2 1999/12/04 00:01:20 wwg Exp $ 2 * Warren W. Gay VE3WWG Wed Feb 26 22:01:36 1997 3 * 4 * CLIENT.C HEADER FILE: 5 * 6 * X LessTif WAV Play : 7 * 8 * Copyright (C) 1997 Warren W. Gay VE3WWG 9 * 10 * This program is free software; you can redistribute it and/or modify it 11 * under the terms of the GNU General Public License as published by the 12 * Free Software Foundation version 2 of the License. 13 * 14 * This program is distributed in the hope that it will be useful, but 15 * WITHOUT ANY WARRANTY; without even the implied warranty of 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 17 * Public License for more details (see enclosed file COPYING). 18 * 19 * You should have received a copy of the GNU General Public License along 20 * with this program; if not, write to the Free Software Foundation, Inc., 21 * 675 Mass Ave, Cambridge, MA 02139, USA. 22 * 23 * Send correspondance to: 24 * 25 * Warren W. Gay VE3WWG 26 * 5536 Montevideo Road #17 27 * Mississauga, Ontario L5N 2P4 28 * 29 * Email: 30 * wwg@ica.net (current ISP of the month :-) ) 31 * bx249@freenet.toronto.on.ca (backup) 32 * 33 * $Log: client.h,v $ 34 * Revision 1.2 1999/12/04 00:01:20 wwg 35 * Implement wavplay-1.4 release changes 36 * 37 * Revision 1.1.1.1 1999/11/21 19:50:56 wwg 38 * Import wavplay-1.3 into CVS 39 * 40 * Revision 1.1 1997/04/14 01:01:16 wwg 41 * Initial revision 42 * 43 * Revision 1.1 1997/04/14 00:11:03 wwg 44 * Initial revision 45 * 46 * $Log: client.h,v $ 47 * Revision 1.2 1999/12/04 00:01:20 wwg 48 * Implement wavplay-1.4 release changes 49 * 50 * Revision 1.1.1.1 1999/11/21 19:50:56 wwg 51 * Import wavplay-1.3 into CVS 52 * 53 * Revision 1.1 1997/04/14 01:01:16 wwg 54 * Initial revision 55 * 56 */ 57 #ifndef _client_h_ 58 #define _client_h_ "@(#)client.h $Revision: 1.2 $" 59 60 extern int tosvr_cmd(MSGTYP cmd,int flags,ErrFunc erf); /* Simple server command */ 61 extern int tosvr_start(ErrFunc erf); /* Start server */ 62 extern int tosvr_bye(int flags,ErrFunc erf); /* Tell server to exit */ 63 64 #define tosvr_bye(flags,erf) tosvr_cmd(ToSvr_Bye,flags,erf) /* Tell server to exit */ 65 #define tosvr_play(flags,erf) tosvr_cmd(ToSvr_Play,flags,erf) /* Tell server to play */ 66 #define tosvr_pause(flags,erf) tosvr_cmd(ToSvr_Pause,flags,erf) /* Tell server to pause */ 67 #define tosvr_stop(flags,erf) tosvr_cmd(ToSvr_Stop,flags,erf) /* Tell server to stop */ 68 #define tosvr_restore(flags,erf) tosvr_cmd(ToSvr_Restore,flags,erf) /* Tell server to restore settings */ 69 #define tosvr_semreset(flags,erf) tosvr_cmd(ToSvr_SemReset,flags,erf) /* Tell server to reset semaphores */ 70 71 extern int tosvr_path(const char *path,int flags,ErrFunc erf); /* Tell server a pathname */ 72 extern int tosvr_bits(int flags,ErrFunc erf,int bits); /* Tell server bits override */ 73 extern int tosvr_start_sample(int flags, ErrFunc eft, UInt32 sample); /* Tell server to start at sample */ 74 extern int tosvr_sampling_rate(int flags,ErrFunc erf,UInt32 sampling_rate); 75 extern int tosvr_chan(int flags,ErrFunc erf,Chan chan); /* Override Mono/Stereo */ 76 extern int tosvr_record(int flags,ErrFunc erf, 77 Chan chan_mode,UInt32 sampling_rate,UInt16 data_bits); /* Start recording */ 78 extern int tosvr_debug(int flags,ErrFunc erf,int bDebugMode); /* Set debug mode in server */ 79 80 extern pid_t svrPID; /* Forked process ID of server */ 81 extern int svrIPC; /* IPC ID of message queue */ 82 83 #endif /* _client_h_ */ 84 85 /* $Source: /home/cvs/wavplay/client.h,v $ */ 86