return NULL;
}
+METHOD(imc_manager_t, get_count, int,
+ private_tnc_imc_manager_t *this)
+{
+ return this->imcs->get_count(this->imcs);
+}
+
METHOD(imc_manager_t, notify_connection_change, void,
private_tnc_imc_manager_t *this, TNC_ConnectionID id,
TNC_ConnectionState state)
.public = {
.add = _add,
.remove = _remove_, /* avoid name conflict with stdio.h */
+ .get_count = _get_count,
.notify_connection_change = _notify_connection_change,
.begin_handshake = _begin_handshake,
.set_message_types = _set_message_types,
return NULL;
}
+METHOD(imv_manager_t, get_count, int,
+ private_tnc_imv_manager_t *this)
+{
+ return this->imvs->get_count(this->imvs);
+}
+
METHOD(imv_manager_t, notify_connection_change, void,
private_tnc_imv_manager_t *this, TNC_ConnectionID id,
TNC_ConnectionState state)
.public = {
.add = _add,
.remove = _remove_, /* avoid name conflict with stdio.h */
+ .get_count = _get_count,
.notify_connection_change = _notify_connection_change,
.set_message_types = _set_message_types,
.receive_message = _receive_message,
*/
imc_t* (*remove)(imc_manager_t *this, TNC_IMCID id);
+ /**
+ * Return the number of registered IMCs
+ *
+ * @return number of IMCs
+ */
+ int (*get_count)(imc_manager_t *this);
+
/**
* Notify all IMC instances
*
*/
imv_t* (*remove)(imv_manager_t *this, TNC_IMVID id);
+ /**
+ * Return the number of registered IMVs
+ *
+ * @return number of IMVs
+ */
+ int (*get_count)(imv_manager_t *this);
+
/**
* Notify all IMV instances
*