diff options
author | Jan Hutter <jhutter@hsr.ch> | 2005-11-09 08:40:33 +0000 |
---|---|---|
committer | Jan Hutter <jhutter@hsr.ch> | 2005-11-09 08:40:33 +0000 |
commit | 9e4e6e9d516898b3a368a8875605850faea23f95 (patch) | |
tree | 0f76ae02eac131624e88ff814ecdaf595f1148eb /Source/charon/generator.h | |
parent | 5f08382cbeb9da6851c0154fa3272ebae5149736 (diff) | |
download | strongswan-9e4e6e9d516898b3a368a8875605850faea23f95.tar.bz2 strongswan-9e4e6e9d516898b3a368a8875605850faea23f95.tar.xz |
- added function declarations
Diffstat (limited to 'Source/charon/generator.h')
-rw-r--r-- | Source/charon/generator.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/Source/charon/generator.h b/Source/charon/generator.h index daf536bf7..e765eff5f 100644 --- a/Source/charon/generator.h +++ b/Source/charon/generator.h @@ -27,6 +27,11 @@ #include "encodings.h" /** + * Data Buffer for generating has start size of 3000 Bytes + */ +#define GENERATOR_DATA_BUFFER_SIZE 3000 + +/** * @brief A generator_t-object which generates payloads of specific type */ typedef struct generator_s generator_t; @@ -42,7 +47,9 @@ struct generator_s { * @param payload_type payload type to generate using the given data struct * @param[in] data_struct Data struct where the needed data for generating are stored * @param[out] output pointer to a chunk_t where the data are generated to - * @return SUCCESSFUL if succeeded, FAILED otherwise + * @return SUCCESSFUL if succeeded, + * NOT_SUPPORTED if payload_type is not supported + * OUT_OF_RES if out of ressources */ status_t (*generate_payload) (generator_t *this,payload_type_t payload_type,void * data_struct, chunk_t *data); @@ -55,6 +62,12 @@ struct generator_s { status_t (*destroy) (generator_t *this); }; -generator_t * generator_create(); +/** + * Constructor to create a generator + * + * @param payload_infos pointer to the payload_info_t-array containing + * all the payload informations needed to automatic generate a specific payload + */ +generator_t * generator_create(payload_info_t ** payload_infos); #endif /*GENERATOR_H_*/ |