libptpmgmt
1.3
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) |
bool | ptpmgmt_json_selectLib (const char *libName) |
const char * | ptpmgmt_json_loadLibrary () |
bool | ptpmgmt_json_isLibShared () |
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
bool ptpmgmt_json_isLibShared | ( | ) |
Determine if library is shared or static
const char* ptpmgmt_json_loadLibrary | ( | ) |
Return shared library name
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 |
bool ptpmgmt_json_selectLib | ( | const char * | libName | ) |
Try to load the a specific library
[in] | libName | partial library name |
char* ptpmgmt_json_tlv2json | ( | enum ptpmgmt_mng_vals_e | managementId, |
const void * | tlv, | ||
int | indent | ||
) |
Convert PTP managment TLV to JSON string
[in] | managementId | PTP managment TLV id |
[in] | tlv | PTP managment TLV |
[in] | indent | base indent for the JSON string |