allow registration of multiple message type
This commit is contained in:
@@ -106,12 +106,16 @@ struct imc_agent_t {
|
||||
* @param excl exclusive flag
|
||||
* @param src_imc_id IMC ID to be set as source
|
||||
* @param dst_imv_id IMV ID to be set as destination
|
||||
* @param msg_vid message vendor ID
|
||||
* @param msg_subtype message subtype
|
||||
* @param attr_list list of PA-TNC attributes to send
|
||||
* @return TNC result code
|
||||
*/
|
||||
TNC_Result (*send_message)(imc_agent_t *this,
|
||||
TNC_ConnectionID connection_id, bool excl,
|
||||
TNC_UInt32 src_imc_id, TNC_UInt32 dst_imv_id,
|
||||
TNC_VendorID msg_vid,
|
||||
TNC_MessageSubtype msg_subtype,
|
||||
linked_list_t *attr_list);
|
||||
|
||||
/**
|
||||
@@ -164,14 +168,14 @@ struct imc_agent_t {
|
||||
* Create an imc_agent_t object
|
||||
*
|
||||
* @param name name of the IMC
|
||||
* @param vendor_id vendor ID of the IMC
|
||||
* @param subtype message subtype of the IMC
|
||||
* @param supported_types list of message types registered by the IMC
|
||||
* @param type_count number of registered message types
|
||||
* @param id ID of the IMC as assigned by the TNCS
|
||||
* @param actual_version actual version of the IF-IMC API
|
||||
*
|
||||
*/
|
||||
imc_agent_t *imc_agent_create(const char *name,
|
||||
pen_t vendor_id, u_int32_t subtype,
|
||||
pen_type_t *supported_types, u_int32_t type_count,
|
||||
TNC_IMCID id, TNC_Version *actual_version);
|
||||
|
||||
#endif /** IMC_AGENT_H_ @}*/
|
||||
|
||||
Reference in New Issue
Block a user