aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wslua/wslua_listener.c
AgeCommit message (Collapse)AuthorFilesLines
2011-04-21Include config.h only from .c files.Stig Bjørlykke1-0/+4
This avoids a warning building epan.c which includes both config.h and wslua.h (duplicate defines from config.h) svn path=/trunk/; revision=36751
2010-10-21Aw, man, I knew this code was parsed, but I missed the docbook part. Revert ↵Jeff Morriss1-46/+26
34598 and 34599. svn path=/trunk/; revision=34602
2010-10-21Make the indentation consistent.Jeff Morriss1-61/+81
Pull function names to column 0 - except when necessary for autoregistration. Put function comments before the function. For readability, put the macros for functions before the function too. Put class functions before the class. svn path=/trunk/; revision=34599
2010-01-28Fix various gcc -Wshadow warnings.Bill Meier1-6/+6
svn path=/trunk/; revision=31716
2009-10-11Removed unused function tap_draw_cb_error_handler().Stig Bjørlykke1-6/+0
svn path=/trunk/; revision=30518
2009-10-11Make more functions static.Stig Bjørlykke1-6/+6
svn path=/trunk/; revision=30517
2009-06-08Changed g_strdup_printf -> ep_strdup_printf.Stig Bjørlykke1-2/+1
Use correct modifier for converting gint64 and guint64 to string. Added __gc for Int64 and UInt64. Fixed some indents. svn path=/trunk/; revision=28655
2009-06-05Have tap listeners specify whether the "packet" routine requiresGuy Harris1-36/+44
a protocol tree; the column values. This includes stats-tree listeners. Have the routines to build the packet list, and to retap packets, honor those requirements. This means that cf_retap_packets() no longer needs an argument to specify whether to construct the column values or not, so get rid of that argument. This also means that there's no need for a tap to have a fake filter to ensure that the protocol tree will be built, so don't set up a fake "frame" filter. While we're at it, clean up some cases where "no filter" was represented as a null string rather than a null pointer. Have a routine to return an indication of the number of tap listeners with filters; use that rather than the global num_tap_filters. Clean up some indentation and some gboolean vs. gint items. svn path=/trunk/; revision=28645
2009-05-08Adjusted arguments used in Lua Pref.statictext()Stig Bjørlykke1-2/+2
Update Lua documentation: - Fixed Pref.enum, Pref.range and Pref.statictext - Fixed the equivalent comment for pinfo.cols - Do not have a comment star (*) in the documentation - Be consistent and start all sentences with a capital letter svn path=/trunk/; revision=28304
2009-03-13From Jakub Zawadzki (bug 3331):Stig Bjørlykke1-1/+1
g_free() is NULL safe, so we don't need check against it. svn path=/trunk/; revision=27718
2008-08-05luis.ontanon@gmail.com => luis@ontanon.orgLuis Ontanon1-1/+1
svn path=/trunk/; revision=25937
2008-07-26From Balint ReczeyLuis Ontanon1-3/+4
Fix for https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2453 The patch fixes the problem by extending the original "outstanding stuff" approach. Now the pointer itself won't be NULLified, instead we track the pointers with their expiry state in structs in the outstanding_stuff list. The Lua objects refers to those structs instead of the actual pointers and checks the expiry state of the pointers before accessing them. The pointers are marked expired when the dissection of the frame is finished and the allocated struct is freed by Lua's garbage collector. If the garbage collector hits the struct when it holds a not expired pointer, it marks it as expired (that means we don't have any object in Lua referring to the pointer) and the struct will be freed at the end of the dissection of the frame. this is for the 1.0 branch svn path=/trunk/; revision=25845
2008-04-25From: Márton Németh:Jaap Keuter1-2/+2
The luaL_reg structure consists of two pointers: char* and a pointer to a function. The last entry should also reflect this: it should be { NULL, NULL } instead of { 0, 0 }. svn path=/trunk/; revision=25175
2008-04-12From Marton Nemeth (bug 2447):Stig Bjørlykke1-1/+1
In help the not all of the following chapters begins with uppercase: 10.4.1. saving capture files 10.4.2. obtaining dissection data 10.4.3. GUI support 10.4.4. post-dissection packet analysis 10.4.5. obtaining packet information 10.4.6. functions for writing dissectors 10.4.7. adding information to the dissection tree 10.4.8. functions for handling packet data 10.4.9. Utility Functions svn path=/trunk/; revision=24933
2006-12-23get rid of an unused variable.Luis Ontanon1-3/+0
svn path=/trunk/; revision=20208
2006-12-23- Fix an error in the tap listener callbackLuis Ontanon1-7/+5
- add some comments to console.lua svn path=/trunk/; revision=20206
2006-10-24Improve the documentation generatorsLuis Ontanon1-1/+1
add some docs. svn path=/trunk/; revision=19671
2006-10-18Add module information for generated docsLuis Ontanon1-1/+3
svn path=/trunk/; revision=19595
2006-10-17Several changes:Luis Ontanon1-25/+7
- do not #include a c code file in wslua_register.c compile a separate boject - add the console and evaluate windows - add some useful vars to the lua environment - some cleanup - add the dtd generator code (currently disabled) svn path=/trunk/; revision=19579
2006-09-25Move the Lua interface into epan... (not a plugin anymore).Luis Ontanon1-0/+332
- Rename Tap into Listener - add a mechanism to pass protocols' tap data to the Listener svn path=/trunk/; revision=19319