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

  1. /* @(#)Z 1.4 com/src/cm/CMAPIIDs.h, odstorage, od96os2, odos29646d 96/11/15 15:26:42 (96/10/29 09:16:09) */
  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:        CMAPIIDs.h
  31.  
  32.     Contains:    Container Manager Standard Object ID Definitions, etc.
  33.  
  34.     Written by:    Ira L. Ruben
  35.  
  36.     Owned by:    Ed Lai
  37.  
  38.     Copyright:    ⌐ 1994 by Apple Computer, Inc., all rights reserved.
  39.  
  40.     Change History (most recent first):
  41.  
  42.          <2>     8/26/94    EL        #1181622 Ownership update.
  43.  
  44.     To Do:
  45. */
  46.  
  47. /* (use tabs = 2 to view this file correctly) */
  48. /*---------------------------------------------------------------------------*
  49.  |                                                                           |
  50.  |                         <<< CM_API_StdObjIDs.h >>>                        |
  51.  |                                                                           |
  52.  |          Container Manager Standard Object ID Definitions, etc.           |
  53.  |                                                                           |
  54.  |                               Ira L. Ruben                                |
  55.  |                                 12/13/91                                  |
  56.  |                                                                           |
  57.  |                  Copyright Apple Computer, Inc. 1991-1994                 |
  58.  |                           All rights reserved.                            |
  59.  |                                                                           |
  60.  *---------------------------------------------------------------------------*
  61.  
  62.  All standard object ID's and global names are defined in the file.  Also defined are the
  63.  standard metahandler operation type strings.
  64. */
  65.  
  66.  
  67. #ifndef __CM_API_STDOBJIDS__
  68. #define __CM_API_STDOBJIDS__
  69.  
  70.  
  71. /*-------------------------------------------*
  72.  | Predefined Object, Property, and Type IDs |
  73.  *-------------------------------------------*
  74.  
  75.  These ID's are used by the API to define standard objects in the container and its TOC.
  76.  You can use them where applicable to look at these objects.
  77. */
  78.  
  79. #define CM_StdObjID_TOC                             1        /* TOC object    ID                                       (object)    */
  80. #define CM_StdObjID_TOC_Seed                  2        /* TOC object starting seed              (property) */
  81. #define CM_StdObjID_TOC_MinSeed              3        /* TOC object minimum seed                 (property) */
  82. #define CM_StdObjID_TOC_Object             4        /* TOC object                                             (property)    */
  83. #define CM_StdObjID_TOC_Container         5        /* TOC object    entire container          (property)    */
  84. #define CM_StdObjID_TOC_Deleted             6        /* TOC object amount deleted              (property)    */
  85. #define CM_StdObjID_TOC_Free                 7        /* TOC object    free space                     (property)    */
  86. #define CM_StdObjID_TOC_NewValuesTOC 8        /* TOC object new values TOC             (property)    */
  87. #define CM_StdObjID_TOC_Target             9        /* TOC object    target container ref.(property)    */
  88. #define CM_StdObjID_TOC_DeleteList    10        /* TOC object delete update list     (property)    */
  89.  
  90. #define CM_StdObjID_TOC_Type                19        /* TOC object property value type             (type) */
  91.  
  92. #define CM_StdObjID_Writable                20        /* Predefined ID's below this value will be        */
  93.                                                                                     /* written to container TOC.  Predefined ID's    */
  94.                                                                                     /* above this are NOT written.                                */
  95.  
  96. #define CM_StdObjID_7BitASCII                21        /* 7-bit ASCII                                                 (type) */
  97. #define CM_StdObjID_8BitASCII                22        /* 8-bit ASCII                                                 (type) */
  98. #define CM_StdObjID_GlobalTypeName    23        /* Global type name                                 (property) */
  99. #define CM_StdObjID_GlobalPropName    24        /* Global property name                         (property) */
  100.  
  101. #define CM_StdObjID_DynamicValues      25        /* Dynamic values                                 (property) */
  102. #define CM_StdObjID_BaseTypes              26        /* Base types                                         (property) */
  103. #define CM_StdObjID_BaseTypeList      27        /* Base type list                                           (type) */
  104.  
  105. #define CM_StdObjID_TargetContainer    28        /* Target container                                       (type) */
  106. #define CM_StdObjID_ValueUpdates        29        /* Value updates for object             (property) */
  107. #define CM_StdObjID_UpdatesData            30        /* Internal updating instruction data  (type) */
  108.  
  109. #define CM_StdObjID_ObjReferences        31        /* Referenced objects from an object(property)*/
  110. #define CM_StdObjID_ObjRefData             32        /* Reference data                                             (type) */
  111.  
  112. #define CM_StdObjID_32BitImmValue        40        /* 32-bit immediate data value                 (type) */
  113. #define CM_StdObjID_16BitImmValue        41        /* 16-bit immediate data value                 (type) */
  114. #define CM_StdObjID_8BitImmValue        42        /*  8-bit immediate data value                 (type) */
  115.  
  116. #define CM_StdObjID_MinGeneralID     100        /* min object ID for general standard objects */
  117.  
  118.  
  119. /*------------------------------------*
  120.  | Predefined Property and Type Names |
  121.  *------------------------------------*
  122.  
  123.  These define global names which can be passed to CMRegisterType() or CMRegisterProperty()
  124.  to get the associated type or property descriptor object.  Note, some of these are used
  125.  internally by the Container Manager and are marked as "(CM)".
  126. */
  127.  
  128. #define CMTOCSeedGlobalName                     "Apple:Global_Name_TOC_Seed"                /* property            */
  129. #define CMTOCMinSeedGlobalName             "Apple:Global_Name_TOC_MinSeed"            /* property            */
  130. #define CMTOCObjectGlobalName                 "Apple:Global_Name_TOC_Object"            /* property            */
  131. #define CMTOCContainerGlobalName         "Apple:Global_Name_TOC_Container"        /* property            */
  132. #define CMTOCDeletedGlobalName             "Apple:Global_Name_TOC_Deleted"            /* property            */
  133. #define CMTOCTotalFreeGlobalName         "Apple:Global_Name_TOC_Free"                /* property            */
  134. #define CMTOCNewValuesTOCGlobalName    "Apple:Global_Name_TOC_NewValuesTOC"/* property            */
  135. #define CMTOCTargetGlobalName              "Apple:Global_Name_TOC_Target"            /* property            */
  136. #define CMTOCDeleteListGlobalName     "Apple:Global_Name_TOC_DeleteList"    /* property            */
  137. #define CMTOCValueTypeGlobalName        "Apple:Global_Name_TOC_Type"                /* type                    */
  138.  
  139. #define CMDynamicValueGlobalName         "Apple:Dynamic_Value"                                /* property (CM)*/
  140. #define CMBaseTypesGlobalName                 "Apple:Type_BaseType"                                /* property (CM)*/
  141. #define CMBaseTypeListGlobalName        "Apple:Type_BaseTypeList"                        /* type         (CM)*/
  142. #define CMTargetContainerName                 "Apple:Target_Container"                        /* type            (CM)*/
  143. #define CMValueUpdatesGlobalName        "Apple:Type_ValueUpdates"                        /* property (CM)*/
  144. #define CMUpdatesDataGlobalName            "Apple:Type_UpdatesData"                        /* type          (CM)*/
  145.  
  146.  
  147. /*-------------------------------------*
  148.  | Predfined Editing Metahandler Types |
  149.  *-------------------------------------*
  150.  
  151.  These define a type names to be associated with special metahandler packages.  Currently 
  152.  there is only one (!), which defines the type known to the Container Manager, that must
  153.  be associated with target container handlers whenever a target container is opened by an
  154.  updating container.  The target container handlers must be registered as the handler
  155.  package assoicated with this type.
  156. */
  157.  
  158. #define CMTargetHandlersTypeName    "Apple:Target_Handlers_TypeName"
  159.  
  160.  
  161. /*---------------------------------------------------------------------*
  162.  | Metahandler Operation Types For Container Special Global Operations |
  163.  *---------------------------------------------------------------------*
  164.  
  165.  These are the defined strings the API passes to a metahandler (passed to CMStartSession())
  166.  to get the handler routine addresses for special global (to all containers) operations.
  167. */
  168.  
  169. #define CMErrorOpType                        "Apple:ReportError"
  170. #define CMAllocOpType                        "Apple:AllocMemory"
  171. #define CMFreeOpType                        "Apple:FreeMemory"
  172.  
  173.  
  174. /*----------------------------------------------------------*
  175.  | Metahandler Operation Types For Container I/O Operations |
  176.  *----------------------------------------------------------*
  177.  
  178.  These are the defined strings the API passes to a metahandler to get the handler routine
  179.  addresses for the I/O operations the API needs to do on a container.
  180. */
  181.  
  182. #define CMOpenOpType                        "Apple:OpenStream"
  183. #define CMCloseOpType                        "Apple:CloseStream"
  184. #define CMFlushOpType                        "Apple:FlushStream"
  185. #define CMSeekOpType                        "Apple:SetPosStream"
  186. #define CMTellOpType                        "Apple:GetPosStream"
  187. #define CMReadOpType                        "Apple:ReadStream"
  188. #define CMWriteOpType                        "Apple:WriteStream"
  189. #define CMEofOpType                            "Apple:EofStream"
  190. #define CMTruncOpType                        "Apple:TruncateStream"
  191. #define CMSizeOpType                        "Apple:SizeStream"
  192. #define CMReadLblOpType                    "Apple:ReadLabel"
  193. #define CMWriteLblOpType                "Apple:WriteLabel"
  194. #define CMParentOpType                    "Apple:ReturnParentValue"
  195. #define CMContainerOpName                "Apple:ReturnContainerName"
  196. #define CMTargetTypeOpType            "Apple:TargetContainerDynamicValueType"
  197. #define CMExtractDataOpType            "Apple:ExtractData"
  198. #define CMFormatDataOpType            "Apple:FormatData"
  199.  
  200.  
  201. /*------------------------------------------------*
  202.  | Metahandler Operation Types For Dynamic Values |
  203.  *------------------------------------------------*
  204.  
  205.  These are the defined strings that CMUseValue() and CMNewValue() pass to a metahandler if
  206.  the type of the value is that of a globally unique name and that name has a "use value"
  207.  matahandler defined for it.  These are used to create dynamic values.
  208. */
  209.  
  210. #define CMDefineMetaDataOpType    "Apple:DefineMetaData"
  211. #define CMNewValueOpType                "Apple:NewValue"
  212. #define CMUseValueOpType                "Apple:UseValue"
  213.  
  214.  
  215. /*----------------------------------------------------------*
  216.  | Metahandler Operation Types For Dynamic Value Operations |
  217.  *----------------------------------------------------------*
  218.  
  219.  These are the defined strings the API passes to a dynamic value metahandler (returned
  220.  from a "use value" handler) to get the dynamic value handler addresses for value
  221.  operations.
  222. */
  223.  
  224. #define CMGetValueSizeOpType        "Apple:CMGetValueSize"
  225. #define CMReadValueDataOpType        "Apple:CMReadValueData"
  226. #define CMWriteValueDataOpType    "Apple:CMWriteValueData"
  227. #define CMInsertValueDataOpType    "Apple:CMInsertValueData"
  228. #define CMDeleteValueDataOpType    "Apple:CMDeleteValueData"
  229. #define CMGetValueInfoOpType        "Apple:CMGetValueInfo"
  230. #define CMSetValueTypeOpType        "Apple:CMSetValueType"
  231. #define CMSetValueGenOpType            "Apple:CMSetValueGeneration"
  232. #define CMReleaseValueOpType        "Apple:CMReleaseValue"
  233.  
  234.  
  235. #endif
  236.