Apple Network Setup manual CfgEntityRef, CfgEntityInfo, Field descriptions

Models: Network Setup

1 184
Download 184 pages 5.56 Kb
Page 99
Image 99
CfgEntityRef

C H A P T E R 3

Network Setup Reference

Network Setup uses a value of type CfgAreaID to identify the area in which an entity resides. For example, a value of type CfgAreaID is a member of the CfgEntityRef (page 99) structure. Use the constant kInvalidCfgAreaID (page 109) to determine whether an area ID is valid.

CfgEntityRef

A CfgEntityRef structure refers to a specific entity.

struct CfgEntityRef { CfgAreaID fLoc; UInt32 fReserved; Str255 fID;

};

typedef struct CfgEntityRef CfgEntityRef;

Field descriptions

 

fLoc

The area in which the entity resides.

fReserved

Reserved.

fID

The entity ID.

For example, OTCfgCreateEntity (page 76) returns a CfgEntityRef structure to refer to the newly created entity, and OTCfgGetEntitiesList (page 74) returns a CfgEntityRef for each entity in an area.

CfgEntityInfo

The CfgEntityInfo structure stores various attributes of an entity.

struct CfgEntityInfo { CfgEntityClass fClass; CfgEntityType fType; Str255 fName; CfgResourceLocator fIcon;

};

typedef struct CfgEntityInfo CfgEntityInfo;

Network Setup Structures and Data Types

99

Page 99
Image 99
Apple Network Setup manual CfgEntityRef, CfgEntityInfo, Field descriptions