]> git.stg.codes - stg.git/blobdiff - libs/smux/include/stg/constr_TYPE.h
Update SMUX library.
[stg.git] / libs / smux / include / stg / constr_TYPE.h
index 95507c8097b840457eafb95e1bae4abcff6a3e22..a9cd86dc3d6543657242021a9518b8e0ed472872 100644 (file)
@@ -73,7 +73,7 @@ typedef int (asn_struct_print_f)(
  * Do not use it in your application.
  */
 typedef ber_tlv_tag_t (asn_outmost_tag_f)(
  * Do not use it in your application.
  */
 typedef ber_tlv_tag_t (asn_outmost_tag_f)(
-               struct asn_TYPE_descriptor_s *type_descriptor,
+               const struct asn_TYPE_descriptor_s *type_descriptor,
                const void *struct_ptr, int tag_mode, ber_tlv_tag_t tag);
 /* The instance of the above function type; used internally. */
 asn_outmost_tag_f asn_TYPE_outmost_tag;
                const void *struct_ptr, int tag_mode, ber_tlv_tag_t tag);
 /* The instance of the above function type; used internally. */
 asn_outmost_tag_f asn_TYPE_outmost_tag;
@@ -83,8 +83,8 @@ asn_outmost_tag_f asn_TYPE_outmost_tag;
  * The definitive description of the destination language's structure.
  */
 typedef struct asn_TYPE_descriptor_s {
  * The definitive description of the destination language's structure.
  */
 typedef struct asn_TYPE_descriptor_s {
-       char *name;     /* A name of the ASN.1 type. "" in some cases. */
-       char *xml_tag;  /* Name used in XML tag */
+       const char *name;       /* A name of the ASN.1 type. "" in some cases. */
+       const char *xml_tag;    /* Name used in XML tag */
 
        /*
         * Generalized functions for dealing with the specific type.
 
        /*
         * Generalized functions for dealing with the specific type.
@@ -108,10 +108,10 @@ typedef struct asn_TYPE_descriptor_s {
         * Tags that are expected to occur.
         */
        asn_outmost_tag_f  *outmost_tag;        /* <optional, internal> */
         * Tags that are expected to occur.
         */
        asn_outmost_tag_f  *outmost_tag;        /* <optional, internal> */
-       ber_tlv_tag_t *tags;    /* Effective tags sequence for this type */
-       int tags_count;         /* Number of tags which are expected */
-       ber_tlv_tag_t *all_tags;/* Every tag for BER/containment */
-       int all_tags_count;     /* Number of tags */
+       const ber_tlv_tag_t *tags;      /* Effective tags sequence for this type */
+       int tags_count;                 /* Number of tags which are expected */
+       const ber_tlv_tag_t *all_tags;  /* Every tag for BER/containment */
+       int all_tags_count;             /* Number of tags */
 
        asn_per_constraints_t *per_constraints; /* PER compiled constraints */
 
 
        asn_per_constraints_t *per_constraints; /* PER compiled constraints */
 
@@ -125,7 +125,7 @@ typedef struct asn_TYPE_descriptor_s {
         * Additional information describing the type, used by appropriate
         * functions above.
         */
         * Additional information describing the type, used by appropriate
         * functions above.
         */
-       void *specifics;
+       const void *specifics;
 } asn_TYPE_descriptor_t;
 
 /*
 } asn_TYPE_descriptor_t;
 
 /*
@@ -147,7 +147,7 @@ typedef struct asn_TYPE_member_s {
        asn_constr_check_f *memb_constraints;   /* Constraints validator */
        asn_per_constraints_t *per_constraints; /* PER compiled constraints */
        int (*default_value)(int setval, void **sptr);  /* DEFAULT <value> */
        asn_constr_check_f *memb_constraints;   /* Constraints validator */
        asn_per_constraints_t *per_constraints; /* PER compiled constraints */
        int (*default_value)(int setval, void **sptr);  /* DEFAULT <value> */
-       char *name;                     /* ASN.1 identifier of the element */
+       const char *name;                       /* ASN.1 identifier of the element */
 } asn_TYPE_member_t;
 
 /*
 } asn_TYPE_member_t;
 
 /*