diff options
-rw-r--r-- | doc/README.developer | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/doc/README.developer b/doc/README.developer index 6a713b2d6f..c8dc57bdde 100644 --- a/doc/README.developer +++ b/doc/README.developer @@ -1,4 +1,4 @@ -$Id: README.developer,v 1.68 2003/01/26 19:35:27 deniel Exp $ +$Id: README.developer,v 1.69 2003/01/29 00:39:02 guy Exp $ This file is a HOWTO for Ethereal developers. It describes how to start coding a Ethereal protocol dissector and the use some of the important functions and @@ -158,7 +158,7 @@ code inside is needed only if you are using the "snprintf()" function. -The "$Id: README.developer,v 1.68 2003/01/26 19:35:27 deniel Exp $" +The "$Id: README.developer,v 1.69 2003/01/29 00:39:02 guy Exp $" in the comment will be updated by CVS when the file is checked in; it will allow the RCS "ident" command to report which version of the file is currently checked out. @@ -168,7 +168,7 @@ version of the file is currently checked out. * Routines for PROTONAME dissection * Copyright 2000, YOUR_NAME <YOUR_EMAIL_ADDRESS> * - * $Id: README.developer,v 1.68 2003/01/26 19:35:27 deniel Exp $ + * $Id: README.developer,v 1.69 2003/01/29 00:39:02 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -2038,7 +2038,12 @@ Then you can register the fields that can be configured by the user with these r const char *title, const char *description, char **var) Where: module - Returned by the prefs_register_protocol routine - name - Appended to the module name to identify the field in the preference file + name - This is appended to the name of the protocol, with a + "." between them, to construct a name that + identifies the field in the preference file; + the name itself should not include the protocol + name, as the name in the preference file will + already have it title - Field title in the preferences dialog description - Comments added to the preference file above the preference value @@ -2070,6 +2075,9 @@ An example from packet-beep.c - "terminator, and not just CR or LF", &global_beep_strict_term); +This will create preferences "beep.tcp.port" and +"beep.strict_header_terminator", the first of which is an unsigned +integer and the second of which is a Boolean. 3. Plugins |