Nyx Node
Loading...
Searching...
No Matches
JSON <-> XML

Functions

__NULLABLE__ nyx_object_tnyx_xmldoc_to_object (__NULLABLE__ const nyx_xmldoc_t *xmldoc, bool validate)
 Convert an XML Nyx / INDI command to the JSON one.
 
__NULLABLE__ nyx_xmldoc_tnyx_object_to_xmldoc (__NULLABLE__ const nyx_object_t *object, bool validate)
 Convert an JSON Nyx / INDI command to the XML one.
 

Detailed Description

JSON <-> XML Nyx / INDI commands.

Function Documentation

◆ nyx_xmldoc_to_object()

__NULLABLE__ nyx_object_t * nyx_xmldoc_to_object ( __NULLABLE__ const nyx_xmldoc_t * xmldoc,
bool validate )

Convert an XML Nyx / INDI command to the JSON one.

Parameters
xmldocThe provided XML Nyx / INDI command.
validateIf true, the input XML command is validated (see nyx_validation_check).
Returns
The generated JSON Nyx / INDI command.

◆ nyx_object_to_xmldoc()

__NULLABLE__ nyx_xmldoc_t * nyx_object_to_xmldoc ( __NULLABLE__ const nyx_object_t * object,
bool validate )

Convert an JSON Nyx / INDI command to the XML one.

Parameters
objectThe provided JSON Nyx / INDI command.
validateIf true, the output XML command is validated (see nyx_validation_check).
Returns
The generated XML Nyx / INDI command.