FTAM/9000 Programmer's Guide

Chapter 10 405
Example Programs
Common Code Example
void
aed_parm_in(return_event_name, inout_dcb)
Local_event_name *return_event_name;
struct Ft_output **inout_dcb;
{
/*
** Initialize the parameters with valid values.
*/
*return_event_name = SYNCHRONOUS;
*inout_dcb = NULL;
}
/*
** fco_parm_in
**
** DESCRIPTION:
** This routine assigns valid values to the ft_fcopy parameters.
**
**
** PARAMETERS:
** Outputs:
** source_dirname : name of the source AE directory
** source_filename : name of the source file
** destination_dirname : name of the destination AE directory
** destination_filename : name of the destination file
** ae_label : label of AE invocation
** return_event_name : gets signalled when the event completes
** default: SYNCHRONOUS
** input_dcb : contains ft_fcopy input information
** inout_dcb : contains return_code field
**
*/
void
fco_parm_in(source_dirname, source_filename, destination_dirname,
destination_filename, ae_label, return_event_name, input_dcb,
inout_dcb)
Ae_dir_name *source_dirname;
Ft_filename *source_filename;
Ae_dir_name *destination_dirname;
Ft_filename *destination_filename;
Ae_label *ae_label;
Local_event_name *return_event_name;
struct Ft_fcopy_in_dcb **input_dcb;
struct Ft_fcopy_out_dcb **inout_dcb;
{
Return_code res;
Api_rc outcome;
struct Ft_diagnostic *diag = NULL;