vf_get_prop_value(3) vf_get_prop_value()

SYNOPSIS

#include <../vformat/vf_iface.h>

extern bool_t vf_get_prop_value
(
       VF_PROP_T *p_prop,

       void **pp_value,

       uint32_t *p_size,

       vf_encoding_t *p_encoding

);

PARAMETERS

VF_PROP_T *p_prop
The property.
void **pp_value
Pointer value.
uint32_t *p_size
Integer value.
vf_encoding_t *p_encoding
Type of return values.

DESCRIPTION

Get hold of raw fields associated with the property. These are of various types:

VF_ENC_VOBJECT
- *Pp_value = pointer to contained VF_OBJECT_T which can be passed back to any of the object manipulation functions.

VF_ENC_7BIT, VF_ENC_QUOTEDPRINTABLE
- *Pp_value = ptr to array of char*, *p_size = number of elts.

VF_ENC_8BIT, VF_BASE64
- *Pp_value = ptr to bytes, *p_size = number of bytes.

RETURNS

TRUE <=> encoding is valid, FALSE else.