diff options
author | Tomas Kukosa <tomas.kukosa@siemens.com> | 2006-06-29 15:26:41 +0000 |
---|---|---|
committer | Tomas Kukosa <tomas.kukosa@siemens.com> | 2006-06-29 15:26:41 +0000 |
commit | 9be9eb8e141874b6ac9567f6e4bbfb81a7a57950 (patch) | |
tree | 78b0b3d02b11f9cbabb353f7699d110766a98e48 /epan/dissectors/packet-per.h | |
parent | 8c8a4ce877d51c345b501448dbd68c8a36669c41 (diff) |
use "type function" instead of "field function" in PER CHOICE and SEQUENCE tables
it matches asn2wrs approach and makes generated dissectors source shorter
svn path=/trunk/; revision=18612
Diffstat (limited to 'epan/dissectors/packet-per.h')
-rw-r--r-- | epan/dissectors/packet-per.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/epan/dissectors/packet-per.h b/epan/dissectors/packet-per.h index 3c932cd7c5..ea445e5d86 100644 --- a/epan/dissectors/packet-per.h +++ b/epan/dissectors/packet-per.h @@ -77,16 +77,17 @@ typedef int (*per_type_fn)(tvbuff_t*, int, asn_ctx_t*, proto_tree*, int); typedef struct _per_choice_t { int value; - const char *name_to_remove; + const int *p_id; int extension; - per_callback func; + per_type_fn func; } per_choice_t; typedef struct _per_sequence_t { const char *name; + const int *p_id; int extension; int optional; - per_callback func; + per_type_fn func; } per_sequence_t; extern guint32 dissect_per_length_determinant(tvbuff_t *tvb, guint32 offset, asn_ctx_t *actx, proto_tree *tree, int hf_index, guint32 *length); |