home *** CD-ROM | disk | FTP | other *** search
- /****************************************************************************/
- /* mpbox.h -- MAIL BOX CLUSTER (INTERFACE) */
- /* Created: 12/12/87 Release: 0.7 Version: 3/22/88 */
- /****************************************************************************
- (c) Copyright 1987 by Michael Benjamin Parker (USA SS# 557-49-4130)
-
- All Rights Reserved unless specified in the following include files: */
- #include "mptsk.cpy" /*
-
- DO NOT REMOVE OR ALTER THIS NOTICE AND ITS PROVISIONS.
- ****************************************************************************/
- /* OVERVIEW:
-
- *****************************************************************************/
- /****************************************************************************/
- #ifndef MPBOX_H
- #define MPBOX_H
- #include "mpmisc.h"
- #include "mprng.h"
- /****************************************************************************/
- #if (!((defined(unix) && (defined(vax) || defined(ibm032)||defined(ibm370))) \
- || defined(__TURBOC__) || defined(M_I86)))
- Error! Currently, this code only runs:
- in UNIX C (on the IBM RT or VAX)
- in MS-DOS (in Turbo C or Microsoft C)
- #endif
- /****************************************************************************/
- /****************************************************************************/
- /****************************************************************************/
- /****************************************************************************/
- /* DATA INTERFACE: */
- typedef struct _MPBOX MPBOX, PTR MPBOXID;
- /****************************************************************************/
- /****************************************************************************/
- /* CODE INTERFACE: */
- MPBOXID mpbox_init ARGS((void PTR buf));
- void PTR mpbox_dinit ARGS((MPBOXID mpbox));
- MPRNGID mpbox_xfer ARGS((MPBOXID mpbox, BOOL next, MPRNGID msg));
- void mpbox_printall ARGS((MPBOXID mpbox));
- /****************************************************************************/
- /****************************************************************************/
- /* STRUCTURE, EXTERNAL-VARIBLE, AND MACRO DEFINITION: */
- #include "mpsem.h"
- /****************************************************************************/
- struct _MPBOX {
- MPRNG mprng;
- MPSEM mpsem;
- SINT msgcnt;
- MPRNG msgs;
- };
- /****************************************************************************/
- /****************************************************************************/
- #endif /* MPBOX_H */
-
-