Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1 | /* |
Lev Walkin | a00d6b3 | 2006-03-21 03:40:38 +0000 | [diff] [blame] | 2 | * Structures and prototypes related to parameterization |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3 | */ |
Lev Walkin | a00d6b3 | 2006-03-21 03:40:38 +0000 | [diff] [blame] | 4 | #ifndef ASN1_PARSER_PARAMETERIZATION_H |
| 5 | #define ASN1_PARSER_PARAMETERIZATION_H |
| 6 | |
| 7 | struct asn1p_expr_s; /* Forward declaration */ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 8 | |
| 9 | typedef struct asn1p_paramlist_s { |
| 10 | struct asn1p_param_s { |
Lev Walkin | a00d6b3 | 2006-03-21 03:40:38 +0000 | [diff] [blame] | 11 | /* Translated from */ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12 | asn1p_ref_t *governor; |
| 13 | char *argument; |
| 14 | } *params; |
| 15 | int params_count; |
| 16 | int params_size; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 17 | int _lineno; |
| 18 | } asn1p_paramlist_t; |
| 19 | |
| 20 | /* |
| 21 | * Constructor and destructor. |
| 22 | */ |
| 23 | asn1p_paramlist_t *asn1p_paramlist_new(int _lineno); |
| 24 | void asn1p_paramlist_free(asn1p_paramlist_t *); |
| 25 | |
| 26 | asn1p_paramlist_t *asn1p_paramlist_clone(asn1p_paramlist_t *ref); |
| 27 | |
| 28 | int asn1p_paramlist_add_param(asn1p_paramlist_t *, |
| 29 | asn1p_ref_t *opt_gov, char *arg); |
| 30 | |
| 31 | |
Lev Walkin | a00d6b3 | 2006-03-21 03:40:38 +0000 | [diff] [blame] | 32 | #endif /* ASN1_PARSER_PARAMETERIZATION_H */ |