RAD Component Naming Conventions

For consistency in the names of methods, interfaces, and property names across modules, use the following case guidelines.

Module

The base of the API or domain name. For a module describing an interface domain.prefix.base.adr, module spec files should be named base.adr, and the resulting shared library mod_ base.so.

Examples:

/usr/lib/rad/interfaces/zonemgr/version/1/zonemgr.adr
/usr/lib/rad/module/mod_zonemgr.so
API

Reverse-dotted domain, all lowercase.

Examples:

com.oracle.solaris.rad.usermgr
com.oracle.solaris.rad.zonemgr
Interface, struct, union, enum

Non-qualified, camel case, starting with uppercase.

Examples:

Time
NameService
LDAPConfig
ErrorCode
Enum value and fallback

Non-qualified, uppercase, underscores.

Examples:

CHAR
INVALID_TOKEN
REQUIRE_ALL
Interface property and method, struct field, event

Non-qualified, camel case, starting with lowercase.

Examples:

count
addHostName
deleteUser