Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-bugs: [Wireshark-bugs] [Bug 3947] New: README.developer

Date: Wed, 26 Aug 2009 07:32:02 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3947

           Summary: README.developer
           Product: Wireshark
           Version: SVN
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Low
         Component: Documentation
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: dragonlinux@xxxxxxxxx


Build Information:
in trunk
--
The '}' is at the wrong place.

In 1.2 Skeleton code
--------Cut here-------------
/* packet-PROTOABBREV.c
 *
 */

void proto_register_PROTOABBREV(void) {
...
/* Register a sample preference */
        prefs_register_bool_preference(PROTOABBREV_module, "show_hex",
             "Display numbers in Hex",
             "Enable to display numerical values in hexadecimal.",
             &gPREF_HEX);
}
/* Register a sample port preference   */
        prefs_register_uint_preference(PROTOABBREV_module, "tcp.port",
"PROTOABBREV TCP Port",
             " PROTOABBREV TCP port if other than the default",
             10, &gPORT_PREF);

/* If this dissector uses sub-dissector registration add a registration
routine.
   This exact format is required because a script is used to find these
   routines and create the code that calls these routines.

   If this function is registered as a prefs callback (see
prefs_register_protocol
   above) this function is also called by preferences whenever "Apply" is
pressed;
   In that case, it should accommodate being called more than once.

   This form of the reg_handoff function is used if if you perform
   registration functions which are dependent upon prefs. See below
   for a simpler form  which can be used if there are no
   prefs-dependent registration functions.
*/


-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.