home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / DC-POS24.LZX / pOS / IncPOS.lzx / pGFX / MonLock.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-03-18  |  1.2 KB  |  50 lines

  1. #ifndef __INC_POS_PGFX_MONLOCK_H
  2. #define __INC_POS_PGFX_MONLOCK_H
  3. /*******************************************************************
  4.  Includes Release 24
  5.  (C) Copyright 1995-1997 proDAD
  6.      All Rights Reserved
  7.  
  8.  $AUT Holger Burkarth
  9.  $DAT >>MonLock.h<<   25 Jan 1997    09:36:13 - (C) ProDAD
  10. *******************************************************************/
  11. #ifndef __INC_POS_PEXEC_LIST_H
  12. #include <pExec/List.h>
  13. #endif
  14.  
  15.  
  16. /*----------------------------------
  17. -----------------------------------*/
  18. struct pOS_MonLock
  19. {
  20.   struct pOS_Node       mfl_Node;
  21.   struct pOS_MonDevice *mfl_MonDev;
  22.   UBYTE                 mfl_Access;  /* (enum pOS_MonLockAccess) */
  23.   UBYTE                 mfl_Flags;   /* null */
  24.   UWORD                 mfl_Count;   /* Mehrfachnutzung */
  25.  
  26.   UBYTE mfl_Reserved[32]; /* *** must be null */
  27. };
  28.  
  29.  
  30. enum pOS_MonLockAccess
  31. {
  32.   MONLKACC_Shared    = 0x00,
  33.   MONLKACC_Exclusive = 0x01,
  34. };
  35.  
  36.  
  37. /** result of pOS_SameMonObject() **/
  38. enum pOS_SameMonLockType
  39. {
  40.   MONLKSF_None      = 0x0000, /* */
  41.   MONLKSF_Different = 0x0000, /* */
  42.   MONLKSF_Device    = 0x0001, /* Locks on same Device and Unit (xy.monitor,0) */
  43.   MONLKSF_Object    = 0x0008, /* Locks on same Object (100%) */
  44.  
  45.   MONLKSF_Same = MONLKSF_Object
  46. };
  47.  
  48.  
  49. #endif
  50.