Skip to content

Commit

Permalink
Update from Frank Singleton:
Browse files Browse the repository at this point in the history
	Improve Template and Description for Attribute delegation code

	_get_xxx_at() should only be called for Reply with NO_EXCEPTION
	_set_xxx_at() should only be called for Request

svn path=/trunk/; revision=3813
  • Loading branch information
guyharris committed Aug 3, 2001
1 parent 131228b commit 4940c97
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ethereal_gen.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# -*- python -*-
#
# $Id: ethereal_gen.py,v 1.9 2001/07/27 18:35:22 guy Exp $
#
# $Id: ethereal_gen.py,v 1.10 2001/08/03 20:44:58 guy Exp $
#
# ethereal_gen.py (part of idl2eth)
#
Expand Down Expand Up @@ -2158,6 +2157,10 @@ def genWARNING(self,message):
#
# template for Attribute delegation code
#
# Note: _get_xxx() should only be called for Reply with NO_EXCEPTION
# Note: _set_xxx() should only be called for Request
#
#

template_at_delegate_code_get = """\
if (!strcmp(operation, get_@sname@_at ) && (header->message_type == Reply) && (header->rep_status == NO_EXCEPTION) ) {
Expand All @@ -2167,7 +2170,7 @@ def genWARNING(self,message):
"""

template_at_delegate_code_set = """\
if (!strcmp(operation, set_@sname@_at )) {
if (!strcmp(operation, set_@sname@_at ) && (header->message_type == Request) ) {
decode_set_@sname@_at(tvb, pinfo, tree, offset, header, operation);
return TRUE;
}
Expand Down

0 comments on commit 4940c97

Please sign in to comment.