diff options
Diffstat (limited to 'Source/charon/encodings.h')
-rw-r--r-- | Source/charon/encodings.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Source/charon/encodings.h b/Source/charon/encodings.h index bc0213519..9b42e4b34 100644 --- a/Source/charon/encodings.h +++ b/Source/charon/encodings.h @@ -275,4 +275,36 @@ enum payload_type_e{ HEADER = 140 }; +/** + * Information of a specific payload are stored in this struct + * + * The following informations are needed for each payload + * - payload type + * - length of its associated data struct in bytes + * - encoding rules array + * - encoding rules count + */ +typedef struct payload_info_s payload_info_t; + +struct payload_info_s{ + /** + * Type of payload + */ + payload_type_t payload_type; + /** + * Length of associated data struct in bytes + */ + size_t data_struct_length; + + /** + * Pointer to the encoding rules array + */ + encoding_rule_t *ecoding_rules; + + /** + * Number of encoding rules for the specific payload_type + */ + size_t encoding_rules_count; +}; + #endif /*ENCODINGS_H_*/ |