CLASS WITH SYNTAX
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@1069 59561ff5-6e30-0410-9f3c-9617f08c8826
diff --git a/libasn1fix/asn1fix_cws.h b/libasn1fix/asn1fix_cws.h
new file mode 100644
index 0000000..a134e53
--- /dev/null
+++ b/libasn1fix/asn1fix_cws.h
@@ -0,0 +1,24 @@
+#ifndef _ASN1FIX_CLASS_WITH_SYNTAX_H_
+#define _ASN1FIX_CLASS_WITH_SYNTAX_H_
+
+/*
+ * This structure describes the "WITH SYNTAX" clause of a CLASS.
+ */
+typedef struct asn1f_cws_syntax_list_s {
+ struct asn1f_cws_spec **cwspecs;
+ int cwcount; /* Number of pieces of CWS information */
+} asn1f_cws_syntax_list_t;
+
+struct asn1f_cws_spec {
+ enum {
+ CWS_LITERAL,
+ CWS_FIELD,
+ CWS_OPTIONALGROUP
+ } type;
+ union {
+ char *token; /* For CWSB_LITERAL & CWSB_FIELD */
+ asn1f_cws_syntax_list_t *syntax;
+ } content;
+};
+
+#endif /* _ASN1FIX_CLASS_WITH_SYNTAX_H_ */