Otcfgcommitareamodifications – Apple Network Setup User Manual
Page 64

C H A P T E R 3
Network Setup Reference
64
Network Setup Functions
(page 64) to write the temporary area to the
area identified by
writeAreaID
, dispose of the temporary area, and close the area
represented by
writeAreaID
close the area represented by
readAreaID
and discard the temporary area.
OTCfgCommitAreaModifications
3
Closes an area for writing and commits modifications.
OSStatus OTCfgCommitAreaModifications (CfgDatabaseRef dbRef,
CfgAreaID readAreaID,
CfgAreaID writeAreaID);
dbRef
represents a database session previously opened by calling
readAreaID
readAreaID
does
not exist or does not match the
writeAreaID
referred to by
OTCfgCommitAreaModifications
returns
kCfgErrAreaNotFound
.
writeAreaID
(page 98) previously
obtained by calling
writeAreaID
does not exist or does not match the
readAreaID
OTCfgCommitAreaModifications
returns
kCfgErrAreaNotFound
.
function result A value of
noErr
indicates that
OTCfgCommitAreaModifications
returned successfully. For a list of other possible result codes,
see “Result Codes” (page 110).
DISCUSSION
The
OTCfgCommitAreaModifications
function writes the temporary area
represented by
writeAreaID
to the area represented by
readAreaID
and closes the
write area.
Readers of the area represented by
readAreaID
are informed that the database
has been modified.