libptpmgmt
1.4
libptpmgmt library that provides the functionality of linuxptp pmc
|
Convert a management or a signalling message to JSON. More...
#include "c/msg.h"
Go to the source code of this file.
Classes | |
struct | ptpmgmt_json_t |
Typedefs | |
typedef struct ptpmgmt_json_t * | ptpmgmt_json |
typedef const struct ptpmgmt_json_t * | const_ptpmgmt_json |
Functions | |
char * | ptpmgmt_json_msg2json (const_ptpmgmt_msg message, int indent) |
char * | ptpmgmt_json_tlv2json (enum ptpmgmt_mng_vals_e managementId, const void *tlv, int indent) |
ptpmgmt_json | ptpmgmt_json_alloc () |
Convert a management or a signalling message to JSON.
typedef const struct ptpmgmt_json_t* const_ptpmgmt_json |
pointer to constant ptpmgmt json structure
typedef struct ptpmgmt_json_t* ptpmgmt_json |
pointer to ptpmgmt json structure
ptpmgmt_json ptpmgmt_json_alloc | ( | ) |
Alocate new json structure
char* ptpmgmt_json_msg2json | ( | const_ptpmgmt_msg | message, |
int | indent | ||
) |
Convert Message to JSON string
[in] | message | received from PTP entity |
[in] | indent | base indent for the JSON string |
char* ptpmgmt_json_tlv2json | ( | enum ptpmgmt_mng_vals_e | managementId, |
const void * | tlv, | ||
int | indent | ||
) |
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 |