 |
» |
|
|
 |
Installing application types is an occasional task; you only
need to install type information when an application error condition
exists. Ptype and otype files are run through the ToolTalk type
compiler at installation time. tt_type_comp merges the information
into the ToolTalk Types Database. The application then tells the
ToolTalk service to read the type information in the database. To install an application's ptype and otype files, follow
these steps: Run tt_type_comp
on your type file % tt_type_comp <your-file>
|
tt_type_comp runs
your-file through cpp, compiles the type definitions, and merges
the information into a ToolTalk Types table. Table 4-1 “XDR-base
Format ToolTalk Types Table” describes location of the XDR-base format
tables. Table 4-1 XDR-base
Format ToolTalk Types Table | Database | Uses XDR Table |
|---|
| user | ~/.tt/types.xdr | | system | /etc/dt/appconfig/tttypes/types.xdr |
By default, tt_type_comp uses the user database. To specify
another database, use the -d option; for example % tt_type_comp -d user|system|network <your-file>
|
 |  |  |  |  | NOTE: When you run tt_type_comp on your ptype or otype files,
it first runs cpp on the file and then checks the syntax before
it places the data into the ToolTalk Types Database format. If syntax
errors are found, a message is displayed that indicates the line
number of the cpp file. To find the line, enter cpp -P
source-file temp-file
and view the temp-file to find the error
on the line reported by tt_type_comp. |  |  |  |  |
Force ttsession to reread the ToolTalk Types Database. To force ttsession to reread the ToolTalk Types Database,
see "Updating the ToolTalk Service."
|