Otcfggetentitiescount – Apple Network Setup User Manual

Page 73

Advertising
background image

C H A P T E R 3

Network Setup Reference

Network Setup Functions

73

■

OTCfgDuplicateEntity

(page 78) copies the contents of one entity to another

entity.

■

OTCfgGetEntityLogicalName

(page 79) gets the name of an entity.

■

OTCfgGetEntityName

(page 80) gets the name of an entity.

■

OTCfgSetEntityName

(page 81) sets the name of an entity in an area.

■

OTCfgGetEntityArea

(page 82) gets the area ID of an entity.

■

OTCfgChangeEntityArea

(page 82) changes an entity’s area.

OTCfgGetEntitiesCount

3

Obtains the number of entities of a specified class and type in an area.

OSStatus OTCfgGetEntitiesCount (CfgDatabaseRef dbRef,

CfgAreaID areaID,

CfgEntityClass entityClass,

CfgEntityType entityType,

ItemCount* itemCount);

dbRef

On input, a value of type

CfgDatabaseRef

(page 98) that

represents a database session previously opened by calling

OTCfgOpenDatabase

(page 58).

areaID

On input, a value of type

CfgAreaID

(page 98) that identifies the

area that is to be searched. If the area specified by

areaID

does

not exist,

OTCfgGetEntitiesCount

returns the error

kCfgErrAreaNotFound

.

entityClass

On input, a value of type

CfgEntityClass

that specifies the class

that is to be matched. To specify all classes, set

entityClass

to

kCfgClassAnyEntity

. For a list of possible classes, see “Entity

Classes and Types” (page 104).

entityType

On input, a value of type

CfgEntityType

that specifies the type

that is to be matched. To specify all types, set

entityType

to

kCfgTypeAnyEntity

. For a list of possible types, see “Entity

Classes and Types” (page 104).

Advertising