qvm_outattr()

Generate an attribute from the specified input

Synopsis:

#include <qvm/outpipe.h>
static unsigned int qvm_outattr(const qvm_outlbl_t lbl,
                                const qvm_outrs_t rs,
                                const qvm_outrc_t rc,
                                const unsigned int uc)

Arguments:

lbl
A QVM_OUTAL_* label (e.g., QVM_OUTAL_ERROR).
rs
A source type as a part of the return code.
rc
A code type as a part of the return code.
uc
A user-defined code to indicate a specific error or purpose.

Library:

Provided by qvm; no external library is required.

Description:

See Definitions in outpipe.h for more information about attributes.

Returns:

A combined attribute based on the input.