man3rmt/reqpar_processor

Table of Contents

Name

reqpar_processor - process parameter file and request parameter values from database

Description

reqpar_processor reads from a file containing a list of label/refname pairs. Each time the function is called one line of the file is parsed and a parameter value request is formulated and sent to dbman. The file should be opened before calling this function and closed when finished.

This function is part of librmt.

Syntax

int reqpar_processor(
FILE *in,
int DBsock,
int *Line,
int verbosity
);

Arguments

in

The pathname of the file to read from.

DBsock

The file descriptor for the connection to dbman.

Line

a variable containing the current line number of the file being processed. This should be initialized to zero before calling this function the first time.

verbosity

Defines the amount of messages to print. This value is passed on to SendRec. A value of 0 produces no messages. See the SendRec manpage for full details on available values.

Return Values

-1 - error, end of input, bad db connection
0 - no record processed
   comment and empty lines return this

1 - record processed

See Also

librmt(3rmt)

Manual page revision

$Id: reqpar_processor.3,v 1.2 2008/08/22 16:22:16 mcnamer Exp $


Table of Contents