FTAM/9000 Programmer's Guide

Chapter 10 407
Example Programs
Common Code Example
/*
**
** fca_parm_in
**
** DESCRIPTION:
** This routine assigns valid values to the ft_fcattributes 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_fcattributes input information
** inout_dcb : contains return_code field
**
*/
void
fca_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_fcattributes_in_dcb **input_dcb;
struct Ft_fcattributes_out_dcb **inout_dcb;
{
Return_code res;
Api_rc outcome;
struct Ft_diagnostic *diag = NULL;
/*
** Set the directory distinguished name to identify the responder
** on the desired node.
*/
convert_ddn(dirname, REMOTE_RESP);
*filename = DEST_FNAME;
*ae_label = 0;
*return_event_name = SYNCHRONOUS;
/*
** Initialize the input_dcb.
*/
res = ft_didcb(FTiFCattributes, 0, (Octet **)input_dcb, & outcome);
if (res != SUCCESS)
error_handler(outcome, diag);
(*input_dcb)-init_id = DEST_ID;
(*input_dcb)-filestore_pw.pointer = (Octet *)DEST_PW;
(*input_dcb)-filestore_pw.length = DEST_PW_LEN;
passwords_in( & ((*input_dcb)-file_passwords) );