home *** CD-ROM | disk | FTP | other *** search
/ Network Support Encyclopedia 96-1 / novell-nsepro-1996-1-cd2.iso / download / netware / os2hdr.exe / NWDSBUFT.H < prev    next >
C/C++ Source or Header  |  1993-06-21  |  6KB  |  277 lines

  1. #ifndef    _NWDSBUFT_HEADER_            
  2. #define    _NWDSBUFT_HEADER_            
  3.  
  4. /****************************************************************************
  5.  *
  6.  * (C) Unpublished Copyright of Novell, Inc.  All Rights Reserved.
  7.  *
  8.  * No part of this file may be duplicated, revised, translated, localized
  9.  * or modified in any manner or compiled, linked or uploaded or downloaded
  10.  * to or from any computer system without the prior written permission of
  11.  * Novell, Inc.
  12.  *
  13.  ****************************************************************************/
  14.  
  15. #include <time.h>
  16.  
  17. #ifndef __NWDSTYPE_H
  18. #include <nwdstype.h>
  19. #endif
  20.  
  21. #ifndef    _NWDSDC_HEADER_
  22. #include <nwdsdc.h>
  23. #endif
  24.  
  25. #ifndef    __NWDSDEFS_H
  26. #include <nwdsdefs.h>
  27. #endif
  28.  
  29. #ifndef    _NWDSATTR_HEADER_
  30. #include <nwdsattr.h>
  31. #endif
  32.  
  33.                                   
  34. #define    INPUT_BUFFER    0x00000001
  35.  
  36. typedef struct
  37. {
  38.     uint32    operation;
  39.     uint32    flags;
  40.     uint32    maxLen;
  41.     uint32    curLen;
  42.     uint8        NWPTR lastCount;
  43.     uint8        NWPTR curPos;
  44.     uint8        NWPTR data;
  45. } Buf_T;
  46.  
  47. typedef struct
  48. {
  49.     uint32    objectFlags;
  50.     uint32    subordinateCount;
  51.     time_t    modificationTime;
  52.     char        baseClass[MAX_SCHEMA_NAME_BYTES + 2];
  53. } Object_Info_T;
  54.  
  55. typedef struct
  56. {
  57.     uint32            length;
  58.     uint8                data[MAX_ASN1_NAME];
  59. } Asn1ID_T;
  60.  
  61. typedef struct
  62. {
  63.     uint32            attrFlags;
  64.     uint32            attrSyntaxID;
  65.     uint32            attrLower;
  66.     uint32            attrUpper;
  67.     Asn1ID_T            asn1ID;
  68. } Attr_Info_T;
  69.  
  70. typedef struct    
  71. {
  72.     uint32            classFlags;
  73.     Asn1ID_T            asn1ID;        /* an object identifier created allocated   */
  74. } Class_Info_T;                    /* according to the rules specified in the  */
  75.                                         /* ASN.1 standard; if no object identifier  */
  76.                                         /* has been registered for the class, a     */
  77.                                         /* zero-length octet string is specified    */
  78.  
  79. typedef struct
  80. {
  81.     int16    ID;
  82.     char    defStr[MAX_SCHEMA_NAME_BYTES + 2];
  83.     int16     flags;
  84. } Syntax_Info_T;
  85.  
  86. #define NWDSPutClassName(c, b, n) NWDSPutClassItem(c, b, n) /* 
  87.                                                                                     c -- context
  88.                                                                      b -- buf
  89.                                                                n -- itemName
  90.                                                                                 */
  91.  
  92. #define NWDSPutSyntaxName(c, b, n) NWDSPutClassItem(c, b, n) /* 
  93.                                                                                     c -- context
  94.                                                                      b -- buf
  95.                                                                n -- itemName
  96.                                                                                 */
  97. #ifdef __cplusplus
  98.     extern "C" {
  99. #endif
  100.  
  101. NWDSCCODE NWAPI NWDSAllocBuf
  102. (
  103.     size_t    size,
  104.     Buf_T        NWPTR  NWPTR buf
  105. );
  106.  
  107. NWDSCCODE NWAPI NWDSComputeAttrValSize
  108. (
  109.     NWDSContextHandle        context,
  110.     Buf_T        NWPTR buf,
  111.     uint32    syntaxID,
  112.     uint32    NWPTR attrValSize
  113. );
  114.  
  115. NWDSCCODE NWAPI NWDSFreeBuf
  116. (
  117.     Buf_T        NWPTR buf
  118. );
  119.  
  120. NWDSCCODE NWAPI NWDSGetAttrCount
  121. (
  122.     NWDSContextHandle        context,
  123.     Buf_T        NWPTR buf,
  124.     uint32    NWPTR attrCount
  125. );
  126.  
  127. NWDSCCODE NWAPI NWDSGetAttrDef
  128. (
  129.     NWDSContextHandle            context,
  130.     Buf_T            NWPTR buf,
  131.     char            NWPTR attrName,
  132.     Attr_Info_T    NWPTR attrInfo
  133. );
  134.  
  135. NWDSCCODE NWAPI NWDSGetAttrName
  136. (
  137.     NWDSContextHandle        context,
  138.     Buf_T        NWPTR buf,
  139.     char        NWPTR attrName,
  140.     uint32    NWPTR attrValCount,
  141.     uint32    NWPTR syntaxID
  142.  
  143. );
  144.  
  145. NWDSCCODE NWAPI NWDSGetAttrVal
  146. (
  147.     NWDSContextHandle        context,
  148.     Buf_T        NWPTR buf,
  149.     uint32    syntaxID,
  150.     void        NWPTR attrVal
  151. );
  152.  
  153. NWDSCCODE NWAPI NWDSGetClassDef
  154. (
  155.      NWDSContextHandle                context,    
  156.     Buf_T                NWPTR buf,
  157.     char                NWPTR className,
  158.     Class_Info_T    NWPTR classInfo
  159. );
  160.  
  161. NWDSCCODE NWAPI NWDSGetClassDefCount
  162. (
  163.     NWDSContextHandle        context,
  164.     Buf_T        NWPTR buf,
  165.     uint32    NWPTR classDefCount
  166. );
  167.  
  168. NWDSCCODE NWAPI NWDSGetClassItem
  169. (
  170.     NWDSContextHandle        context,    
  171.     Buf_T        NWPTR buf,
  172.     char        NWPTR itemName
  173. );
  174.  
  175. NWDSCCODE NWAPI NWDSGetClassItemCount
  176. (
  177.     NWDSContextHandle        context,
  178.     Buf_T        NWPTR buf,
  179.     uint32    NWPTR itemCount
  180. );
  181.  
  182. NWDSCCODE NWAPI NWDSGetObjectCount
  183. (
  184.     NWDSContextHandle        context,
  185.     Buf_T        NWPTR buf,
  186.     uint32    NWPTR objectCount
  187. );
  188.  
  189. NWDSCCODE NWAPI NWDSGetObjectName
  190. (
  191.     NWDSContextHandle                context,
  192.     Buf_T                NWPTR buf,
  193.     char                NWPTR objectName,
  194.     uint32            NWPTR attrCount,
  195.     Object_Info_T    NWPTR objectInfo
  196. );
  197.  
  198. NWDSCCODE NWAPI NWDSGetPartitionInfo
  199. (
  200.     NWDSContextHandle                context,
  201.     Buf_T                NWPTR buf,
  202.     char                NWPTR partitionName,
  203.     uint32            NWPTR replicaType
  204. );
  205.  
  206. NWDSCCODE NWAPI NWDSGetServerName
  207. (
  208.     NWDSContextHandle        context,
  209.     Buf_T        NWPTR buf,
  210.     char        NWPTR serverName,
  211.     uint32    NWPTR partitionCount
  212. );
  213.  
  214. NWDSCCODE NWAPI NWDSGetSyntaxCount
  215. (
  216.     NWDSContextHandle        context,
  217.     Buf_T        NWPTR buf,
  218.     uint32    NWPTR syntaxCount
  219. );
  220.  
  221. NWDSCCODE NWAPI NWDSGetSyntaxDef
  222. (
  223.     NWDSContextHandle        context, 
  224.     Buf_T        NWPTR buf,
  225.     char        NWPTR syntaxName,
  226.     Syntax_Info_T    NWPTR syntaxDef
  227. );
  228.  
  229. NWDSCCODE NWAPI NWDSInitBuf
  230. (
  231.     NWDSContextHandle        context, 
  232.     uint32    operation,
  233.     Buf_T        NWPTR buf        
  234. );
  235.  
  236. NWDSCCODE NWAPI NWDSPutAttrName
  237. (
  238.     NWDSContextHandle        context,
  239.     Buf_T        NWPTR buf,
  240.     char        NWPTR attrName
  241. );
  242.  
  243. NWDSCCODE NWAPI NWDSPutAttrVal
  244. (
  245.     NWDSContextHandle        context,
  246.     Buf_T        NWPTR buf,
  247.     uint32    syntaxID,
  248.     void        NWPTR attrVal
  249. );
  250.  
  251. NWDSCCODE NWAPI NWDSPutChange
  252. (
  253.     NWDSContextHandle         context,    
  254.     Buf_T        NWPTR buf,    
  255.     uint32    changeType,    
  256.     char      NWPTR attrName
  257. );
  258.  
  259. NWDSCCODE NWAPI NWDSPutClassItem
  260. (
  261.     NWDSContextHandle        context,
  262.     Buf_T        NWPTR buf,
  263.     char        NWPTR itemName
  264. );
  265.  
  266. NWDSCCODE NWAPI NWDSBeginClassItem
  267. (
  268.     NWDSContextHandle        context,
  269.     Buf_T        NWPTR buf
  270. );
  271.  
  272. #ifdef __cplusplus
  273.     }
  274. #endif
  275.  
  276. #endif                                    /* #ifndef _NWDSBUFT_HEADER_ */
  277.