blob: 7234035e524d4dd51b6cd2fc9513fa083f59c790 [file] [log] [blame]
Lev Walkinf15320b2004-06-03 03:38:44 +00001/*
2 * Functions related with processing values.
3 */
4#ifndef _ASN1FIX_VALUE_H_
5#define _ASN1FIX_VALUE_H_
6
7/*
8 * Resolve the value given by reference.
9 * This function also takes a parameter which specifies the desired
10 * value's type.
11 *
12 * RETURN VALUES:
13 * 0: Value resolved successfully.
14 * -1/EPERM: Recursive looping detected.
15 * -1/EEXIST: Reference is not compatible with the desired type.
16 * -1/ESRCH: Cannot find the terminal reference.
17 */
18int asn1f_value_resolve(arg_t *arg, asn1p_expr_t *tc);
19
20/*
21 * Check if a value in value_expr refers to the enumeration or integer element
22 * within the type provided. If yes, it will replace referenced value with
23 * the appropriate inline value.
24 */
25int asn1f_look_value_in_type(arg_t *arg,
26 asn1p_expr_t *type_expr, asn1p_expr_t *value_expr);
27
28#endif /* _ASN1FIX_VALUE_H_ */