Otcfgremovenotifier, Application-defined routines, Application-defined routines 3 – Apple Network Setup User Manual

Page 96

Advertising
background image

C H A P T E R 3

Network Setup Reference

96

Network Setup Functions

OTCfgRemoveNotifier

3

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

3

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.

Advertising