FTAM/9000 Programmer's Guide

398 Chapter 10
Example Programs
Common Code Example
#include %</opt/ftam/include/map.h>
#include %</opt/ftam/include/mapftam.h>
#include “ftm_globs.h”
#include %<stdio.h>
#include %<malloc.h>
/*
**
** aea_parm_in
**
** DESCRIPTION:
** This routine assigns valid values to the ft_aeactivation
** program.
**
**
** PARAMETERS:
** OUTPUT:
** my_ae_name : the ftam_init name of the user
** return_event_name : gets signalled when the event completes
** default: SYNCHRONOUS
** input_dcb : contains authentication field
** inout_dcb : contains return_code field
** ae_label : AE invocation identifier
**
**
*/
void
aea_parm_in(my_ae_name, return_event_name, input_dcb, inout_dcb,
ae_label)
Ae_dir_name *my_ae_name;
Local_event_name *return_event_name;
struct Ft_aeactivate_in_dcb **input_dcb;
struct Ft_output **inout_dcb;
Ae_label *ae_label;
{
/*
** Initialize my_ae_name identifying the local ftam_init.
*/
convert_ddn(my_ae_name, LOCAL_INIT);
*return_event_name = SYNCHRONOUS;
/*
** Initialize input_dcb.
*/
*input_dcb = (struct Ft_aeactivate_in_dcb *)malloc
(sizeof(struct Ft_aeactivate_in_dcb));
(*input_dcb)-authentication.pointer = (Octet *)NULL;
(*input_dcb)-authentication.length = 0;
(*input_dcb)-my_ae_title_option = No_value_option;
(*input_dcb)-my_ae_title = NULL;