blob: 2267d5dbe3a364488525b0d0ad7ef56867402924 [file] [log] [blame]
Lev Walkinf15320b2004-06-03 03:38:44 +00001#ifndef _ASN1_COMPILED_OUTPUT_H_
2#define _ASN1_COMPILED_OUTPUT_H_
3
4/*
5 * An elementary chunk of target language text.
6 */
7typedef struct out_chunk {
8 char *buf;
9 int len;
10
11 TQ_ENTRY(struct out_chunk) next;
12} out_chunk_t;
13
14typedef struct compiler_streams {
15 enum {
16 OT_DEPS, /* Dependencies */
17 OT_TYPE_DECLS, /* Type declarations */
18 OT_FUNC_DECLS, /* Function declarations */
19 OT_STAT_DEFS, /* Static definitions */
20 OT_CODE, /* Some code */
21 OT_MAX
22 } target;
23 TQ_HEAD(out_chunk_t) targets[OT_MAX];
24} compiler_streams_t;
25
26static char *_compiler_stream2str[] __attribute__ ((unused))
27 = { "DEPS", "TYPE-DECLS", "FUNC-DECLS", "STAT-DEFS", "CODE" };
28
29int asn1c_compiled_output(arg_t *arg, const char *fmt, ...);
30
31#endif /* _ASN1_COMPILED_OUTPUT_H_ */