Apple Network Setup manual OTCfgOpenDatabase, OTCfgCloseDatabase

Models: Network Setup

1 184
Download 184 pages 5.56 Kb
Page 58
Image 58
OTCfgOpenDatabase

C H A P T E R 3

Network Setup Reference

OTCfgOpenDatabase

Opens a session with the Network Setup database.

OSStatus OTCfgOpenDatabase (CfgDatabaseRef* dbRef);

dbRef

On input, a pointer to a value of type CfgDatabaseRef (page 98).

 

On output, dbRef is a reference to the opened database that is

 

passed as a parameter to other Network Setup functions.

function result A value of noErr if the database was opened. For a list of other possible result codes, see “Result Codes” (page 110).

DISCUSSION

The OTCfgOpenDatabase function opens a session with the Network Setup database. Your application must call OTCfgOpenDatabase successfully before it can call any other Network Setup function.

OTCfgCloseDatabase

Closes the Network Setup database.

OSStatus OTCfgCloseDatabase (OTCfgDatabaseRef* dbRef);

dbRef

A pointer to value of type CfgDatabaseRef (page 98) that

 

represents the database session you want to close.

function result A value of noErr if the database was closed. For a list of other possible result codes, see “Result Codes” (page 110).

DISCUSSION

The OTCfgCloseDatabase function closes the database session represented by dbRef.

58Network Setup Functions

Page 58
Image 58
Apple Network Setup manual OTCfgOpenDatabase, OTCfgCloseDatabase