diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-10-14 23:45:09 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-10-14 23:45:09 +0000 |
commit | abd16b297f4750ea7f74137e87582c64153440f4 (patch) | |
tree | 446f0817e3a3c2648f647528b8cc7ac6216be892 /doc/README.developer | |
parent | af061ccd603340e9e401acd423f623018eed373b (diff) | |
download | wireshark-abd16b297f4750ea7f74137e87582c64153440f4.tar.gz |
From Jeff Morriss: PREF_RANGE preference type, for ranges of integers.
svn path=/trunk/; revision=12300
Diffstat (limited to 'doc/README.developer')
-rw-r--r-- | doc/README.developer | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/README.developer b/doc/README.developer index 300be484f4..ec82fc2022 100644 --- a/doc/README.developer +++ b/doc/README.developer @@ -2442,6 +2442,13 @@ Then you can register the fields that can be configured by the user with these r void prefs_register_string_preference(module_t *module, const char *name, const char *title, const char *description, char **var) + /* Register a preference with a range of unsigned integers (e.g., + * "1-20,30-40"). + */ + void prefs_register_range_preference(module_t *module, const char *name, + const char *title, const char *description, range_t *var, + guint32 max_value) + Where: module - Returned by the prefs_register_protocol routine name - This is appended to the name of the protocol, with a "." between them, to construct a name that identifies @@ -2472,6 +2479,7 @@ Where: module - Returned by the prefs_register_protocol routine preferences dialog as a set of radio buttons, FALSE if it is to be displayed as an option menu + max_value - The maximum allowed value for a range (0 is the minimum). An example from packet-beep.c - |