man3mngr/initCFpar

Table of Contents

Name

initCFparameter - update a parameter in the AccelNET database

Description

initCFparameter copies CONFLIST.Current to CONFLIST.Prev and V to CONFLIST.Current.

It then constructs an update msg using lclParUpdate(3rmt) or lclUpParExc(3rmt) .

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

This function communicates with dbman in local mode.

This function is part of libmngr.

Syntax

int 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 lclUpdatePar should be returned.

See Also

libmngr(3mngr)

Manual page revision

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


Table of Contents