©2004 by Marc J. Rochkind. All rights reserved. Portions marked "Open Source" may be copied under license.

 

Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

c4/ptutil.h

Go to the documentation of this file.
00001 #ifndef _PTUTIL_H_
00002 #define _PTUTIL_H_
00003 
00004 /*
00005     Assumes "defs.h" is already included to get definition of bool.
00006 */
00007 /*[PTINFO]*/
00008 #define PT_MAX_NAME 20
00009 
00010 typedef struct {
00011     int pt_fd_m;                    /* master file descriptor */
00012     int pt_fd_s;                    /* slave file descriptor */
00013     char pt_name_m[PT_MAX_NAME];    /* master file name */
00014     char pt_name_s[PT_MAX_NAME];    /* slave file name */
00015 } PTINFO;
00016 
00017 #define PT_GET_MASTER_FD(p)     ((p)->pt_fd_m)
00018 #define PT_GET_SLAVE_FD(p)      ((p)->pt_fd_s)
00019 /*[]*/
00020 //#define PT_GET_MASTER_NAME(p) ((p)->pt_name_m)
00021 //#define PT_GET_SLAVE_NAME(p)  ((p)->pt_name_s)
00022 PTINFO *pt_open_master(void);
00023 bool pt_wait_master(PTINFO *p);
00024 bool pt_open_slave(PTINFO *p);
00025 bool pt_close_master(PTINFO *p);
00026 bool pt_close_slave(PTINFO *p);
00027 
00028 #endif /* _PTUTIL_H_ */

Generated on Fri Apr 23 10:56:55 2004 for AUP2 Example Source by doxygen 1.3.1