libptpmgmt  1.3
libptpmgmt library that provides the functionality of linuxptp pmc
Functions
msgCall.h File Reference

Messages dispatcher for C. More...

#include "c/callDef.h"
Include dependency graph for msgCall.h:

Go to the source code of this file.

Functions

void ptpmgmt_callHadler (void *cookie, const_ptpmgmt_dispatcher d, ptpmgmt_msg msg)
 
void ptpmgmt_callHadler_tlv (void *cookie, const_ptpmgmt_dispatcher d, ptpmgmt_msg msg, enum ptpmgmt_mng_vals_e tlv_id, const void *tlv)
 

Detailed Description

Messages dispatcher for C.

Author
Erez Geva <ErezGeva2@gmail.com>

Function Documentation

◆ ptpmgmt_callHadler()

void ptpmgmt_callHadler ( void *  cookie,
const_ptpmgmt_dispatcher  d,
ptpmgmt_msg  msg 
)

Call handler based on Message last received message

Parameters
[in]cookieuser cookie passed to user callback
[in]dpointer to structure with the callbacks
[in]msgpointer to message object wrapper
Note
Do not forget to null unused callbacks

◆ ptpmgmt_callHadler_tlv()

void ptpmgmt_callHadler_tlv ( void *  cookie,
const_ptpmgmt_dispatcher  d,
ptpmgmt_msg  msg,
enum ptpmgmt_mng_vals_e  tlv_id,
const void *  tlv 
)

Call handler based on supplied TLV

Parameters
[in]cookieuser cookie passed to user callback
[in]dpointer to structure with the callbacks
[in]msgpointer to message object wrapper
[in]tlv_idTLV ID
[in]tlvpointer to a TLV of TLV ID
Note
caller MUST @/b ensure the TLV ID match the actual TLV!
Do not forget to null unused callbacks