Otcfgabortareamodifications, Otcfgissameareaid, Or call – Apple Network Setup User Manual

Page 65

Advertising
background image

C H A P T E R 3

Network Setup Reference

Network Setup Functions

65

OTCfgAbortAreaModifications

3

Closes an area for writing without committing modifications.

OSStatus OTCfgAbortAreaModifications (CfgDatabaseRef dbRef,

CfgAreaID readAreaID);

dbRef

On input, a value of type

CfgDatabaseRef

(page 98) that

represents a database session previously opened by calling

OTCfgOpenDatabase

(page 58).

readAreaID

On input, a value of type

CfgAreaID

(page 98) that identifies an

area that has been opened for writing. If

readAreaID

does not

exist or you have not called

OTCfgBeginAreaModifications

(page 63) for the area represented by

readAreaID

,

OTCfgAbortAreaModifications

returns

kCfgErrAreaNotFound

.

function result A value of

noErr

indicates that

OTCfgAbortAreaModifications

returned successfully. For a list of other possible result codes,
see “Result Codes” (page 110).

DISCUSSION

The

OTCfgAbortAreaModifications

function closes an area that was opened for

writing without writing the modifications to the area presented by

readAreaID

.

OTCfgIsSameAreaID

3

Compares two area IDs.

Boolean OTCfgIsSameAreaID (CfgAreaID areaID1,

CfgAreaID areaID2);

areaID1

On input, a value of type

CfgAreaID

(page 98) representing one

of the area IDs that is to be compared.

areaID2

On input, a value of type

CfgAreaID

(page 98) representing the

other area ID that is to be compared.

Advertising