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

Public Attributes | |
| enum ptpmgmt_mng_vals_e | id |
| void * | tlv |
| void(* | free )(ptpmgmt_tlv_mem self) |
| void(* | clear )(ptpmgmt_tlv_mem self) |
| bool(* | newTlv )(ptpmgmt_tlv_mem self, enum ptpmgmt_mng_vals_e ID) |
| bool(* | copy )(ptpmgmt_tlv_mem self, const_ptpmgmt_tlv_mem other) |
| bool(* | copyTlv )(ptpmgmt_tlv_mem self, enum ptpmgmt_mng_vals_e ID, void *tlv) |
| enum ptpmgmt_mng_vals_e(* | getID )(const_ptpmgmt_tlv_mem self) |
| void *(* | getTLV )(const_ptpmgmt_tlv_mem self) |
| void *(* | allocMem )(ptpmgmt_tlv_mem self, size_t size) |
| void *(* | callocMem )(ptpmgmt_tlv_mem self, size_t number, size_t size) |
| void *(* | reallocMem )(ptpmgmt_tlv_mem self, void *memory, size_t size) |
| void *(* | recallocMem )(ptpmgmt_tlv_mem self, void *memory, size_t number, size_t size) |
| struct ptpmgmt_PTPText_t(* | allocString )(ptpmgmt_tlv_mem self, const char *str) |
| struct ptpmgmt_PTPText_t(* | allocStringLen )(ptpmgmt_tlv_mem self, const char *str, size_t len) |
| bool(* | reallocString )(ptpmgmt_tlv_mem self, struct ptpmgmt_PTPText_t *text, const char *str) |
| bool(* | reallocStringLen )(ptpmgmt_tlv_mem self, struct ptpmgmt_PTPText_t *text, const char *str, size_t len) |
| bool(* | freeMem )(ptpmgmt_tlv_mem self, void *mem) |
| bool(* | freeString )(ptpmgmt_tlv_mem self, struct ptpmgmt_PTPText_t *txt) |
Structure to track allocations for TLV objects and release all memory at once
| void *(* ptpmgmt_tlv_mem_t::allocMem) (ptpmgmt_tlv_mem self, size_t size) |
Allocate new memory to use with the tlv
| [in] | self | memory object |
| [in] | size | for new allocation |
| struct ptpmgmt_PTPText_t(* ptpmgmt_tlv_mem_t::allocString) (ptpmgmt_tlv_mem self, const char *str) |
Allocate new PTPText with string
| [in] | self | memory object |
| [in] | str | null terminated string used in new allocation |
| struct ptpmgmt_PTPText_t(* ptpmgmt_tlv_mem_t::allocStringLen) (ptpmgmt_tlv_mem self, const char *str, size_t len) |
Allocate new PTPText with string
| [in] | self | memory object |
| [in] | str | string used in new allocation |
| [in] | len | string length used in new allocation |
| void *(* ptpmgmt_tlv_mem_t::callocMem) (ptpmgmt_tlv_mem self, size_t number, size_t size) |
Allocate new memory to use with the tlv
| [in] | self | memory object |
| [in] | number | of elements |
| [in] | size | of element |
| void(* ptpmgmt_tlv_mem_t::clear) (ptpmgmt_tlv_mem self) |
clear the tlv and free all memory allocations
| [in,out] | self | memory object |
| bool(* ptpmgmt_tlv_mem_t::copy) (ptpmgmt_tlv_mem self, const_ptpmgmt_tlv_mem other) |
Copy tlv
| [in,out] | self | memory object |
| [in] | other | tlv to copy |
| bool(* ptpmgmt_tlv_mem_t::copyTlv) (ptpmgmt_tlv_mem self, enum ptpmgmt_mng_vals_e ID, void *tlv) |
Copy tlv
| [in,out] | self | memory object |
| [in] | ID | of tlv to copy |
| [in] | tlv | to copy |
| void(* ptpmgmt_tlv_mem_t::free) (ptpmgmt_tlv_mem self) |
Free this tlv object and free all memory allocations
| [in,out] | self | memory object |
| bool(* ptpmgmt_tlv_mem_t::freeMem) (ptpmgmt_tlv_mem self, void *mem) |
Free memory use with the tlv
| [in] | self | memory object |
| [in] | mem | to free |
| bool(* ptpmgmt_tlv_mem_t::freeString) (ptpmgmt_tlv_mem self, struct ptpmgmt_PTPText_t *txt) |
Free memory use in the PTPText
| [in] | self | memory object |
| [in] | mem | to free |
| enum ptpmgmt_mng_vals_e(* ptpmgmt_tlv_mem_t::getID) (const_ptpmgmt_tlv_mem self) |
get tlv ID
| [in] | self | memory object |
| void *(* ptpmgmt_tlv_mem_t::getTLV) (const_ptpmgmt_tlv_mem self) |
Get the tlv itsef
| [in] | self | memory object |
| enum ptpmgmt_mng_vals_e ptpmgmt_tlv_mem_t::id |
< The TLV ID
| bool(* ptpmgmt_tlv_mem_t::newTlv) (ptpmgmt_tlv_mem self, enum ptpmgmt_mng_vals_e ID) |
Allocate new empty tlv
| [in,out] | self | memory object |
| [in] | ID | of tlv to allocate |
| void *(* ptpmgmt_tlv_mem_t::reallocMem) (ptpmgmt_tlv_mem self, void *memory, size_t size) |
Reallocate memory to use with the tlv
| [in] | self | memory object |
| [in] | memory | pointer to reallocate |
| [in] | size | for new allocation |
| bool(* ptpmgmt_tlv_mem_t::reallocString) (ptpmgmt_tlv_mem self, struct ptpmgmt_PTPText_t *text, const char *str) |
reallocate new PTPText with string
| [in] | self | memory object |
| [in] | text | object to reallocate |
| [in] | str | null terminated string used in new allocation |
| bool(* ptpmgmt_tlv_mem_t::reallocStringLen) (ptpmgmt_tlv_mem self, struct ptpmgmt_PTPText_t *text, const char *str, size_t len) |
reallocate new PTPText with string
| [in] | self | memory object |
| [in] | text | object to reallocate |
| [in] | str | string used in new allocation |
| [in] | len | string length used in new allocation |
| void *(* ptpmgmt_tlv_mem_t::recallocMem) (ptpmgmt_tlv_mem self, void *memory, size_t number, size_t size) |
Reallocate new memory to use with the tlv
| [in] | self | memory object |
| [in] | memory | pointer to reallocate |
| [in] | number | of elements |
| [in] | size | of element |
| void* ptpmgmt_tlv_mem_t::tlv |
The TLV object