home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / CLIPPER / MISC / MAILBOX.ZIP / MPBOX.H < prev    next >
Encoding:
C/C++ Source or Header  |  1988-06-27  |  2.5 KB  |  56 lines

  1. /****************************************************************************/
  2. /* mpbox.h  -- MAIL BOX CLUSTER                (INTERFACE)        */
  3. /* Created:  12/12/87        Release:  0.7        Version:  3/22/88   */
  4. /****************************************************************************
  5. (c) Copyright 1987 by Michael Benjamin Parker           (USA SS# 557-49-4130)
  6.  
  7. All Rights Reserved unless specified in the following include files: */
  8. #include "mptsk.cpy" /*
  9.  
  10. DO NOT REMOVE OR ALTER THIS NOTICE AND ITS PROVISIONS.
  11. ****************************************************************************/
  12. /* OVERVIEW:
  13.  
  14. *****************************************************************************/
  15. /****************************************************************************/
  16. #ifndef    MPBOX_H
  17. #define MPBOX_H
  18. #include "mpmisc.h"
  19. #include "mprng.h"
  20. /****************************************************************************/
  21. #if (!((defined(unix) && (defined(vax) || defined(ibm032)||defined(ibm370))) \
  22.     || defined(__TURBOC__) || defined(M_I86)))
  23.     Error!  Currently, this code only runs:
  24.         in UNIX C (on the IBM RT or VAX)
  25.         in MS-DOS (in  Turbo C or Microsoft C)
  26. #endif
  27. /****************************************************************************/
  28. /****************************************************************************/
  29. /****************************************************************************/
  30. /****************************************************************************/
  31. /* DATA INTERFACE:                                */
  32. typedef    struct _MPBOX    MPBOX, PTR MPBOXID;
  33. /****************************************************************************/
  34. /****************************************************************************/
  35. /* CODE INTERFACE:                                */
  36. MPBOXID        mpbox_init    ARGS((void PTR buf));
  37. void PTR    mpbox_dinit    ARGS((MPBOXID mpbox));
  38. MPRNGID        mpbox_xfer    ARGS((MPBOXID mpbox, BOOL next, MPRNGID msg));
  39. void        mpbox_printall    ARGS((MPBOXID mpbox));
  40. /****************************************************************************/
  41. /****************************************************************************/
  42. /* STRUCTURE, EXTERNAL-VARIBLE, AND MACRO DEFINITION:                */
  43. #include "mpsem.h"
  44. /****************************************************************************/
  45. struct _MPBOX {
  46.     MPRNG    mprng;
  47.     MPSEM    mpsem;
  48.     SINT    msgcnt;
  49.     MPRNG    msgs;
  50. };
  51. /****************************************************************************/
  52. /****************************************************************************/
  53. #endif    /* MPBOX_H */
  54.  
  55.  
  56.