aboutsummaryrefslogtreecommitdiffstats
path: root/plugins.c
AgeCommit message (Collapse)AuthorFilesLines
2000-04-12Move to version 0.8.7.gram1-5/+5
I'm going to go ahead and install the plugins in a "0.8.7" directory, and continue incrementing the micro number until the minor version changes to 9. Then for all of 0.9.x, the plugin directory will be "0.9" until the ABI changes again. This should cause less confusion, even if it means the plugins don't change between 0.8.6 and 0.8.7. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1834 f5534014-38df-0310-8fa8-9805f1628bb7
2000-04-05Plugin API is at version 0.8.5 (reflected in directory name for plugins)gram1-5/+5
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1800 f5534014-38df-0310-8fa8-9805f1628bb7
2000-03-31Add a counter : "enabled_plugins_number", to record how many plugins areoabad1-1/+5
enabled. The counter is incremented in enable_plugin() and decremented in disable_plugin(). In add_packet_to_packet_list(), we check this counter (instead of plugin_list) to see if there is at least one enabled plugin. If this is the case, we must build the protocol tree. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1770 f5534014-38df-0310-8fa8-9805f1628bb7
2000-03-15Give all the Ethereal APIs available to plugins their own functionguy1-24/+32
pointers, and call the APIs by calling through the function pointers - the old technique of using wrappers didn't work, as the underlying function they all called no longer exists. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1724 f5534014-38df-0310-8fa8-9805f1628bb7
2000-02-09Change LT_LIB_EXT to ".so" for non-Win32 platforms.gram1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1614 f5534014-38df-0310-8fa8-9805f1628bb7
2000-02-07Code changes, but not Makefile changes, for enabling plugins for Win32.gram1-7/+51
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1605 f5534014-38df-0310-8fa8-9805f1628bb7
2000-02-03In init_plugins() :oabad1-14/+32
If std_plug_dir AND local_plug_dir don't exist, the code doesn't scan PLUGIN_DIR. Reported by Eric Lassauge. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1600 f5534014-38df-0310-8fa8-9805f1628bb7
2000-01-31In init_plugins(), before scanning PLUGIN_DIR :oabad1-2/+14
do a "stat" on PLUGIN_DIR, /usr/lib/ethereal/plugins/0.8 and /usr/local/lib/ethereal/plugins/0.8 and compare st_dev and st_ino to be sure that PLUGIN_DIR is different from the others (and not a symlink which would cause a "plugin found in multiple directories" warning). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1588 f5534014-38df-0310-8fa8-9805f1628bb7
2000-01-29Remove instances of getenv("HOME") and provide a get_home_dir() functiongram1-9/+10
which provides a default value if "HOME" is not set. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1579 f5534014-38df-0310-8fa8-9805f1628bb7
2000-01-15Merge in the final code to make Ethereal run on Win32, compiledgram1-21/+42
with MSVC 6.0 and 'nmake', the make tool that comes with MSVC. It compiles, links, and runs. It doesn't run correctly. There's a problem when reading files. I'm getting short reads. I'm not linking in zlib or libsnmp because it first needs to be debugged. I changed the plugin code to use gmodule instead of libltdl, but the Unix build still links ethereal against libltdl. I'll fix that tonight; sorry about leaving it in such a sad state, but I wanted to check in this code before I left work on a Friday night. Ethereal still works, but the building is less than optimal. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1479 f5534014-38df-0310-8fa8-9805f1628bb7
2000-01-04Small corrections :oabad1-7/+21
- create ~/.ethereal if it doesn't exist - use PF_DIR instead of .ethereal - remove two memory leaks git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1418 f5534014-38df-0310-8fa8-9805f1628bb7
2000-01-04Implement plugins status save/restore :oabad1-1/+206
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
1999-12-09Put in an RCS ID.oabad1-2/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1267 f5534014-38df-0310-8fa8-9805f1628bb7
1999-12-09plugins support (i.e. Dynamically loadable dissectors)oabad1-0/+204
depends on dlopen() being available on the target platform git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1263 f5534014-38df-0310-8fa8-9805f1628bb7