pps_decoder_get_bool()

Extract a Boolean value from the current or named node

Synopsis:

#include <sys/pps.h>
            
pps_decoder_error_t pps_decoder_get_bool(
                                    pps_decoder_t *decoder,
                                    const char *name,
                                    bool *value);

Arguments:

decoder
A pointer to the PPS decoder structure.
name
The name of the property to extract the value from. Specify NULL to extract the data from the current node.
value
A pointer to a Boolean to take the result.

Library:

libpps

Description:

The function pps_decoder_get_bool() extracts a Boolean value from the current node or the node of the specified name. Following successful extraction, the decoder advances to the next node.

Returns:

PPS_DECODER_OK
Success.
PPS_DECODER_BAD_TYPE
There was a type mismatch.
PPS_DECODER_DELETED
The attribute was deleted.
PPS_DECODER_NOT_FOUND
The specified node doesn't exist.

Classification:

QNX Neutrino

Safety:  
Interrupt handler No
Signal handler No
Thread Yes