mirror of https://gerrit.osmocom.org/asn1c
32 lines
1.0 KiB
C
32 lines
1.0 KiB
C
#ifndef ASN1C_FDEPS_H
|
|
#define ASN1C_FDEPS_H
|
|
|
|
typedef struct asn1c_fdeps_s {
|
|
char *filename; /* Or 0, if root. */
|
|
|
|
enum fdep_usage {
|
|
FDEP_IGNORE = -1, /* Ignore contents of the section */
|
|
FDEP_NOTUSED = 0,
|
|
FDEP_REFERRED = 1, /* Dynamic list of dependencies */
|
|
FDEP_CONVERTER = 2, /* Name of the int main() file */
|
|
FDEP_COMMON_FILES = 3, /* Section for mandatory dependencies */
|
|
FDEP_CODEC_OER = 4, /* Use contents only if -gen-OER */
|
|
FDEP_CODEC_PER = 8, /* Use contents only if -gen-PER */
|
|
} usage; /* Some file refers to it */
|
|
|
|
struct asn1c_fdeps_s **elements;
|
|
int el_size;
|
|
int el_count;
|
|
} asn1c_fdeps_t;
|
|
|
|
asn1c_fdeps_t *asn1c_read_file_dependencies(arg_t *arg, const char *datadir);
|
|
|
|
/* Data may be a filename or an "#include <>" string. */
|
|
int asn1c_activate_dependency(asn1c_fdeps_t *deps, asn1c_fdeps_t *cur,
|
|
const char *data);
|
|
|
|
asn1c_fdeps_t *asn1c_deps_makelist(asn1c_fdeps_t *deps);
|
|
void asn1c_deps_freelist(asn1c_fdeps_t *deps);
|
|
|
|
#endif /* ASN1C_FDEPS_H */
|