diff options
author | Olivier Abad <oabad@noos.fr> | 2000-01-04 20:37:18 +0000 |
---|---|---|
committer | Olivier Abad <oabad@noos.fr> | 2000-01-04 20:37:18 +0000 |
commit | a04e67e0ab8b67df2dc9bae04ace2e7f6d35c966 (patch) | |
tree | 62b7a721dea7dcbbc2abde7f5943ee72c89ef354 /plugins.h | |
parent | ef7014e92b75b284bf444e9f74af828d69f03d35 (diff) | |
download | wireshark-a04e67e0ab8b67df2dc9bae04ace2e7f6d35c966.tar.gz wireshark-a04e67e0ab8b67df2dc9bae04ace2e7f6d35c966.tar.bz2 wireshark-a04e67e0ab8b67df2dc9bae04ace2e7f6d35c966.zip |
Implement plugins status save/restore :
Add a "Save status" button to the Plugins window which saves the status
(enabled/disabled) and the filter used by all the plugins in
~/.ethereal/plugins.status
Moved plugins_scan_dir() from gtk/plugins_dlg.c to plugins.c because it is
GUI independent. Read plugins.status in this function and restore the saved
status.
Add a init_plugins() function in plugins.c which calls plugins_scan_dir() in
order to build the plugin_list. It is called by ethereal_proto_init() in
gtk/main.c
svn path=/trunk/; revision=1417
Diffstat (limited to 'plugins.h')
-rw-r--r-- | plugins.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,7 +1,7 @@ /* plugins.h * definitions for plugins structures * - * $Id: plugins.h,v 1.3 1999/12/26 22:37:19 gerald Exp $ + * $Id: plugins.h,v 1.4 2000/01/04 20:37:07 oabad Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -52,5 +52,7 @@ void *disable_plugin(const gchar *, const gchar *); void *find_plugin(const gchar *, const gchar *); gboolean is_enabled(const gchar *, const gchar *); void plugin_replace_filter(const gchar *, const gchar *, const gchar *, dfilter *); +int save_plugin_status(); +void init_plugins(); #endif /* __PLUGINS_H__ */ |