blob: 27ef2c690195ff00b97faa0653cdef28f8dab271 [file] [log] [blame]
Lev Walkinacd9f8b2004-08-19 13:29:03 +00001#ifndef _ASN1C_FDEPS_H_
2#define _ASN1C_FDEPS_H_
3
4typedef struct asn1c_fdeps_s {
5 char *filename; /* Or 0, if root. */
6
Lev Walkinf218e782006-09-12 06:21:18 +00007 enum fdep_usage {
8 FDEP_IGNORE = -1, /* Ignore contents of the section */
9 FDEP_NOTUSED = 0,
10 FDEP_REFERRED = 1, /* Dynamic list of dependencies */
11 FDEP_CONVERTER = 2, /* Name of the int main() file */
12 FDEP_COMMON_FILES = 3, /* Section for mandatory dependencies */
13 FDEP_CODEC_PER = 4, /* Use contents only if -gen-PER */
14 } usage; /* Some file refers to it */
Lev Walkinacd9f8b2004-08-19 13:29:03 +000015
16 struct asn1c_fdeps_s **elements;
17 int el_size;
18 int el_count;
19} asn1c_fdeps_t;
20
21asn1c_fdeps_t *asn1c_read_file_dependencies(arg_t *arg, const char *datadir);
22
23/* Data may be a filename or an "#include <>" string. */
24int asn1c_activate_dependency(asn1c_fdeps_t *deps, asn1c_fdeps_t *cur,
25 const char *data);
26
27asn1c_fdeps_t *asn1c_deps_makelist(asn1c_fdeps_t *deps);
28
29#endif /* _ASN1C_FDEPS_H_ */