diff options
author | oabad <oabad@f5534014-38df-0310-8fa8-9805f1628bb7> | 2000-01-04 20:37:18 +0000 |
---|---|---|
committer | oabad <oabad@f5534014-38df-0310-8fa8-9805f1628bb7> | 2000-01-04 20:37:18 +0000 |
commit | 461f717cfd527ab94b3d7ec60d47852fb9130605 (patch) | |
tree | 62b7a721dea7dcbbc2abde7f5943ee72c89ef354 /plugins.h | |
parent | d041f8587480c3372a4f156d83ff1d3cd907b862 (diff) |
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
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1417 f5534014-38df-0310-8fa8-9805f1628bb7
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__ */ |