trq_answer()

trq_answer()#

trq_answer() extracts and returns a new JSON object containing only the metadata from the given message.

Prototype

json_t *trq_answer(
    json_t *jn_message,  // not owned, Gps message, to get only __MD_TRQ__
    int     result
);

Parameters

Key

Type

Description

jn_message

json_t *

A JSON object representing the original message. The ownership of this object is not transferred.

result

int

An integer result code that may be included in the returned metadata.


Return Value

A new JSON object containing only the metadata extracted from jn_message. The caller assumes ownership of the returned object.

Notes

The function is specifically designed to extract the __MD_TRQ__ metadata field from the input message.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples