Apple Network Setup manual OTCfgDeleteEntity, OTCfgDuplicateEntity, function result

Models: Network Setup

1 184
Download 184 pages 5.56 Kb
Page 78
Image 78
OTCfgDeleteEntity

C H A P T E R 3

Network Setup Reference

OTCfgDeleteEntity

Deletes the specified entity.

OSStatus OTCfgDeleteEntity (CfgDatabaseRef dbRef, const CfgEntityRef* entityRef);

dbRef

On input, a value of type CfgDatabaseRef (page 98) that

 

represents a database session previously opened by calling

 

OTCfgOpenDatabase (page 58).

entityRef

On input, a pointer to a value of type CfgEntityRef (page 99)

 

representing the entity that is to be deleted. If entityRef

 

represents an entity that does not reside in an area that is open

 

for writing, OTCfgDeleteEntity returns the error

 

kCfgErrAreaNotOpen or kCfgErrLocked. If the entity represented

 

by entityRef does not exist, OTCfgDeleteEntry returns the error

 

kCfgErrEntityNotFound.

function result

A value of noErr indicates that OTCfgDeleteEntity returned

 

successfully. For a list of other possible result codes, see “Result

 

Codes” (page 110).

DISCUSSION

The OTCfgDeleteEntity function deletes the specified entity.

OTCfgDuplicateEntity

Copies the contents of one entity to another entity.

OSStatus OTCfgDuplicateEntity (CfgDatabaseRef dbRef,

const CfgEntityRef* entityRef, const CfgEntityRef* newEntityRef);

dbRef

On input, a value of type CfgDatabaseRef (page 98) that

 

represents a database session previously opened by calling

 

OTCfgOpenDatabase (page 58).

78Network Setup Functions

Page 78
Image 78
Apple Network Setup manual OTCfgDeleteEntity, OTCfgDuplicateEntity, function result