NativeEnumerated.c vars NULL init and check
[com/asn1c.git] / libasn1fix / asn1fix_export.h
1 /*
2  * This header exports fixer procedures that are common enough to be used
3  * in other modules.
4  */
5 #ifndef ASN1FIX_EXPORT_H
6 #define ASN1FIX_EXPORT_H
7
8 #include "asn1fix_tags.h"
9
10 struct asn1_namespace_s;   /* Forward declaration. */
11
12 void asn1f_use_standard_namespaces(asn1p_t *asn);
13
14 /*
15  * Lookup the module by its oid. oid is mandatory.
16  */
17 asn1p_module_t *asn1f_lookup_module_ex(asn1p_t *asn, const char *module_name,
18                                        const asn1p_oid_t *oid);
19
20 /*
21  * Create a human-readable representation of a reference and value.
22  */
23 char const *asn1f_printable_reference(const asn1p_ref_t *ref);
24 char const *asn1f_printable_value(asn1p_value_t *value);
25
26 /*
27  *  Exportable version of an asn1f_lookup_symbol().
28  */
29 asn1p_expr_t *asn1f_lookup_symbol_ex(
30                 asn1p_t *asn,
31                 struct asn1_namespace_s *ns,
32                 asn1p_expr_t *expr,
33                 const asn1p_ref_t *ref);
34
35 /*
36  *  Exportable version of an asn1f_class_access().
37  */
38 asn1p_expr_t *asn1f_class_access_ex(asn1p_t *asn, asn1p_module_t *mod,
39                                     struct asn1_namespace_s *ns,
40                                     asn1p_expr_t *expr,
41                                     asn1p_expr_t *rhs_rspecs,
42                                     const asn1p_ref_t *);
43
44 /*
45  * Exportable version of asn1f_find_terminal_type().
46  */
47 asn1p_expr_t *asn1f_find_terminal_type_ex(asn1p_t *asn,
48                                           struct asn1_namespace_s *ns,
49                                           asn1p_expr_t *tc);
50
51 /*
52  * Exportable version of asn1f_fix_dereference_values();
53  */
54 int asn1f_fix_dereference_values_ex(asn1p_t *asn, asn1p_module_t *mod,
55         asn1p_expr_t *expr);
56
57 /*
58  * Exportable version of asn1f_find_ancestor_type_with_PER_constraint().
59  */
60 asn1p_expr_t *asn1f_find_ancestor_type_with_PER_constraint_ex(asn1p_t *asn,
61         asn1p_expr_t *expr);
62
63 #endif  /* ASN1FIX_EXPORT_H */