aboutsummaryrefslogtreecommitdiffstats
path: root/epan/plugins.c
AgeCommit message (Collapse)AuthorFilesLines
2005-11-06replace *a lot* of file related calls by their GLib counterparts. This is ↵Ulf Lamping1-33/+15
necessary for the switch to GTK 2.6 (at least on WIN32). to do this, I've added file_util.h to wiretap (would file_compat.h be a better name?), and provide compat_macros like eth_open() instead of open(). While at it, move other file related things there, like #include <io.h>, definition of O_BINARY and alike, so it's all in one place. deleted related things from config.h.win32 As of these massive changes, I'm almost certain that this will break the Unix build. I'll keep an eye on the buildbot so hopefully everything is working again soon. svn path=/trunk/; revision=16403
2005-08-18several times replacing:Ulf Lamping1-1/+1
sprintf -> g_snprintf snprintf -> g_snprintf vsnprintf -> g_vsnprintf strdup -> g_strdup svn path=/trunk/; revision=15412
2005-08-08various code cleanup:Ulf Lamping1-6/+2
-use g_snprintf instead of sprintf and snprintf -use g_strdup_printf where appropriate -remove #include "snprintf.h" (as only g_snprintf should be used) -replace some more alloc/realloc/calloc/free with their glib pendants svn path=/trunk/; revision=15264
2005-03-16Remove support for the old plugin api.Lars Roland1-51/+7
TODO: cleanup files in /trunk/plugins svn path=/trunk/; revision=13782
2005-03-07Call the "new-style init" routine for plugins a "register" routine, asGuy Harris1-44/+73
it serves the same purpose as the register routine in a built-in dissector, and don't require all dissectors to have one, as they might just be taps. Get rid of the stats tree's init routine, as it's just a tap, and as it doesn't do anything. Update the idl2eth Python script to generate plugins with register routines. svn path=/trunk/; revision=13644
2005-03-06"report_err.h" declares "report_failure()", so it doesn't need to beGuy Harris1-1/+0
declared in "epan.h", and, as "epan/plugins.c" now includes "report_err.h", it doesn't need to include "epan.h". svn path=/trunk/; revision=13634
2005-03-06Warning fix:Jörg Mayer1-0/+1
plugins.c:236: warning: implicit declaration of function 'report_failure' svn path=/trunk/; revision=13625
2005-03-06Squelch some compiler warnings.Guy Harris1-1/+4
svn path=/trunk/; revision=13622
2005-03-05Preparations for dropping the old plugin api.Lars Roland1-12/+39
Introduce a new init routine for plugins, which does not take the plugin api table as an argument and allows etheral to distinguish between plugins using the old and the new api. Update README.plugins accordingly Change all g_warnings() in epan/plugins.c to report_failue(). On windows we do not have a log console open while loading the plugins, because a log console cannot be opened before the prefs have been read. Thus g_warnings() does not work for reporting problems with plugins. svn path=/trunk/; revision=13596
2005-02-27The stats tree stuff should ultimately allow us to have plugin taps, soGuy Harris1-60/+104
add infrastructure for them, and display the plugin type (which could be both dissector *and* tap) in the list of plugins. svn path=/trunk/; revision=13543
2005-02-09Move the following files from /trunk to /trunk/epan:Lars Roland1-2/+2
asn1.[ch] follow.[ch] ptvcursor.[ch] reassemble.[ch] xmlstub.[ch] fix #include statements accordingly. svn path=/trunk/; revision=13366
2005-01-12add some of the DCE/RPC functions to the plugin APIUlf Lamping1-0/+1
svn path=/trunk/; revision=13010
2005-01-02Don't cast pointers passed as arguments - pass a pointer to the rightGuy Harris1-4/+8
type of variable and assign the value; that squelches "dereferencing type-punned pointer will break strict-aliasing rules" warnings from some versions of GCC. svn path=/trunk/; revision=12924
2004-12-31As "get_persconffile_path()" doesn't return a "const char *", neitherGuy Harris1-5/+5
does "get_plugins_pers_dir()" - and "get_plugins_global_dir()" doesn't return one either. Both of them return mallocated data, and making them return a "const char *" just causes compiler whining when you try to free them. svn path=/trunk/; revision=12883
2004-09-29Move the tap infrastructure to the epan directory.Guy Harris1-1/+1
svn path=/trunk/; revision=12128
2004-09-28Move the xDLC helper routines into epan.Guy Harris1-1/+1
svn path=/trunk/; revision=12127
2004-09-28Move various checksum routines and headers to epan.Guy Harris1-1/+1
svn path=/trunk/; revision=12117
2004-09-27Move prefs.c and prefs.h into the epan subdirectory.Guy Harris1-1/+1
svn path=/trunk/; revision=12115
2004-09-23Add proto_tree_add_debug_text(), rtcp_add_address(), andGuy Harris1-0/+2
rtp_add_address() to the list of functions exported from libethereal.dll and exported via the plugin function table. svn path=/trunk/; revision=12067
2004-09-11Use _WIN32 rather than WIN32 to determine if we're compiling on Win32;Guy Harris1-1/+1
according to Gisle Vanem, WIN32 isn't a built-in in MSVC, but _WIN32 is. svn path=/trunk/; revision=11972
2004-07-18Move dissectors to epan/dissectors directory.Gilbert Ramirez1-6/+6
Also move ncp222.py, x11-fields, process-x11-fields.pl, make-reg-dotc, and make-reg-dotc.py. Adjust #include lines in files that include packet-*.h files. svn path=/trunk/; revision=11410
2004-07-18Set the svn:eol-style property on all text files to "native", so thatGuy Harris1-1/+1
they have LF at the end of the line on UN*X and CR/LF on Windows; hopefully this means that if a CR/LF version is checked in on Windows, the CRs will be stripped so that they show up only when checked out on Windows, not on UN*X. svn path=/trunk/; revision=11400
2004-06-30Add "crc16_ccitt_tvb()" to the plugin API and the list of functionsGuy Harris1-1/+2
exported from libethereal.dll. svn path=/trunk/; revision=11280
2004-06-19From Dennis Lim: add routines used by dissectors for ONC RPC protocolsGuy Harris1-1/+2
to the plugin API. Add them to the list of routines exported from the libethereal DLL on Windows as well. svn path=/trunk/; revision=11186
2004-05-21Get rid of a no-longer-used variable.Guy Harris1-3/+1
svn path=/trunk/; revision=10938
2004-05-20"datafile_dir" in "init_plugins()" is used regardless of whether we'reGuy Harris1-13/+8
on Windows or UN*X - don't #ifdef it. Clean up the #ifdefs in "get_plugins_global_dir()". Clean up white space. svn path=/trunk/; revision=10931
2004-05-20separate dir functions from the plugin init,Ulf Lamping1-22/+45
put this and some other dirs in the about dialog svn path=/trunk/; revision=10928
2004-03-04From Tomas Kukosa: add packet-ber.c routines to the plugin API.Guy Harris1-1/+2
svn path=/trunk/; revision=10295
2004-02-21Include "report_err.h" to declare "report_open_failure()" andGuy Harris1-1/+2
"report_read_failure()". svn path=/trunk/; revision=10166
2004-01-05Bugfix from Lars Roland: included missing xdlc.hUlf Lamping1-1/+2
svn path=/trunk/; revision=9553
2003-09-24From Tomas Kukosa:Guy Harris1-3/+1
Remove the internal packet-per.c functions "dissect_per_length_determinant()" and "dissect_per_normally_small_nonnegative_whole_number()" from the plugin API, as they shouldn't be used outside the PER dissector. Remove the H.225/H.245 functions "dissect_h225_TransportAddress()" and "dissect_h245_NonStandardParameter()" from the plugin API until we really need them in plugins. Add the string dissector table functions to the plugin API. svn path=/trunk/; revision=8532
2003-08-25Include the header files required by new APIs in the plugin API table.Guy Harris1-1/+4
svn path=/trunk/; revision=8252
2003-08-18From Matthijs Melchior:Guy Harris1-8/+5
move the initialization of the addresses in the plugin interface structure from run-time to link time; don't attempt to rebuild the X* files automatically, just warn that they're out of date and show the command used to rebuild them (not everybody has GCC installed, but it's required in order to rebuild them). Get rid of the checked-in Xepan_plugins.c, as it's no longer generated or used. Fix Makefile.am now that Xepan_plugins.c has been replaced by Xass-list. Give plugin_gen.py an RCS ID. svn path=/trunk/; revision=8186
2003-07-18From Matthijs Melchior: generate all declarations and definitions forGuy Harris1-251/+3
plugin ABI from a single file. svn path=/trunk/; revision=8038
2003-06-12Export "tvb_get_string()" and "tvb_get_stringz()" to plugins.Guy Harris1-1/+4
svn path=/trunk/; revision=7862
2003-06-04Fix up some comments, and move some common GLib 1.2[.x]/2.x code outsideGuy Harris1-15/+7
#ifdefs. svn path=/trunk/; revision=7775
2003-06-03From Lars Roland: Update the plugin API for Glib/GTK+ 2.2 and have NSISGerald Combs1-5/+43
remove the Start menu entries and desktop icon. svn path=/trunk/; revision=7772
2003-05-01From Matthijs Melchior: don't export functions also implemented asGuy Harris1-5/+3
macros, and do export "except_pop()" and "except_setup_try()". svn path=/trunk/; revision=7628
2003-05-01From Lars Roland: set "patable.p_asn1_string_decode" to point toGuy Harris1-2/+2
"asn1_string_decode()", not to "asn1_octet_string_decode()". svn path=/trunk/; revision=7624
2003-04-30The typedefs in plugins/plugin_table.h must have "addr_" in front of theGuy Harris1-2/+1
function name; make it so. Eliminate the duplicate entry for "except_throw" and the duplicate code for it. svn path=/trunk/; revision=7618
2003-04-30From Matthijs Melchior: export the exception mechanism routines toGuy Harris1-1/+17
plugins on platforms on which plugins need to use the table of functions exported to plugins. svn path=/trunk/; revision=7611
2003-04-29Add a "proto_item_set_end()" routine that sets the length of an itemGuy Harris1-2/+3
given a tvbuff/offset pair referring to the byte past the end of the item. Use it in one place in the SMB dissector (there are plenty of other places where it could be used as well). svn path=/trunk/; revision=7603
2003-04-24From Matthijs Melchior: add the ASN.1 routines to the table of routinesGuy Harris1-1/+27
exported to dissectors. svn path=/trunk/; revision=7552
2003-04-08Add "proto_tree_add_none_format()" to the set of functions exported toGuy Harris1-1/+2
plugins. svn path=/trunk/; revision=7423
2003-03-06From Lars Ronald :Ronnie Sahlberg1-2/+6
MGCP request/response matching and MGCPSTAT RTT calculation. For those with MGCP captures, try -z mgcp,rtd[,filter] svn path=/trunk/; revision=7294
2002-12-08On UNIX, search for plugins only in the directory in which plugins willGuy Harris1-46/+3
be installed - don't explicitly search "/usr/lib/ethereal/plugins/{version}" or "/usr/local/lib/ethereal/plugins/{version}", so that if there's more than one version of Ethereal installed, we don't end up picking up plugins from the wrong version. svn path=/trunk/; revision=6766
2002-11-16There's no need to include "prefs.h" unless we're actually exporting theGuy Harris1-8/+8
big table of functions - we don't use the preferences code, we just export routines from it. There is, however, a need to include "reassemble.h" if we're doing so, as some of the functions we export take a "fragment_data *" as an argument, and "fragment_data" is defined in "reassemble.h". The members of "patable" should be set to point to functions, and "p_prefs_register_obsolete_preference" isn't a function - "prefs_register_obsolete_preference" is. Get rid of extra white space at the ends of lines. svn path=/trunk/; revision=6648
2002-11-14From Tomas Kukosa: export more routines to plugins.Guy Harris1-1/+31
svn path=/trunk/; revision=6630
2002-08-28Removed trailing whitespaces from .h and .c files using theJörg Mayer1-5/+5
winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6116
2002-08-14From Tomas Kukosa: add some more routines to the plugin API.Guy Harris1-1/+7
While we're at it, add "extern" to a bunch of function declaration the preceding change *didn't* require to have the "extern" added. svn path=/trunk/; revision=5995