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