summaryrefslogtreecommitdiff
path: root/tools/wireshark_gen.py
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2013-12-04 09:53:21 +0000
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2013-12-04 09:53:21 +0000
commit6b10f16ca8818e73b7a90079c8383ee9d3b92bcc (patch)
tree5759922ab28e41bdabfed7cde29f8051ba530730 /tools/wireshark_gen.py
parent470a022c6dc1331083e12eaf8837ffe2bbd813c9 (diff)
downloadwireshark-6b10f16ca8818e73b7a90079c8383ee9d3b92bcc.tar.gz
From Anders request Add prototype for corba/idl dissector
svn path=/trunk/; revision=53778
Diffstat (limited to 'tools/wireshark_gen.py')
-rwxr-xr-xtools/wireshark_gen.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/wireshark_gen.py b/tools/wireshark_gen.py
index ef89efa996..611194ffc1 100755
--- a/tools/wireshark_gen.py
+++ b/tools/wireshark_gen.py
@@ -195,6 +195,7 @@ class wireshark_gen_C:
self.genEthCopyright() # Wireshark Copyright comments.
self.genGPL() # GPL license
self.genIncludes()
+ self.genPrototype()
self.genProtocol()
self.genDeclares(oplist,atlist,enlist,stlist,unlist)
if (len(atlist) > 0):
@@ -482,6 +483,14 @@ class wireshark_gen_C:
#
+ # genPrototype
+ #
+ #
+
+ def genPrototype(self):
+ self.st.out(self.template_prototype, dissector_name=self.dissname)
+
+ #
# genProtocol
#
#
@@ -1970,6 +1979,14 @@ register_giop_user(dissect_@dissector_name@, \"@protocol_name@\" ,proto_@dissect
"""
#
+ # Prototype
+ #
+
+ template_prototype = """
+void proto_register_giop_@dissector_name@(void);
+void proto_reg_handoff_giop_@dissector_name@(void);"""
+
+ #
# Initialize the protocol
#