Cfgsetselement, Cfgsetsvector, Esents an element in a – Apple Network Setup User Manual

Page 103

Advertising
background image

C H A P T E R 3

Network Setup Reference

Network Setup Structures and Data Types

103

The preference type for the

CfgSetsStruct

structure is

kOTCfgSetsStructPref

,

which is defined as

'stru'

.

CfgSetsElement

3

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

3

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.

Advertising