1 /*
2  * $Id: qipc.h,v 1.3 2005/05/16 11:17:30 mitry Exp $
3  *
4  * $Log: qipc.h,v $
5  * Revision 1.3  2005/05/16 11:17:30  mitry
6  * Updated function prototypes. Changed code a bit.
7  *
8  * Revision 1.2  2005/03/31 19:40:38  mitry
9  * Update function prototypes and it's duplication
10  *
11  */
12 
13 #ifndef __QIPC_H__
14 #define __QIPC_H__
15 
16 void	qsendpkt(char, const char *, const char *, size_t);
17 size_t	qrecvpkt(char *);
18 void	vlogs(const char *);
19 void	vlog(const char *, ...);
20 void	sendrpkt(char, int, const char *, ...);
21 void	sline(const char *, ...);
22 void	title(const char *, ...);
23 void	qemsisend(const ninfo_t *);
24 void	qpreset(int);
25 void	qpqueue(const ftnaddr_t *, int, int, int, int);
26 void	qpproto(char, const pfile_t *);
27 void	qpmydata(void);
28 
29 #define QLNAME		log_tty ? ( is_ip ? ip_id : log_tty ) : "master"
30 #define qpfsend()	qpproto( QC_SENDD, &sendf )
31 #define qpfrecv()	qpproto( QC_RECVD, &recvf )
32 #define qereset()	qsendpkt( QC_EMSID, QLNAME, "", 0 )
33 #define qqreset()	qsendpkt( QC_QUEUE, QLNAME, "", 0 )
34 #define vidle()		qsendpkt( QC_LIDLE, QLNAME, "", 0 )
35 #define qlerase()	qsendpkt( QC_ERASE, QLNAME, "", 0 )
36 #define qlcerase()	qsendpkt( QC_CERASE,QLNAME, "", 0 )
37 #define qchat(x)	qsendpkt( QC_CHAT, QLNAME, (x), strlen((x))+1 )
38 
39 #endif
40