pps_encoder_set_option()

Enable an encoder option

Synopsis:

#include <sys/pps.h>
            
void pps_encoder_set_option( pps_encoder_t *encoder,
                             pps_encoder_option_t option );

Arguments:

encoder
A pointer to the PPS encoder structure.
option
The option that you want to enable; one of:
  • PPS_ENCODER_CLEAR_MEMORY — clear any allocated memory before freeing it.
  • PPS_ENCODER_ENCODE_JSON — encode entirely as JSON. The default behavior is to encode as PPS, although the encoding automatically switches to JSON for complex attributes.

Library:

libpps

Description:

The pps_encoder_set_option() function enables the specified option. You should change option states only immediately after calling pps_encoder_initialize(), pps_encoder_cleanup(), or pps_encoder_reset().

Classification:

QNX Neutrino

Safety:  
Interrupt handler No
Signal handler No
Thread Yes