added TNC_TNCC_ReserveAdditionalIMCID() function

This commit is contained in:
Andreas Steffen
2011-12-07 17:31:49 +01:00
parent 8b8fcfd631
commit 80ca4e50c9
5 changed files with 123 additions and 4 deletions
+15 -1
View File
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2010 Andreas Steffen
* Copyright (C) 2010-2011 Andreas Steffen
* HSR Hochschule fuer Technik Rapperswil
*
* This program is free software; you can redistribute it and/or modify it
@@ -143,6 +143,20 @@ struct imc_t {
*/
TNC_IMCID (*get_id)(imc_t *this);
/**
* Assign an additional ID to an imc_t object.
*
* @param id additional IMC ID to be assigned
*/
void (*add_id)(imc_t *this, TNC_IMCID id);
/**
* Checks if the ID is assigned to the imc_t object.
*
* @return TRUE if IMC ID is assigned to imc_t object
*/
bool (*has_id)(imc_t *this, TNC_IMCID id);
/**
* Returns the name of an imc_t object.
*
+9
View File
@@ -65,6 +65,15 @@ struct imc_manager_t {
*/
bool (*is_registered)(imc_manager_t *this, TNC_IMCID id);
/**
* Reserve an additional ID for an IMC
*
* @param id ID of IMC instance
* @param new_id reserved ID assigned to IMC
* @return TRUE if primary IMC ID was used
*/
bool (*reserve_id)(imc_manager_t *this, TNC_IMCID id, TNC_UInt32 *new_id);
/**
* Return the preferred language for recommendations
*