Common preference types, Per-connection preference types, Common preference types 3 – Apple Network Setup User Manual

Page 106

Advertising
background image

C H A P T E R 3

Network Setup Reference

106

Network Setup Constants

Constant descriptions

kCfgClassAnyEntity

Matches the class type for any entity. This constant is
typically used when calling

OTCfgGetEntitiesCount

(page 73) and

OTCfgGetEntitiesList

(page 74).

kCfgClassUnknownEntity

Does 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).

kCfgTypeUnknownEntity

Does not match the entity type for any entity. Use this

constant as a “NULL” equivalent.

Common Preference Types

3

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

3

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

Advertising