aboutsummaryrefslogtreecommitdiffstats
path: root/prefs.h
diff options
context:
space:
mode:
authorLaurent Deniel <laurent.deniel@free.fr>2000-08-15 20:46:17 +0000
committerLaurent Deniel <laurent.deniel@free.fr>2000-08-15 20:46:17 +0000
commit5a326952de614babcc92c18e67b59163cf461c86 (patch)
treeb7340524701171866d557fe002b8aa60a5233d57 /prefs.h
parente784cb0c0fc7141d9fb4117a8e658467caa5de31 (diff)
Implements the "Properties" menu item which displays the preferences window
at the correct notebook page when a particular protocol (which has registered some preferences) is selected in the tree view. - add set_menus_for_selected_tree_row() in menu.[ch] - add prefs_is_registered_protocol() and prefs_get_title_by_name() in prefs.[ch] svn path=/trunk/; revision=2275
Diffstat (limited to 'prefs.h')
-rw-r--r--prefs.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/prefs.h b/prefs.h
index c53410ab82..52a723d6dd 100644
--- a/prefs.h
+++ b/prefs.h
@@ -1,7 +1,7 @@
/* prefs.h
* Definitions for preference handling routines
*
- * $Id: prefs.h,v 1.17 2000/07/09 03:29:28 guy Exp $
+ * $Id: prefs.h,v 1.18 2000/08/15 20:42:10 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -88,6 +88,16 @@ struct preference;
typedef struct preference pref_t;
/*
+ * Returns TRUE if the given protocol has registered preferences
+ */
+gboolean prefs_is_registered_protocol(char *name);
+
+/*
+ * Returns the module title of a registered protocol (or NULL if unknown)
+ */
+char *prefs_get_title_by_name(char *name);
+
+/*
* Register a preference with an unsigned integral value.
*/
void prefs_register_uint_preference(module_t *module, const char *name,