Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1 | #ifndef _ASN1_COMPILED_OUTPUT_H_ |
| 2 | #define _ASN1_COMPILED_OUTPUT_H_ |
| 3 | |
| 4 | /* |
| 5 | * An elementary chunk of target language text. |
| 6 | */ |
| 7 | typedef struct out_chunk { |
| 8 | char *buf; |
| 9 | int len; |
| 10 | |
| 11 | TQ_ENTRY(struct out_chunk) next; |
| 12 | } out_chunk_t; |
| 13 | |
| 14 | typedef 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 | |
| 26 | static char *_compiler_stream2str[] __attribute__ ((unused)) |
| 27 | = { "DEPS", "TYPE-DECLS", "FUNC-DECLS", "STAT-DEFS", "CODE" }; |
| 28 | |
| 29 | int asn1c_compiled_output(arg_t *arg, const char *fmt, ...); |
| 30 | |
| 31 | #endif /* _ASN1_COMPILED_OUTPUT_H_ */ |