vlm | eafceff | 2006-03-14 15:23:06 +0000 | [diff] [blame^] | 1 | #ifndef _ASN1FIX_CLASS_WITH_SYNTAX_H_ |
| 2 | #define _ASN1FIX_CLASS_WITH_SYNTAX_H_ |
| 3 | |
| 4 | /* |
| 5 | * This structure describes the "WITH SYNTAX" clause of a CLASS. |
| 6 | */ |
| 7 | typedef struct asn1f_cws_syntax_list_s { |
| 8 | struct asn1f_cws_spec **cwspecs; |
| 9 | int cwcount; /* Number of pieces of CWS information */ |
| 10 | } asn1f_cws_syntax_list_t; |
| 11 | |
| 12 | struct asn1f_cws_spec { |
| 13 | enum { |
| 14 | CWS_LITERAL, |
| 15 | CWS_FIELD, |
| 16 | CWS_OPTIONALGROUP |
| 17 | } type; |
| 18 | union { |
| 19 | char *token; /* For CWSB_LITERAL & CWSB_FIELD */ |
| 20 | asn1f_cws_syntax_list_t *syntax; |
| 21 | } content; |
| 22 | }; |
| 23 | |
| 24 | #endif /* _ASN1FIX_CLASS_WITH_SYNTAX_H_ */ |