C H A P T E R 3

Network Setup Reference

Field descriptions

 

fClass

The entity’s class. See “Entity Classes and Types”

 

(page 104) for possible values.

fType

The entity’s type. See “Entity Classes and Types” (page 104)

 

for possible values.

fName

The entity’s user-visible name.

fIcon

The entity’s custom icon. For details, see the definition of

 

CfgResourceLocator (page 101).

CfgEntityInfo structures are used when calling OTCfgCreateEntity (page 76) and when calling OTCfgGetEntitiesList (page 74).

CfgEntityAccessID

A CfgEntityAccessID refers to an open preference.

typedef void *CfgEntityAccessID;

CfgEntityAccessID A pointer to an arbitrary data type whose value represents an open entity

Call OTCfgOpenPrefs (page 84) to open an entity and received a value of type CfgEntityAccessID. Pass CfgEntityAccessID as a parameter to OTCfgGetPrefsSize (page 85) and then OTCfgGetPrefs (page 86) to get the value of a preference and to OTCfgSetPrefs (page 87) to set its value.

A CfgEntityAccessID whose value is NULL is never a valid entity access ID.

CfgPrefsHeader

The CfgPrefsHeader structure is used to return information about preferences in an entity.

struct CfgPrefsHeader {

UInt16 fSize;

UInt16 fVersion;

100Network Setup Structures and Data Types

Page 100
Image 100
Apple Network Setup manual CfgEntityAccessID, CfgPrefsHeader