|
libptpmgmt 2.0
libptpmgmt library that provides the functionality of linuxptp pmc
|
#include <json.h>

The ptpmgmt json structure hold the json object and call backs to call C++ methods
| enum ptpmgmt_actionField_e(* ptpmgmt_json_t::actionField) (const_ptpmgmt_json j) |
Get action field
| [in] | jobj | pointer of JSON object |
| const void *(* ptpmgmt_json_t::dataField) (ptpmgmt_json j) |
Get dataField
| [in,out] | jobj | pointer of JSON object |
| uint8_t(* ptpmgmt_json_t::domainNumber) (const_ptpmgmt_json j) |
Get domain number
| [in] | jobj | pointer of JSON object |
| const struct ptpmgmt_PortIdentity_t *(* ptpmgmt_json_t::dstPort) (ptpmgmt_json j) |
Get target port ID
| [in,out] | jobj | pointer of JSON object |
| void(* ptpmgmt_json_t::free) (ptpmgmt_json j) |
< Free this json object
| [in,out] | j | json object |
| bool(* ptpmgmt_json_t::fromJson) (ptpmgmt_json j, const char *json) |
Convert JSON string to message
| [in,out] | json | string |
| bool(* ptpmgmt_json_t::haveDomainNumber) (const_ptpmgmt_json j) |
Is domain number in JSON?
| [in] | jobj | pointer of JSON object |
| bool(* ptpmgmt_json_t::haveDstPort) (const_ptpmgmt_json j) |
Is target port ID in JSON?
| [in] | jobj | pointer of JSON object |
| bool(* ptpmgmt_json_t::haveIsUnicast) (const_ptpmgmt_json j) |
Is Unicast flag in JSON?
| [in] | jobj | pointer of JSON object |
| bool(* ptpmgmt_json_t::haveMinorVersionPTP) (const_ptpmgmt_json j) |
Is PTP minor version in JSON?
| [in] | jobj | pointer of JSON object |
| bool(* ptpmgmt_json_t::havePTPProfileSpecific) (const_ptpmgmt_json j) |
Is PTP profile specific in JSON?
| [in] | jobj | pointer of JSON object |
| bool(* ptpmgmt_json_t::haveSdoId) (const_ptpmgmt_json j) |
Is sdoId in JSON?
| [in] | jobj | pointer of JSON object |
| bool(* ptpmgmt_json_t::haveSequenceId) (const_ptpmgmt_json j) |
Is sequence ID in JSON?
| [in] | jobj | pointer of JSON object |
| bool(* ptpmgmt_json_t::haveSrcPort) (const_ptpmgmt_json j) |
Is source port ID in JSON?
| [in] | jobj | pointer of JSON object |
| bool(* ptpmgmt_json_t::haveVersionPTP) (const_ptpmgmt_json j) |
Is PTP major version in JSON?
| [in] | jobj | pointer of JSON object |
| bool(* ptpmgmt_json_t::isUnicast) (const_ptpmgmt_json j) |
Get Unicast flag
| [in] | jobj | pointer of JSON object |
| enum ptpmgmt_mng_vals_e(* ptpmgmt_json_t::managementId) (const_ptpmgmt_json j) |
Get management ID
| [in] | j | json object |
| uint8_t(* ptpmgmt_json_t::minorVersionPTP) (const_ptpmgmt_json j) |
Get PTP minor version
| [in] | jobj | pointer of JSON object |
| uint8_t(* ptpmgmt_json_t::PTPProfileSpecific) (const_ptpmgmt_json j) |
Get PTP profile specific
| [in] | jobj | pointer of JSON object |
| uint32_t(* ptpmgmt_json_t::sdoId) (const_ptpmgmt_json j) |
Get sdoId
| [in] | jobj | pointer of JSON object |
| uint16_t(* ptpmgmt_json_t::sequenceId) (const_ptpmgmt_json j) |
Get sequence ID
| [in] | jobj | pointer of JSON object |
| bool(* ptpmgmt_json_t::setAction) (const_ptpmgmt_json j, ptpmgmt_msg message) |
Call message setAction with parsed JSON
| [in] | jobj | pointer of JSON object |
| const struct ptpmgmt_PortIdentity_t *(* ptpmgmt_json_t::srcPort) (ptpmgmt_json j) |
Get source port ID
| [in,out] | jobj | pointer of JSON object |
| uint8_t(* ptpmgmt_json_t::versionPTP) (const_ptpmgmt_json j) |
Get PTP major version
| [in] | jobj | pointer of JSON object |