home *** CD-ROM | disk | FTP | other *** search
/ Network Support Encyclopedia 96-1 / novell-nsepro-1996-1-cd2.iso / download / netware / os232.exe / INCLUDE / NWDSBUFT.H < prev    next >
C/C++ Source or Header  |  1995-07-11  |  6KB  |  275 lines

  1. /******************************************************************************
  2.  
  3.   $Workfile:   nwdsbuft.h  $
  4.   $Revision:   1.8  $
  5.   $Modtime::   10 Jul 1995 08:29:40                        $
  6.   $Copyright:
  7.  
  8.   Copyright (c) 1989-1995 Novell, Inc.  All Rights Reserved.                      
  9.  
  10.   THIS WORK IS  SUBJECT  TO  U.S.  AND  INTERNATIONAL  COPYRIGHT  LAWS  AND
  11.   TREATIES.   NO  PART  OF  THIS  WORK MAY BE  USED,  PRACTICED,  PERFORMED
  12.   COPIED, DISTRIBUTED, REVISED, MODIFIED, TRANSLATED,  ABRIDGED, CONDENSED,
  13.   EXPANDED,  COLLECTED,  COMPILED,  LINKED,  RECAST, TRANSFORMED OR ADAPTED
  14.   WITHOUT THE PRIOR WRITTEN CONSENT OF NOVELL, INC. ANY USE OR EXPLOITATION
  15.   OF THIS WORK WITHOUT AUTHORIZATION COULD SUBJECT THE PERPETRATOR TO
  16.   CRIMINAL AND CIVIL LIABILITY.$
  17.  
  18.  *****************************************************************************/
  19. #if ! defined ( NWDSBUFT_H )
  20. #define NWDSBUFT_H
  21.  
  22. #include <time.h>
  23.  
  24. #if ! defined ( NTYPES_H )
  25. #include "ntypes.h"
  26. #endif
  27.  
  28. #if ! defined ( NWDSTYPE_H )
  29. #include "nwdstype.h"
  30. #endif
  31.  
  32. #if ! defined ( NWDSDC_H )
  33. #include "nwdsdc.h"
  34. #endif
  35.  
  36. #if ! defined ( NWDSDEFS_H )
  37. #include "nwdsdefs.h"
  38. #endif
  39.  
  40. #include "npackon.h"
  41.  
  42. #define  INPUT_BUFFER   0x00000001
  43.  
  44. typedef struct
  45. {
  46.    nuint32  operation;
  47.    nuint32  flags;
  48.    nuint32  maxLen;
  49.    nuint32  curLen;
  50.    pnuint8  lastCount;
  51.    pnuint8  curPos;
  52.    pnuint8  data;
  53. } Buf_T, N_FAR *pBuf_T, N_FAR * N_FAR *ppBuf_T;
  54.  
  55. typedef struct
  56. {
  57.    nuint32  objectFlags;
  58.    nuint32  subordinateCount;
  59.    time_t   modificationTime;
  60.    char     baseClass[MAX_SCHEMA_NAME_BYTES + 2];
  61. } Object_Info_T, N_FAR *pObject_Info_T;
  62.  
  63. typedef struct
  64. {
  65.    nuint32  length;
  66.    nuint8   data[MAX_ASN1_NAME];
  67. } Asn1ID_T, N_FAR *pAsn1ID_T;
  68.  
  69. typedef struct
  70. {
  71.    nuint32  attrFlags;
  72.    nuint32  attrSyntaxID;
  73.    nuint32  attrLower;
  74.    nuint32  attrUpper;
  75.    Asn1ID_T asn1ID;
  76. } Attr_Info_T, N_FAR *pAttr_Info_T;
  77.  
  78. typedef struct
  79. {
  80.    nuint32  classFlags;
  81.    Asn1ID_T asn1ID;                    
  82. } Class_Info_T, N_FAR *pClass_Info_T;  
  83.  
  84. typedef struct
  85. {
  86.    nuint32  ID;
  87.    char     defStr[MAX_SCHEMA_NAME_BYTES + 2];
  88.    nflag16  flags;
  89. } Syntax_Info_T, N_FAR *pSyntax_Info_T;
  90.  
  91. #define NWDSPutClassName(c, b, n) NWDSPutClassItem(c, b, n)
  92. #define NWDSPutSyntaxName(c, b, n) NWDSPutClassItem(c, b, n)
  93.  
  94. #ifdef __cplusplus
  95.    extern "C" {
  96. #endif
  97.  
  98. NWDSCCODE N_API NWDSAllocBuf
  99. (
  100.    size_t   size,
  101.    ppBuf_T  buf
  102. );
  103.  
  104. NWDSCCODE N_API NWDSComputeAttrValSize
  105. (
  106.    NWDSContextHandle context,
  107.    pBuf_T            buf,
  108.    nuint32           syntaxID,
  109.    pnuint32          attrValSize
  110. );
  111.  
  112. NWDSCCODE N_API NWDSFreeBuf
  113. (
  114.    pBuf_T   buf
  115. );
  116.  
  117. NWDSCCODE N_API NWDSGetAttrCount
  118. (
  119.    NWDSContextHandle context,
  120.    pBuf_T            buf,
  121.    pnuint32          attrCount
  122. );
  123.  
  124. NWDSCCODE N_API NWDSGetAttrDef
  125. (
  126.    NWDSContextHandle context,
  127.    pBuf_T            buf,
  128.    pnstr8            attrName,
  129.    pAttr_Info_T      attrInfo
  130. );
  131.  
  132. NWDSCCODE N_API NWDSGetAttrName
  133. (
  134.    NWDSContextHandle context,
  135.    pBuf_T            buf,
  136.    pnstr8            attrName,
  137.    pnuint32          attrValCount,
  138.    pnuint32          syntaxID
  139.  
  140. );
  141.  
  142. NWDSCCODE N_API NWDSGetAttrVal
  143. (
  144.    NWDSContextHandle context,
  145.    pBuf_T            buf,
  146.    nuint32           syntaxID,
  147.    nptr              attrVal
  148. );
  149.  
  150. NWDSCCODE N_API NWDSGetClassDef
  151. (
  152.    NWDSContextHandle context,
  153.    pBuf_T            buf,
  154.    pnstr8            className,
  155.    pClass_Info_T     classInfo
  156. );
  157.  
  158. NWDSCCODE N_API NWDSGetClassDefCount
  159. (
  160.    NWDSContextHandle context,
  161.    pBuf_T            buf,
  162.    pnuint32          classDefCount
  163. );
  164.  
  165. NWDSCCODE N_API NWDSGetClassItem
  166. (
  167.    NWDSContextHandle context,
  168.    pBuf_T            buf,
  169.    pnstr8            itemName
  170. );
  171.  
  172. NWDSCCODE N_API NWDSGetClassItemCount
  173. (
  174.    NWDSContextHandle context,
  175.    pBuf_T            buf,
  176.    pnuint32          itemCount
  177. );
  178.  
  179. NWDSCCODE N_API NWDSGetObjectCount
  180. (
  181.    NWDSContextHandle context,
  182.    pBuf_T            buf,
  183.    pnuint32          objectCount
  184. );
  185.  
  186. NWDSCCODE N_API NWDSGetObjectName
  187. (
  188.    NWDSContextHandle context,
  189.    pBuf_T            buf,
  190.    pnstr8            objectName,
  191.    pnuint32          attrCount,
  192.    pObject_Info_T    objectInfo
  193. );
  194.  
  195. NWDSCCODE N_API NWDSGetPartitionInfo
  196. (
  197.    NWDSContextHandle context,
  198.    pBuf_T            buf,
  199.    pnstr8            partitionName,
  200.    pnuint32          replicaType
  201. );
  202.  
  203. NWDSCCODE N_API NWDSGetServerName
  204. (
  205.    NWDSContextHandle context,
  206.    pBuf_T            buf,
  207.    pnstr8            serverName,
  208.    pnuint32          partitionCount
  209. );
  210.  
  211. NWDSCCODE N_API NWDSGetSyntaxCount
  212. (
  213.    NWDSContextHandle context,
  214.    pBuf_T            buf,
  215.    pnuint32          syntaxCount
  216. );
  217.  
  218. NWDSCCODE N_API NWDSGetSyntaxDef
  219. (
  220.    NWDSContextHandle context,
  221.    pBuf_T            buf,
  222.    pnstr8            syntaxName,
  223.    pSyntax_Info_T    syntaxDef
  224. );
  225.  
  226. NWDSCCODE N_API NWDSInitBuf
  227. (
  228.    NWDSContextHandle context,
  229.    nuint32           operation,
  230.    pBuf_T            buf
  231. );
  232.  
  233. NWDSCCODE N_API NWDSPutAttrName
  234. (
  235.    NWDSContextHandle context,
  236.    pBuf_T            buf,
  237.    pnstr8            attrName
  238. );
  239.  
  240. NWDSCCODE N_API NWDSPutAttrVal
  241. (
  242.    NWDSContextHandle context,
  243.    pBuf_T            buf,
  244.    nuint32           syntaxID,
  245.    nptr              attrVal
  246. );
  247.  
  248. NWDSCCODE N_API NWDSPutChange
  249. (
  250.    NWDSContextHandle context,
  251.    pBuf_T            buf,
  252.    nuint32           changeType,
  253.    pnstr8            attrName
  254. );
  255.  
  256. NWDSCCODE N_API NWDSPutClassItem
  257. (
  258.    NWDSContextHandle context,
  259.    pBuf_T            buf,
  260.    pnstr8            itemName
  261. );
  262.  
  263. NWDSCCODE N_API NWDSBeginClassItem
  264. (
  265.    NWDSContextHandle context,
  266.    pBuf_T            buf
  267. );
  268.  
  269. #ifdef __cplusplus
  270.    }
  271. #endif
  272.  
  273. #include "npackoff.h"
  274. #endif   /* NWDSBUFT_H */
  275.