diff options
Diffstat (limited to 'tools/wireshark_gen.py')
-rwxr-xr-x | tools/wireshark_gen.py | 17 |
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 # |