Apple Network Setup manual CfgSetsElement, CfgSetsVector

Models: Network Setup

1 184
Download 184 pages 5.56 Kb
Page 103
Image 103
CfgSetsElement

C H A P T E R 3

Network Setup Reference

The preference type for the CfgSetsStruct structure is kOTCfgSetsStructPref, which is defined as 'stru'.

CfgSetsElement

The CfgSetsElement structure represents an element in a CfgSetsVector structure.

struct CfgSetsElement { CfgEntityRef fEntityRef; CfgEntityInfo fEntityInfo;

};

typedef struct CfgSetsElement CfgSetsElement;

Field descriptions

 

fEntityRef

An entity reference for the entity to be included in this set.

fEntityInfo

A CfgEntityInfo (page 99) structure that describes the

 

entity referenced by fEntityRef.

The fEntityRef entity typically has an area ID that doesn’t match the area of the set entity. See the section “Areas and Sets” (page 48) for why this happens and how you can work around the mismatch.

CfgSetsVector

The CfgSetsVector structure holds references to a set of entities.

struct CfgSetsVector

{

UInt32 fCount;

CfgSetsElement fElements[1];

};

typedef struct CfgSetsVector CfgSetsVector;

Field descriptions

 

fCount

The number of elements in the set.

Network Setup Structures and Data Types

103

Page 103
Image 103
Apple Network Setup manual CfgSetsElement, CfgSetsVector