]> git.stg.codes - stg.git/blobdiff - libs/smux/include/stg/OCTET_STRING.h
Move projects back into subfolder.
[stg.git] / libs / smux / include / stg / OCTET_STRING.h
index 5150161a7a1a19e8e7c123776684e66c1cd429cf..013c7b13f96c46952b92492583bdd277b0391f8b 100644 (file)
@@ -63,14 +63,20 @@ OCTET_STRING_t *OCTET_STRING_new_fromBuf(asn_TYPE_descriptor_t *td,
  * Internally useful stuff. *
  ****************************/
 
  * Internally useful stuff. *
  ****************************/
 
-typedef struct asn_OCTET_STRING_specifics_s {
+typedef const struct asn_OCTET_STRING_specifics_s {
        /*
         * Target structure description.
         */
        int struct_size;        /* Size of the structure */
        int ctx_offset;         /* Offset of the asn_struct_ctx_t member */
 
        /*
         * Target structure description.
         */
        int struct_size;        /* Size of the structure */
        int ctx_offset;         /* Offset of the asn_struct_ctx_t member */
 
-       int subvariant;         /* {0,1,2} for O-S, BIT STRING or ANY */
+       enum asn_OS_Subvariant {
+               ASN_OSUBV_ANY,  /* The open type (ANY) */
+               ASN_OSUBV_BIT,  /* BIT STRING */
+               ASN_OSUBV_STR,  /* String types, not {BMP,Universal}String  */
+               ASN_OSUBV_U16,  /* 16-bit character (BMPString) */
+               ASN_OSUBV_U32   /* 32-bit character (UniversalString) */
+       } subvariant;
 } asn_OCTET_STRING_specifics_t;
 
 #ifdef __cplusplus
 } asn_OCTET_STRING_specifics_t;
 
 #ifdef __cplusplus