support of reportMessageTypes() function

This commit is contained in:
Andreas Steffen
2010-11-09 20:43:50 +01:00
parent 544b094277
commit 296636252b
11 changed files with 175 additions and 23 deletions
+18 -9
View File
@@ -36,7 +36,7 @@ struct imc_t {
* @param minVersion Minimum API version supported by TNCC
* @param maxVersion Maximum API version supported by TNCC
* @param OutActualVersion Mutually supported API version number
* @result TNC result code
* @return TNC result code
*/
TNC_Result (*initialize)(TNC_IMCID imcID,
TNC_Version minVersion,
@@ -50,7 +50,7 @@ struct imc_t {
* @param imcID IMC ID assigned by TNCC
* @param connectionID Network connection ID assigned by TNCC
* @param newState New network connection state
* @result TNC result code
* @return TNC result code
*/
TNC_Result (*notify_connection_change)(TNC_IMCID imcID,
TNC_ConnectionID connectionID,
@@ -62,7 +62,7 @@ struct imc_t {
*
* @param imcID IMC ID assigned by TNCC
* @param connectionID Network connection ID assigned by TNCC
* @result TNC result code
* @return TNC result code
*/
TNC_Result (*begin_handshake)(TNC_IMCID imcID,
TNC_ConnectionID connectionID);
@@ -78,7 +78,7 @@ struct imc_t {
* @param message Reference to buffer containing message
* @param messageLength Number of octets in message
* @param messageType Message type of message
* @result TNC result code
* @return TNC result code
*/
TNC_Result (*receive_message)(TNC_IMCID imcID,
TNC_ConnectionID connectionID,
@@ -93,7 +93,7 @@ struct imc_t {
*
* @param imcID IMC ID assigned by TNCC
* @param connectionID Network connection ID assigned by TNCC
* @result TNC result code
* @return TNC result code
*/
TNC_Result (*batch_ending)(TNC_IMCID imcID,
TNC_ConnectionID connectionID);
@@ -103,7 +103,7 @@ struct imc_t {
* complete or the IMC reports TNC_RESULT_FATAL.
*
* @param imcID IMC ID assigned by TNCC
* @result TNC result code
* @return TNC result code
*/
TNC_Result (*terminate)(TNC_IMCID imcID);
@@ -116,7 +116,7 @@ struct imc_t {
*
* @param imcID IMC ID assigned by TNCC
* @param bindFunction Pointer to TNC_TNCC_BindFunction
* @result TNC result code
* @return TNC result code
*/
TNC_Result (*provide_bind_function)(TNC_IMCID imcID,
TNC_TNCC_BindFunctionPointer bindFunction);
@@ -131,17 +131,26 @@ struct imc_t {
/**
* Returns the ID of an imc_t object.
*
* @result assigned IMC ID
* @return assigned IMC ID
*/
TNC_IMCID (*get_id)(imc_t *this);
/**
* Returns the name of an imc_t object.
*
* @result name of IMC
* @return name of IMC
*/
char* (*get_name)(imc_t *this);
/**
* Sets the supported message types of an imc_t object.
*
* @param supported_types List of messages type supported by IMC
* @param type_count Number of supported message types
*/
void (*set_message_types)(imc_t *this, TNC_MessageTypeList supported_types,
TNC_UInt32 type_count);
/**
* Destroys an imc_t object.
*/
+13
View File
@@ -56,6 +56,19 @@ struct imc_manager_t {
*/
void (*begin_handshake)(imc_manager_t *this, TNC_ConnectionID id);
/**
* Sets the supported message types reported by a given IMC
*
* @param id ID of reporting IMC
* @param supported_types List of messages type supported by IMC
* @param type_count Number of supported message types
* @return TNC result code
*/
TNC_Result (*set_message_types)(imc_manager_t *this,
TNC_IMCID id,
TNC_MessageTypeList supported_types,
TNC_UInt32 type_count);
/**
* Destroy an IMC manager and all its controlled instances.
*/
+18 -9
View File
@@ -36,7 +36,7 @@ struct imv_t {
* @param minVersion Minimum API version supported
* @param maxVersion Maximum API version supported by TNCS
* @param OutActualVersion Mutually supported API version number
* @result TNC result code
* @return TNC result code
*/
TNC_Result (*initialize)(TNC_IMVID imvID,
TNC_Version minVersion,
@@ -50,7 +50,7 @@ struct imv_t {
* @param imvID IMV ID assigned by TNCS
* @param connectionID Network connection ID assigned by TNCS
* @param newState New network connection state
* @result TNC result code
* @return TNC result code
*/
TNC_Result (*notify_connection_change)(TNC_IMVID imvID,
TNC_ConnectionID connectionID,
@@ -63,7 +63,7 @@ struct imv_t {
*
* @param imvID IMV ID assigned by TNCS
* @param connectionID Network connection ID assigned by TNCS
* @result TNC result code
* @return TNC result code
*/
TNC_Result (*solicit_recommendation)(TNC_IMVID imvID,
TNC_ConnectionID connectionID);
@@ -79,7 +79,7 @@ struct imv_t {
* @param message Reference to buffer containing message
* @param messageLength Number of octets in message
* @param messageType Message type of message
* @result TNC result code
* @return TNC result code
*/
TNC_Result (*receive_message)(TNC_IMVID imvID,
TNC_ConnectionID connectionID,
@@ -94,7 +94,7 @@ struct imv_t {
*
* @param imvID IMV ID assigned by TNCS
* @param connectionID Network connection ID assigned by TNCS
* @result TNC result code
* @return TNC result code
*/
TNC_Result (*batch_ending)(TNC_IMVID imvID,
TNC_ConnectionID connectionID);
@@ -103,7 +103,7 @@ struct imv_t {
* The TNC Server calls this function to close down the IMV.
*
* @param imvID IMV ID assigned by TNCS
* @result TNC result code
* @return TNC result code
*/
TNC_Result (*terminate)(TNC_IMVID imvID);
@@ -116,7 +116,7 @@ struct imv_t {
*
* @param imvID IMV ID assigned by TNCS
* @param bindFunction Pointer to TNC_TNCS_BindFunction
* @result TNC result code
* @return TNC result code
*/
TNC_Result (*provide_bind_function)(TNC_IMVID imvID,
TNC_TNCS_BindFunctionPointer bindFunction);
@@ -131,17 +131,26 @@ struct imv_t {
/**
* Returns the ID of an imv_t object.
*
* @result IMV ID assigned by TNCS
* @return IMV ID assigned by TNCS
*/
TNC_IMVID (*get_id)(imv_t *this);
/**
* Returns the name of an imv_t object.
*
* @result name of IMV
* @return name of IMV
*/
char* (*get_name)(imv_t *this);
/**
* Sets the supported message types of an imv_t object.
*
* @param supported_types List of messages type supported by IMV
* @param type_count Number of supported message types
*/
void (*set_message_types)(imv_t *this, TNC_MessageTypeList supported_types,
TNC_UInt32 type_count);
/**
* Destroys an imv_t object.
*/
+14
View File
@@ -48,6 +48,20 @@ struct imv_manager_t {
void (*notify_connection_change)(imv_manager_t *this,
TNC_ConnectionID id,
TNC_ConnectionState state);
/**
* Sets the supported message types reported by a given IMV
*
* @param id ID of reporting IMV
* @param supported_types List of messages type supported by IMV
* @param type_count Number of supported message types
* @return TNC result code
*/
TNC_Result (*set_message_types)(imv_manager_t *this,
TNC_IMVID id,
TNC_MessageTypeList supported_types,
TNC_UInt32 type_count);
/**
* Destroy an IMV manager and all its controlled instances.
*/
+2 -2
View File
@@ -66,7 +66,7 @@ struct tnccs_manager_t {
*
* @param tnccs TNCCS connection instance
* @param send_message callback function adding a message to a TNCCS batch
* @result assigned connection ID
* @return assigned connection ID
*/
TNC_ConnectionID (*create_connection)(tnccs_manager_t *this, tnccs_t *tnccs,
tnccs_send_message_t send_message);
@@ -85,7 +85,7 @@ struct tnccs_manager_t {
* @param message message to be added
* @param message_len message length
* @param message_type message type
* @result return code
* @return return code
*/
TNC_Result (*send_message)(tnccs_manager_t *this, TNC_ConnectionID id,
TNC_BufferReference message,