|
libptpmgmt 2.0
libptpmgmt library that provides the functionality of linuxptp pmc
|
Convert a management or a signalling message to JSON. More...
#include "msg.h"
Go to the source code of this file.
Classes | |
| class | Json2msg |
Functions | |
| __PTPMGMT_NAMESPACE_BEGIN std::string | msg2json (const Message &message, int indent=0) |
| std::string | tlv2json (mng_vals_e managementId, const BaseMngTlv *tlv, int indent=0) |
Convert a management or a signalling message to JSON.
| __PTPMGMT_NAMESPACE_BEGIN std::string msg2json | ( | const Message & | message, |
| int | indent = 0 |
||
| ) |
Convert Message to JSON string
| [in] | message | received from PTP entity |
| [in] | indent | base indent for the JSON string |
| std::string tlv2json | ( | mng_vals_e | managementId, |
| const BaseMngTlv * | tlv, | ||
| int | indent = 0 |
||
| ) |
Convert PTP management TLV to JSON string
| [in] | managementId | PTP management TLV id |
| [in] | tlv | PTP management TLV |
| [in] | indent | base indent for the JSON string |