Apple Network Setup manual Common Preference Types, Per-connection Preference Types

Models: Network Setup

1 184
Download 184 pages 5.56 Kb
Page 106
Image 106
Common Preference Types

C H A P T E R 3

Network Setup Reference

Constant descriptions

kCfgClassAnyEntity Matches the class type for any entity. This constant is typically used when calling OTCfgGetEntitiesCount (page 73) and OTCfgGetEntitiesList (page 74).

kCfgClassUnknownEntityDoes not match the class type for any entity. Use this constant as a “NULL” equivalent.

kCfgTypeAnyEntity Matches the type for any entity. This constant is typically used when calling OTCfgGetEntitiesCount (page 73) and OTCfgGetEntitiesList (page 74).

kCfgTypeUnknownEntityDoes not match the entity type for any entity. Use this constant as a “NULL” equivalent.

Common Preference Types

This section describes preferences that are used by many different protocols. For protocol-specific preferences, see Chapter 4, “Network Setup Protocol Structures and Data Types.”

Per-connection Preference Types

The following enumeration defines per-connection preference types:

enum

{

kOTCfgUserVisibleNamePref

= 'pnam',

kOTCfgVersionPref

= 'cvrs',

kOTCfgPortUserVisibleNamePref

= 'port',

kOTCfgProtocolUserVisibleNamePref

= 'prot',

kOTCfgAdminPasswordPref

= 'pwrd',

kOTCfgProtocolOptionsPref

= 'opts',

kCfgFreePref

= ‘free

};

Constant descriptions

kOTCfgUserVisibleNamePref

Each connection entity has a preference of this type that contains the user-visible name of the entity as a Pascal string

106Network Setup Constants

Page 106
Image 106
Apple Network Setup manual Common Preference Types, Per-connection Preference Types