Otcfgopendatabase, Otcfgclosedatabase – Apple Network Setup User Manual

Page 58

Advertising
background image

C H A P T E R 3

Network Setup Reference

58

Network Setup Functions

OTCfgOpenDatabase

3

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

3

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

.

Advertising