Fixed some typos, courtesy of codespell
[strongswan.git] / src / libimcv / plugins / imc_test / imc_test_state.h
index bd14e37..365caff 100644 (file)
  */
 
 /**
+ * @defgroup imc_test imc_test
+ * @ingroup libimcv_plugins
  *
  * @defgroup imc_test_state_t imc_test_state
- * @{ @ingroup imc_test_state
+ * @{ @ingroup imc_test
  */
 
 #ifndef IMC_TEST_STATE_H_
@@ -40,18 +42,25 @@ struct imc_test_state_t {
        /**
         * get the command to send to IMV
         *
-        * @return                              commmand to send to IMV
+        * @return                              command to send to IMV
         */
        char* (*get_command)(imc_test_state_t *this);
 
        /**
         * set the command to send to IMV
         *
-        * @param command               commmand to send to IMV
+        * @param command               command to send to IMV
         */
        void (*set_command)(imc_test_state_t *this, char *command);
 
        /**
+        * get the value size of a dummy attribute to send to IMV
+        *
+        * @return                              size of the dummy attribute value to send to IMV
+        */
+       int (*get_dummy_size)(imc_test_state_t *this);
+
+       /**
         * Test and reset the first handshake flag
         *
         * @return                              TRUE if first handshake
@@ -65,27 +74,17 @@ struct imc_test_state_t {
         */
        bool (*do_handshake_retry)(imc_test_state_t *this);
 
-       /**
-        * Add and additional IMC ID
-        *
-        * @param id                    Additional IMC ID
-        */
-       void (*add_id)(imc_test_state_t *this, TNC_IMCID id);
-
-       /**
-        * Create an enumerator for additional IMC IDs
-        */
-       enumerator_t* (*create_id_enumerator)(imc_test_state_t *this);
 };
 
 /**
  * Create an imc_test_state_t instance
  *
- * @param id           connection ID
- * @param command      command to send to IMV
- * @param retry                TRUE if a handshake retry should be done
+ * @param id                   connection ID
+ * @param command              command to send to IMV
+ * @param dummy_size   size of the dummy attribute to send (only if > 0)
+ * @param retry                        TRUE if a handshake retry should be done
  */
 imc_state_t* imc_test_state_create(TNC_ConnectionID id, char* command,
-                                                                  bool retry);
+                                                                  int dummy_size, bool retry);
 
 #endif /** IMC_TEST_STATE_H_ @}*/