Otcfggetentitiescount – Apple Network Setup User Manual
Page 73

C H A P T E R 3
Network Setup Reference
Network Setup Functions
73
■
(page 78) copies the contents of one entity to another
entity.
■
(page 79) gets the name of an entity.
■
(page 80) gets the name of an entity.
■
(page 81) sets the name of an entity in an area.
■
(page 82) gets the area ID of an entity.
■
(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
represents a database session previously opened by calling
areaID
On input, a value of type
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