Apple Network Setup manual Application-Defined Routines, OTCfgRemoveNotifier, function result

Models: Network Setup

1 184
Download 184 pages 5.56 Kb
Page 96
Image 96
OTCfgRemoveNotifier

C H A P T E R 3

Network Setup Reference

OTCfgRemoveNotifier

Removes a notification callback.

OSStatus OTCfgRemoveNotifier (CfgDatabaseRef dbRef.

CfgEntityClass theClass,

CfgEntityType theType);

dbRef

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

 

represents a database session previously opened by calling

 

OTCfgOpenDatabase (page 58).

theClass

On input, a value of type CfgEntityClass specifying the class

 

that was specified when the notification callback was installed.

theType

On input, a value of type CfgEntityType specifying the type that

 

was specified when the notification callback was installed.

function result

A value of noErr indicates that OTCfgRemoveNotifier returned

 

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

 

Codes” (page 110).

DISCUSSION

The OTCfgRemoveNotifier function removes the specified notification callback that was previously installed by OTCfgInstallNotifier (page 94).

Note

The OTCfgRemoveNotifier function is available in Network

Setup version 1.0.2 and later.

Notification callbacks are removed automatically when the database session represented by dbRef is closed.

Application-Defined Routines

This section describes the application-defined routine that you can provide:

A notification callback routine, which is called when changes occur in the Network Setup database.

96Network Setup Functions

Page 96
Image 96
Apple Network Setup manual Application-Defined Routines, OTCfgRemoveNotifier, function result