Type Codes

Some PMX_ENGINE APIs use dynamically typed arguments, these are:

At the C level, dynamically typed values are always represented by 3 variables:

PMX_TYPE type, void *value, size_t size

The 'value' variable contains:

PMX_TYPE_NULL
undefined, value is not used
PMX_TYPE_CALLBACK
pointer to callback function
PMX_TYPE_DOUBLE
pointer to double
PMX_TYPE_INTEGER
int (not a pointer to an int)
PMX_TYPE_STRING
pointer to string, "size" contains length
PMX_TYPE_MESSAGE
PMX_MESSAGE object (is already a pointer)
PMX_TYPE_HASH
PMX_HASH object (is already a pointer). The PMX_TYPE_HASH interface object is required to specify trusted relays.
PMX_TYPE_WEIGHTS (deprecated)
PMX_WEIGHTS object (is already a pointer)
Note
The PMX_TYPE_WEIGHTS interface object is not required for basic SDK usage. This object is provided for backwards compatibility only.