Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP ToolTalk Programmer's Guide > Chapter 4 Maintaining Application Information

Installing Application Types

» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Glossary

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:

  1. Run tt_type_comp on your type file

    % tt_type_comp <your-file>
  2. 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

    DatabaseUses 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.
  3. Force ttsession to reread the ToolTalk Types Database.

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

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.