home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / warphead.zip / H / SESSHDR.H < prev    next >
C/C++ Source or Header  |  1997-02-28  |  3KB  |  116 lines

  1. /* @(#)Z 1.4 com/src/bento/SessHdr.h, odstorage, od96os2, odos29646d 96/11/15 15:26:36 (96/10/29 09:13:51) */
  2. /*====START_GENERATED_PROLOG======================================
  3.  */
  4. /*
  5.  *   COMPONENT_NAME: odstorage
  6.  *
  7.  *   CLASSES: none
  8.  *
  9.  *   ORIGINS: 82,27
  10.  *
  11.  *
  12.  *   (C) COPYRIGHT International Business Machines Corp. 1995,1996
  13.  *   All Rights Reserved
  14.  *   Licensed Materials - Property of IBM
  15.  *   US Government Users Restricted Rights - Use, duplication or
  16.  *   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  17.  *       
  18.  *   IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  19.  *   ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  20.  *   PURPOSE. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  21.  *   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  22.  *   USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  23.  *   OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  24.  *   OR PERFORMANCE OF THIS SOFTWARE.
  25.  */
  26. /*====END_GENERATED_PROLOG========================================
  27.  */
  28.  
  29. /*
  30.     File:        SessHdr.h
  31.  
  32.     Contains:    Definition for session-related Bento Handlers.
  33.  
  34.     Owned by:    Vincent Lo
  35.  
  36.     Copyright:    ⌐ 1993 - 1995 by Apple Computer, Inc., all rights reserved.
  37.  
  38.     Change History (most recent first):
  39.  
  40.          <4>    10/24/95    jpa        1293441: DM: Bento memory reserve.
  41.          <3>     6/20/94    CC        ODMemoryHeap* changed to ODMemoryHeapID.
  42.          <2>     6/15/94    RR        ODHeap -> ODMemoryHeap
  43.          <1>     5/27/94    VL        first checked in
  44.  
  45.     To Do:
  46.     In Progress:
  47.         
  48. */
  49.  
  50.  
  51. #ifndef _SESSHDR_
  52. #define _SESSHDR_
  53.  
  54. #ifndef __CM_API__
  55. #include "CMAPI.h"
  56. #endif
  57.  
  58. #ifndef _ODTYPES_
  59. #include "ODTypes.h"
  60. #endif
  61.  
  62. #ifndef _ODMEMORY_
  63. #include "ODMemory.h"
  64. #endif
  65.  
  66. //==============================================================================
  67. // Classes used by this interface
  68. //==============================================================================
  69. class ODContainer;
  70.  
  71. //==============================================================================
  72. // Scalar Types
  73. //==============================================================================
  74.  
  75. typedef struct ODSessionRefCon ODSessionRefCon;
  76. struct ODSessionRefCon {
  77.     ODSessionRefCon() {}
  78.     ~ODSessionRefCon() {}
  79.     ODContainer*    container;
  80.     ODMemoryHeapID            heap;
  81.  
  82.     void*            cmAllocReserveBlock;
  83.     CMSize           cmAllocReserveSize;
  84.     
  85. #ifdef ODDebugBentoSize
  86.     ODULong          fMark;
  87.     ODULong          fTotal;
  88.     ODULong          fHighest;
  89.     // ODULong          fLowest;
  90.     ODULong          fHigh;
  91.     ODULong          fLow;
  92.     ODBoolean        fUp;
  93. #endif
  94.  
  95. };
  96.  
  97. void ODSessionMustHaveCMAllocReserve(CMContainer cmContainer);
  98. void ODSessionRestoreCMAllocReserve(CMContainer cmContainer);
  99.  
  100.  
  101. //==============================================================================
  102. // sessionRoutinesMetahandler
  103. //==============================================================================
  104.  
  105.     CM_CFUNCTION
  106.     
  107. CMHandlerAddr CM_FIXEDARGS sessionRoutinesMetahandler(CMType targetType, CMconst_CMGlobalName operationType);
  108.  
  109.     // Metahandler proc for determining the addresses of the session handler operation routines.
  110.     // Pass the address of this routine to a CMStartSession() call.
  111.  
  112.     CM_END_CFUNCTIONS
  113.  
  114.  
  115. #endif    // _SESSHDR_
  116.