Guy Harris wrote:
On Wed, Jun 30, 2004 at 01:49:25PM +0200, Tomas Kukosa wrote:
It allows e.g. plugin to check if it is runnig with the same version
as it was compiled with.
Should that check be done by the plugin, or by the code that loads
plugins?
My intent was only to export libethereal version and nothing more.
The plugin "can" check version if it needs it.
The other purpose can be for applications using libethereal.dll (e.g. I expect Packetyzer
will use it in the next version instead of its own ethereal.dll), they can check the right
version too.
I.e., should one of the symbols that a plugin must have be a symbol for
a string that's the version of libethereal with which the plugin was
built, and should "plugins_scan_dir()" compare that symbol with the
current version of libethereal and refuse to load the plugin if they're
unequal?
Note that this could produce "false negatives" if the ABI for the
routines exported to plugins hasn't changed, if the version number is
the Ethereal version number, so perhaps there should be a libethereal
version number that's changed only if the ABI changes. The problem with
that, however, is that somebody has to know that the ABI changed and
that they have to change the libethereal version if that happens....
_______________________________________________
Ethereal-dev mailing list
Ethereal-dev@xxxxxxxxxxxx
http://www.ethereal.com/mailman/listinfo/ethereal-dev
--
_________________________________________________
ANF DATA ANF DATA spol. s r. o.
a SIEMENS Company M-palác, Heršpická 5
639 00 Brno
Czech Republic
Tomáš Kukosa Tel.: +420 - 5 4310 6822
PSE ECT AES 6 Fax: +420 - 5 4324 8780
Room: 8.24 mailto:tomas.kukosa@xxxxxxxxxxx
_________________________________________________