diff options
Diffstat (limited to 'asn1/h450')
-rw-r--r-- | asn1/h450/Makefile.nmake | 7 | ||||
-rw-r--r-- | asn1/h450/h450.cnf | 5 | ||||
-rw-r--r-- | asn1/h450/packet-h450-template.c | 12 |
3 files changed, 19 insertions, 5 deletions
diff --git a/asn1/h450/Makefile.nmake b/asn1/h450/Makefile.nmake index 0e49c7e460..7a5709b5e0 100644 --- a/asn1/h450/Makefile.nmake +++ b/asn1/h450/Makefile.nmake @@ -1,6 +1,6 @@ ## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake # -# $Id: Makefile.nmake 23131 2007-10-10 10:25:09Z kukosa $ +# $Id$ # # # Wireshark - Network traffic analyzer @@ -27,3 +27,8 @@ include ../Makefile.preinc.nmake include Makefile.common include ../Makefile.inc.nmake +checkapi: + $(PERL) ../../tools/checkAPIs.pl \ + $(PROTOCOL_NAME).cnf \ + packet-$(PROTOCOL_NAME)-template.c + diff --git a/asn1/h450/h450.cnf b/asn1/h450/h450.cnf index b89dafa008..a28ee36767 100644 --- a/asn1/h450/h450.cnf +++ b/asn1/h450/h450.cnf @@ -40,7 +40,10 @@ OPERATION.&ResultType ERROR.&ParameterType #.FN_HDR H4501SupplementaryService - proto_tree_add_item_hidden(tree, proto_h450, tvb, offset, -1, FALSE); + proto_item *hidden_item; + + hidden_item = proto_tree_add_item(tree, proto_h450, tvb, offset, -1, FALSE); + PROTO_ITEM_SET_HIDDEN(hidden_item); #.END #.FN_HDR ServiceApdus/rosApdus/_item diff --git a/asn1/h450/packet-h450-template.c b/asn1/h450/packet-h450-template.c index c6d2ca76b2..2c8420dd95 100644 --- a/asn1/h450/packet-h450-template.c +++ b/asn1/h450/packet-h450-template.c @@ -120,6 +120,7 @@ static const h450_err_t *get_err(gint32 errcode) { /*--- dissect_h450_arg ------------------------------------------------------*/ static int dissect_h450_arg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { + proto_item *hidden_item; int offset; rose_ctx_t *rctx; gint32 opcode; @@ -138,7 +139,8 @@ dissect_h450_arg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { if (!op_ptr) return offset; - proto_tree_add_uint_hidden(tree, hf_h450_operation, tvb, 0, 0, opcode); + hidden_item = proto_tree_add_uint(tree, hf_h450_operation, tvb, 0, 0, opcode); + PROTO_ITEM_SET_HIDDEN(hidden_item); p = match_strval(opcode, VALS(h450_str_operation)); if (p) { proto_item_append_text(rctx->d.code_item, " - %s", p); @@ -160,6 +162,7 @@ dissect_h450_arg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { /*--- dissect_h450_res ------------------------------------------------------*/ static int dissect_h450_res(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { + proto_item *hidden_item; int offset; rose_ctx_t *rctx; gint32 opcode; @@ -178,7 +181,8 @@ dissect_h450_res(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { if (!op_ptr) return offset; - proto_tree_add_uint_hidden(tree, hf_h450_operation, tvb, 0, 0, opcode); + hidden_item = proto_tree_add_uint(tree, hf_h450_operation, tvb, 0, 0, opcode); + PROTO_ITEM_SET_HIDDEN(hidden_item); p = match_strval(opcode, VALS(h450_str_operation)); if (p) { proto_item_append_text(rctx->d.code_item, " - %s", p); @@ -200,6 +204,7 @@ dissect_h450_res(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { /*--- dissect_h450_err ------------------------------------------------------*/ static int dissect_h450_err(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { + proto_item *hidden_item; int offset; rose_ctx_t *rctx; gint32 errcode; @@ -218,7 +223,8 @@ dissect_h450_err(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { if (!err_ptr) return offset; - proto_tree_add_uint_hidden(tree, hf_h450_error, tvb, 0, 0, errcode); + hidden_item = proto_tree_add_uint(tree, hf_h450_error, tvb, 0, 0, errcode); + PROTO_ITEM_SET_HIDDEN(hidden_item); p = match_strval(errcode, VALS(h450_str_error)); if (p) { proto_item_append_text(rctx->d.code_item, " - %s", p); |