ASAP 2.7 Extension Manual

Implementing the ASAP Extension in an Application
HP NonStop ASAP Extension Manual425265-004
4-17
ASAP_UPDATELIST_ Procedure
seg^offset
INT(32)
is the offset into the shared memory segment allocated to the metrics for this
domain. This was initially returned to the caller in its call to
ASAP_REGISTER_.
error^detail
INT .EXT:ref:1
a detailed error, if any, is returned here when this parameter is used and an
error occurs.
num
INT
is the number of DataItems to be updated, from 1 through 12. This value
specifies the number of entries in the asap^list array.
list (asap^list^def)
STRUCT .EXT
is an extended word pointer to the asap^list array, which is defined in the
ASAPX structure definition files ZASPXC, ZASPXCOB, and ZASPXTAL.
Syntax for C Programmers
#include ASAPH(ASAP_UPDATELIST_)
/*#pragma asap_updatelist_ */
_tal _extensible short asap_updatelist_ (
long , /* IN REQUIRED */
/* Memory segment offset for this domain */
short _far *, /* OUT OPTIONAL */
/* Detailed error */
short , /* IN REQUIRED */
/* Number of triplets */
struct __asap_list _far * /* IN REQUIRED */
/* Pointer to triplet array */
);
Example Update Procedure Calls
Example 1 – Transaction Counter
int(32) seg^offset;
int error, data^item;
fixed value;
.
.
.