man3mngr/rmt_initCFpar

Table of Contents

Name

rmt_initCFparameter - update a parameter in the AccelNET database

Description

rmt_initCFparameter copies CONFLIST.Current to CONFLIST.Prev and V to CONFLIST.Current. It then constructs an update msg using rmtParUpdate(3rmt) or rmtUpParExc(3rmt) .

This function should be called during the initialization phase of the program. rmt_UpdateCFparameter(3mngr) should be called elsewhere. This difference is that rmt_initCFparameter(3mngr) always sends an update message to dbman. rmt_UpdateCFparameter(3mngr) only sends a message if the values are different.

This function communicates with dbman in remote mode.

This function is part of libmngr.

Syntax

int rmt_initCFparameter(
   int DBchan,

   CONFLIST *CFpnt,

   double V,

   int exclude_flag

   );

Arguments

DBchan

database channel

CFpnt

A pointer to a CONFLIST record.

V

The new value.

exclude_flag

If this value is zero dbman(8) sends an update back to the caller if subscribed.

If this value is one no update is sent back to the caller.

Return Value

0 is always returned.

Notes

Perhaps the error code from rmtUpdatePar(3rmt) should be returned.

See Also

libmngr(3mngr)

Manual page revision

$Id: rmt_initCFpar.3,v 1.2 2004/05/05 15:52:25 kitchen Exp $


Table of Contents