5.3 Buffer Operation Types and Related Functions

Functions which use input buffers must allocate the buffer and then initialize it to receive its type of information. The NWDSInitBuf function calls this the operation parameter, because it specifies the type of operation the function using the input buffer performs. These functions are called “Related Functions” in the table below.

The operation type is used both to initialize the buffer and to end an operation if the related function has an iterationHandle parameter. These functions have the potential of returning more information than can fit in an allocated output buffer. To end such an operation before the complete results have been retrieved, call NWDSCloseIteration with the operation type. This function frees the memory and states associated with the operation. The memory and states are automatically freed when all information is retrieved from an operation.

Operation Type

C Value

Related Function

DSV_READ

3

NWDSExtSyncRead

NWDSListAttrsEffectiveRights

NWDSRead

DSV_COMPARE

4

NWDSCompare

DSV_LIST

5

NWDSList

DSV_SEARCH

6

NWDSExtSyncList

NWDSExtSyncSearch

NWDSListByClassAndName

NWDSListContainers

NWDSSearch

DSV_ADD_ENTRY

7

NWDSAddObject

DSV_MODIFY_ENTRY

9

NWDSModifyObject

DSV_READ_ATTR_DEF

12

NWDSReadAttrDef

DSV_DEFINE_CLASS

14

NWDSDefineClass

DSV_READ_CLASS_DEF

15

NWDSReadClassDef

DSV_MODIFY_CLASS_DEF

16

NWDSModifyClassDef

DSV_LIST_CONTAINABLE_CLASSES

18

NWDSListContainableClasses

DSV_LIST_PARTITIONS

22

NWDSListPartitions

NWDSListPartitionsExtInfo

DSV_SEARCH_FILTER

28

NWDSPutFilter

DSV_READ_SYNTAXES

40

NWDSReadSyntaxes

DSV_BACKUP_ENTRY

45

NWDSBackupObject

DSV_RESTORE_ENTRY

46

NWDSRestoreObject

DSV_READ_REFERENCES

79

NWDSReadReferences