OpenTP1 Version 7 Programming Reference C Language

[Contents][Index][Back][Next]

Appendix B.2 User exit routines

This section lists the changes to user exit routines.

Organization of this subsection
(1) User exit routine that determines inheritance of timer-start messages

(1) User exit routine that determines inheritance of timer-start messages

(a) Format

ANSI C, C++

Version 6 or earlier Version 7
<For 32-bit architecture>
long  uoc_func(dcmpsv_uoc_rtime  *parm)

DCLONG uoc_func(dcmpsv_uoc_rtime  *parm)
 
<For 64-bit architecture>
int  uoc_func(dcmpsv_uoc_rtime  *parm)

K&R C

Version 6 or earlier Version 7
<For 32-bit architecture>
long  uoc_func(parm)
dcmpsv_uoc_rtime *parm ;

DCLONG uoc_func(parm)
dcmpsv_uoc_rtime *parm ;
 
<For 64-bit architecture>
int  uoc_func(parm)
dcmpsv_uoc_rtime *parm ;
(b) Parameters

Contents of dcmpsv_uoc_rtime

Version 6 or earlier Version 7
<For 32-bit architecture>
typedef  struct {char le_name[9];
                 char reserve1[7];
                 char ap_name[9];
                 char reserve2[7];
                 long exec_time;
                 char ap_type;
                 char time_type;
                 char reserve3[26];
                 } dcmpsv_uoc_rtime;

typedef  struct {char le_name[9];
                 char reserve1[7];
                 char ap_name[9];
                 char reserve2[7];
                 DCLONG exec_time;
                 char ap_type;
                 char time_type;
                 char reserve3[26];
                 } dcmpsv_uoc_rtime;
 
<For 64-bit architecture>
typedef  struct {char le_name[9];
                 char reserve1[7];
                 char ap_name[9];
                 char reserve2[7];
                 int exec_time;
                 char ap_type;
                 char time_type;
                 char reserve3[26];
                 } dcmpsv_uoc_rtime;