/**
* @defgroup imc_msg imc_msg
- * @{ @ingroup libimcv
+ * @{ @ingroup libimcv_imc
*/
#ifndef IMC_MSG_H_
TNC_UInt32 (*get_dst_id)(imc_msg_t *this);
/**
+ * Get the PA-TNC message type.
+ *
+ * @return message type
+ */
+ pen_type_t (*get_msg_type)(imc_msg_t *this);
+
+ /**
* Sends one or multiple PA-TNC messages
*
* @param excl set the excl message flag if supported
* @param attr PA-TNC attribute to be added
*/
void (*add_attribute)(imc_msg_t *this, pa_tnc_attr_t *attr);
-
+
/**
* Enumerator over PA-TNC attributes contained in the PA-TNC message
*
enumerator_t* (*create_attribute_enumerator)(imc_msg_t *this);
/**
+ * Get the encoding of the IMC message.
+ *
+ * @return message encoding, internal data
+ */
+ chunk_t (*get_encoding)(imc_msg_t *this);
+
+ /**
* Destroys a imc_msg_t object.
*/
void (*destroy)(imc_msg_t *this);
imc_msg_t* imc_msg_create_from_data(imc_agent_t *agent, imc_state_t *state,
TNC_ConnectionID connection_id,
TNC_MessageType msg_type,
- chunk_t msg);
+ chunk_t msg);
/**
* Create a wrapper around message data received via the long IF-IMC interface
* @param connection_id connection ID
* @param src_id source IMV ID
* @param dst_id destination IMC ID
- * @param msg_flags PA-TNC message flags
* @param msg_vid PA-TNC message vendor ID
* @param msg_subtype PA-TNC subtype
* @param msg received PA-TNC message blob
TNC_UInt32 src_id, TNC_UInt32 dst_id,
TNC_VendorID msg_vid,
TNC_MessageSubtype msg_subtype,
- chunk_t msg);
+ chunk_t msg);
#endif /** IMC_MSG_H_ @}*/