diff options
author | Tomas Kukosa <tomas.kukosa@siemens.com> | 2007-12-28 10:42:44 +0000 |
---|---|---|
committer | Tomas Kukosa <tomas.kukosa@siemens.com> | 2007-12-28 10:42:44 +0000 |
commit | 7529f334379c34ca3b5e906b31879a8f5944a8de (patch) | |
tree | 3bb0fa787a1066c5bc2b5a3afc519403a65b014a /epan/asn1.h | |
parent | cec1f884e98d111ed384cf1ec395e44620ad4964 (diff) |
support for additionally SIZE constrained Typereference
the support is only semiautomated as this feature does not occur very often
use this feature for the TBCD-STRING in the H.225 dissector
svn path=/trunk/; revision=23958
Diffstat (limited to 'epan/asn1.h')
-rw-r--r-- | epan/asn1.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/epan/asn1.h b/epan/asn1.h index 0f792bd482..5d0c9e306c 100644 --- a/epan/asn1.h +++ b/epan/asn1.h @@ -43,6 +43,7 @@ typedef enum { typedef enum { ASN1_PAR_IRR, /* irrelevant parameter */ /* value */ + ASN1_PAR_BOOLEAN, ASN1_PAR_INTEGER, /* type */ ASN1_PAR_TYPE @@ -57,6 +58,7 @@ typedef struct _asn1_par_t { const gchar *name; asn1_par_type ptype; union { + gboolean v_boolean; gint32 v_integer; void *v_type; } value; @@ -179,7 +181,9 @@ extern void asn1_stack_frame_push(asn1_ctx_t *actx, const gchar *name); extern void asn1_stack_frame_pop(asn1_ctx_t *actx, const gchar *name); extern void asn1_stack_frame_check(asn1_ctx_t *actx, const gchar *name, const asn1_par_def_t *par_def); +extern void asn1_param_push_boolean(asn1_ctx_t *actx, gboolean value); extern void asn1_param_push_integer(asn1_ctx_t *actx, gint32 value); +extern gboolean asn1_param_get_boolean(asn1_ctx_t *actx, const gchar *name); extern gint32 asn1_param_get_integer(asn1_ctx_t *actx, const gchar *name); extern void rose_ctx_init(rose_ctx_t *rctx); |