FTAM/9000 Programmer's Guide

408 Chapter 10
Example Programs
Common Code Example
/*
** Set up the changed attributes.
*/
(*input_dcb)-attribute_names |= FT_AN_STORAGE_ACCT
| FT_AN_FILE_AVAILABILITY | FT_AN_FUTURE_FILESIZE
| FT_AN_LEGAL_QUAL
| FT_AN_PRIVATE_USE;
cat_attribute_in( & ((*input_dcb)-attributes) );
(*input_dcb)-account = DEST_ACCOUNT;
/*
** Initialize the inout_dcb.
*/
*inout_dcb = NULL;
}
/*
**
** fde_parm_in
**
** DESCRIPTION:
** This routine assigns valid values to the ft_fdelete parameters.
**
**
** PARAMETERS:
** Outputs:
** dirname : name of the AE directory
** filename : name of the file
** ae_label : label of AE invocation
** return_event_name : gets signalled when the event completes
** default: SYNCHRONOUS
** input_dcb : contains ft_fdelete input information
** inout_dcb : contains return_code field
**
*/
void
fde_parm_in(dirname, filename, ae_label, return_event_name, input_dcb,
inout_dcb)
Ae_dir_name *dirname;
Ft_filename *filename;
Uint32 *ae_label;
Local_event_name *return_event_name;
struct Ft_fdelete_in_dcb **input_dcb;
struct Ft_fdelete_out_dcb **inout_dcb;
{
Return_code res;
Api_rc outcome;
struct Ft_diagnostic *diag = NULL;
/*
** Set the directory distinguished name to identify the desired
** responder.
*/
convert_ddn(dirname, LOCAL_RESP);
*filename = SRC_FNAME;
*ae_label = 0;
*return_event_name = SYNCHRONOUS;