aboutsummaryrefslogtreecommitdiffstats
path: root/skeletons/constr_TYPE.h
diff options
context:
space:
mode:
authorWim Lewis <wiml@omnigroup.com>2014-07-28 12:16:01 -0700
committerWim Lewis <wiml@omnigroup.com>2014-07-28 12:16:01 -0700
commitfb6344ef750a4d822ecd613819deba89b181b932 (patch)
treedc164af59c53ac5c8a59cfff6b3daa2df6f81b37 /skeletons/constr_TYPE.h
parent14e6b161463b8d256d4ab4aac5d0d8c63c0819cd (diff)
Declare most internal, constant tables as const, particularly the
"specifics" structures and the tables they point to.
Diffstat (limited to 'skeletons/constr_TYPE.h')
-rw-r--r--skeletons/constr_TYPE.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/skeletons/constr_TYPE.h b/skeletons/constr_TYPE.h
index 88c88033..a9cd86dc 100644
--- a/skeletons/constr_TYPE.h
+++ b/skeletons/constr_TYPE.h
@@ -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 {
- 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.
@@ -108,10 +108,10 @@ typedef struct asn_TYPE_descriptor_s {
* 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 */
@@ -125,7 +125,7 @@ typedef struct asn_TYPE_descriptor_s {
* Additional information describing the type, used by appropriate
* functions above.
*/
- void *specifics;
+ const void *specifics;
} 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> */
- char *name; /* ASN.1 identifier of the element */
+ const char *name; /* ASN.1 identifier of the element */
} asn_TYPE_member_t;
/*