Wildcard matching is tricky - you have to try wildcarding both the
[obnox/wireshark/wip.git] / menu.h
diff --git a/menu.h b/menu.h
index 70159dad5b943a6ded6c10c7623e9bfb1ad24a6d..b55454a7d67bb4b861ecd46098b76f15b4c38539 100644 (file)
--- a/menu.h
+++ b/menu.h
@@ -1,7 +1,8 @@
 /* menu.h
- * Menu definitions
+ * Definitions for menu routines with toolkit-independent APIs but
+ * toolkit-dependent implementations.
  *
- * $Id: menu.h,v 1.3 1998/10/12 01:40:51 gerald Exp $
+ * $Id: menu.h,v 1.8 2000/08/15 20:42:09 deniel Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@zing.org>
 extern "C" {
 #endif /* __cplusplus */
 
-void menus_init (void);
-void get_main_menu (GtkWidget **, GtkAcceleratorTable **);
-void set_menu_sensitivity (gchar *, gint);
-void set_menu_object_data (gchar *path, gchar *key, gpointer data);
-void menus_create (GtkMenuEntry *, int);
+/* Routines to enable or disable sets of menu items. */
 
+/* Enable or disable menu items based on whether you have a capture file
+   you've finished reading. */
+void set_menus_for_capture_file(gboolean);
+
+/* Enable or disable menu items based on whether you have an unsaved
+   capture file you've finished reading. */
+void set_menus_for_unsaved_capture_file(gboolean);
+
+/* Enable or disable menu items based on whether there's a capture in
+   progress. */
+void set_menus_for_capture_in_progress(gboolean);
+
+/* Enable or disable menu items based on whether you have some captured
+   packets. */
+void set_menus_for_captured_packets(gboolean);
+
+/* Enable or disable menu items based on whether a packet is selected. */
+void set_menus_for_selected_packet(gboolean);
+
+/* Enable or disable menu items based on whether a tree row is selected. */
+void set_menus_for_selected_tree_row(gboolean);
 
 #ifdef __cplusplus
 }
 #endif /* __cplusplus */
 
 #endif /* __MENU_H__ */
+