blob: 8f4fade33d7370932dde55f35245a971f54dd809 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
/*
* Imports and exports structure.
*/
#ifndef ASN1_PARSE_XPORTS_H
#define ASN1_PARSE_XPORTS_H
typedef struct asn1p_xports_s {
/*
* Type of the xports structure.
*/
enum asn1p_xports {
XPT_IMPORTS,
XPT_EXPORTS,
} xports_type;
/*
* Module name and optional OID, occur after FROM.
*/
char *from; /* Name of the module */
asn1p_oid_t *from_oid; /* Optional OID of the module */
/*
* Number of entities to import.
*/
TQ_HEAD(struct asn1p_expr_s) members;
/*
* Pointer to the next xports structure in whatever list.
*/
TQ_ENTRY(struct asn1p_xports_s) xp_next;
} asn1p_xports_t;
/*
* Constructor and destructor.
*/
asn1p_xports_t *asn1p_xports_new(void);
void asn1p_xports_free(asn1p_xports_t *);
#endif /* ASN1_PARSE_XPORTS_H */
|