|
libptpmgmt 2.0
libptpmgmt library that provides the functionality of linuxptp pmc
|
Builder for a management TLV. More...
#include <msgCall.h>

Public Attributes | |
| ptpmgmt_msg | msg |
| ptpmgmt_tlv_mem | tlv_mem |
| void(* | free )(ptpmgmt_builder builder) |
| ptpmgmt_msg(* | getMsg )(const_ptpmgmt_builder builder) |
| ptpmgmt_tlv_mem(* | getTlvMem )(const_ptpmgmt_builder builder) |
| void(* | clear )(ptpmgmt_builder builder) |
| bool(* | assign )(ptpmgmt_builder builder, enum ptpmgmt_mng_vals_e tlv_id, ptpmgmt_builder_callback callback) |
| bool(* | buildTlv )(ptpmgmt_builder builder, void *cookie, enum ptpmgmt_actionField_e actionField, enum ptpmgmt_mng_vals_e tlv_id) |
Builder for a management TLV.
Call-backs used by the callHadler and callHadler_tlv.
| bool(* ptpmgmt_builder_t::assign) (ptpmgmt_builder builder, enum ptpmgmt_mng_vals_e tlv_id, ptpmgmt_builder_callback callback) |
Assign tlv ID with callback function
| [in] | builder | pointer to builder object |
| [in] | tlv_id | TLV ID |
| [in] | callback | to use |
| bool(* ptpmgmt_builder_t::buildTlv) (ptpmgmt_builder builder, void *cookie, enum ptpmgmt_actionField_e actionField, enum ptpmgmt_mng_vals_e tlv_id) |
Allocate a management TLV, use a call-back to set its values and assign it with the Message object ready for sending
| [in,out] | builder | object |
| [in] | cookie | from user, that pass to callback |
| [in] | actionField | action type |
| [in] | tlv_id | TLV ID to send |
| void(* ptpmgmt_builder_t::clear) (ptpmgmt_builder builder) |
Clear the tlv in the Message object
| [in,out] | builder | object to clean |
| void(* ptpmgmt_builder_t::free) (ptpmgmt_builder builder) |
Free this builder object
| [in,out] | builder | object to free |
| ptpmgmt_msg(* ptpmgmt_builder_t::getMsg) (const_ptpmgmt_builder builder) |
| ptpmgmt_tlv_mem(* ptpmgmt_builder_t::getTlvMem) (const_ptpmgmt_builder builder) |
Get pointer to the TLV memory object
| [in] | builder | object |
| ptpmgmt_msg ptpmgmt_builder_t::msg |
The Message wrapper onject
| ptpmgmt_tlv_mem ptpmgmt_builder_t::tlv_mem |
The TLV memory object