ToolTalk User's Guide

Installing Application Types

Installing application types is an occasional task; you only need to install type information when new types are created, or 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:

  1. 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 5–1 describes location of the XDR-base format tables; Table 5–2 describes the location of the Classing Engine-base format table.


    Note –

    The Classing Engine interface exists for compatibility reasons only. The default is XDR.


    Table 5–1 XDR-base Format ToolTalk Types Tables

    Database 

    Uses XDR Table 

    user 

    ~/.tt/types.xdr

    system 

    /etc/tt/types.xdr

    desktop 

    /usr/dt/appconfig/tttypes/types.xdr

    network 

    $OPENWINHOME/etc/tt/types.xdr

    Table 5–2 Classing Engine-base Format ToolTalk Types Tables

    Database 

    Uses Classing Engine Table 

    user 

    ~/.cetables/cetables

    system 

    /etc/cetables/cetables

    network 

    $OPENWINHOME/lib/cetables/cetables

    There are four XDR databases. The $TTPATH environment variable determines which three will be used. See tt_type_comp(1) for details about the format and priority of $TTPATH entries.

    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|desktop]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.


  2. ttsession will reread the ToolTalk Types Database automatically.

    To force ttsession to reread the ToolTalk Types Database, see the Updating the ToolTalk Service.