aboutsummaryrefslogtreecommitdiffstats
path: root/tools/wireshark_gen.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/wireshark_gen.py')
-rwxr-xr-xtools/wireshark_gen.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/wireshark_gen.py b/tools/wireshark_gen.py
index 84b5d55f73..e3368f8c91 100755
--- a/tools/wireshark_gen.py
+++ b/tools/wireshark_gen.py
@@ -312,6 +312,7 @@ class wireshark_gen_C:
if (rt.kind() == idltype.tk_alias): # a typdef return val possibly ?
#self.get_CDR_alias(rt, rt.name() )
self.st.out(self.template_hf, name=sname + "_return")
+ self.st.out(self.template_hf, name=sname + "_return_loop")
else:
self.st.out(self.template_hf, name=sname + "_return")
@@ -400,6 +401,9 @@ class wireshark_gen_C:
for uc in un.cases(): # for all UnionCase objects in this union
for cl in uc.labels(): # for all Caselabel objects in this UnionCase
self.st.out(self.template_hf, name=sname + "_" + uc.declarator().identifier())
+ if (uc.caseType().unalias().kind() == idltype.tk_sequence):
+ if (self.isSeqNativeType(uc.caseType().unalias().seqType())):
+ self.st.out(self.template_hf, name=sname + "_" + uc.declarator().identifier() + "_loop")
#
@@ -1077,6 +1081,16 @@ class wireshark_gen_C:
return 1
elif pt == idltype.tk_boolean:
return 1
+ elif pt == idltype.tk_octet:
+ return 1
+ elif pt == idltype.tk_enum:
+ return 1
+ elif pt == idltype.tk_string:
+ return 1
+ elif pt == idltype.tk_wstring:
+ return 1
+ elif pt == idltype.tk_wchar:
+ return 1
elif pt == idltype.tk_char:
return 1
else: