FTAM/9000 Programmer's Guide

114 Chapter 3
HP FTAM/9000 Data Structures
Ft_contents_type
Ft_contents_type
struct Ft_contents_type {
enum Ft_contents_form contents_form;
union Ft_contents_info contents_info;
};
Ft_contents_type specifies the allowable document type for a particular
file.
Ft_contents_type is the type for the contents_type field in struct
Ft_contents_type_element (a linked list of allowable document types per
connection). This structure is also nested within the values field, which is
of type struct Ft_attributes.
Ft_contents_form
enum Ft_contents_form {
FT_DOCUMENT_TYPE = 0,
FT_ABS_CON_SET_PAIR_FORM = 1,
FT_CONTENTS_UNKNOWN = 2
};
Ft_contents_form specifies whether contents_type is a known or
unknown document type.
For all functions that use the Ft_contents_type, (except ft_fopen() and
ft_open()), you must specify FT_DOCUMENT_TYPE.
HP-UX FTAM does not permit you to use the value
FT_ABS_CON_SET_PAIR_FORM.
Specify FT_CONTENTS_UNKNOWN on ft_open() and ft_fopen() if
you do not know the document type; the document type is returned in
the inout_dcb.
contents_form Specifies the contents_type form as a known or
unknown document type.
contents_info Specifies the exact document type.