/* Context for parsing across buffer boundaries */
asn_struct_ctx_t_asn_ctx;
} MonitorData_t;
MonitorData_t mt;
how to access each MonitorDataItem in mt? use array?
I tried mt.list[0] but gcc compiler complained : "subscripted value is neither array nor pointer nor vector", I read the asn_SET_OF.h, asn_anonymous_set_ *?? ...but I can't make it clear, can someone help me?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
asn definition is :
MonitorData ::= SEQUENCE OF MonitorDataItem
compile it and get following c struct
typedef struct MonitorData {
A_SEQUENCE_OF(struct MonitorDataItem) list;
} MonitorData_t;
MonitorData_t mt;
how to access each MonitorDataItem in mt? use array?
I tried mt.list[0] but gcc compiler complained : "subscripted value is neither array nor pointer nor vector", I read the asn_SET_OF.h, asn_anonymous_set_ *?? ...but I can't make it clear, can someone help me?
forgive my silly, i know now!fdfjk
#define A_SET_OF(type) \ struct { \ type array; \ int count; / Meaningful size / \ int size; / Allocated size / \ void (free)(type ); \ }