aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wslua/wslua_tree.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-60/+32
34598 and 34599. svn path=/trunk/; revision=34602
2010-10-21Make the indentation consistent.Jeff Morriss1-33/+61
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-05-12From Tamas Regos:Anders Broman1-1/+1
WSLUA improvement. The existing ProtoField.bool looks like the following: ProtoField.bool(abbr, [name], [desc]) But checking any protocol dissector with bool protofield, it can be seen that in C code we have more options than thru the WSLUA interface. E.g.: {&hf_gtp_qos_sig_ind,{"Signalling Indication", "gtp.sig_ind", FT_BOOLEAN, 8, TFS(&gtp_sig_ind), GTP_EXT_QOS_SIG_IND_MASK, NULL, HFILL}}, So I've extended ProtoField.bool to have more options like this: ProtoField.bool(abbr, [name], [bitfield], [true_false_string], [mask], [desc]) https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4700 svn path=/trunk/; revision=32771
2010-05-12From Tamas Regos:Anders Broman1-46/+29
Whitspace changes svn path=/trunk/; revision=32770
2010-01-01Use correct length for FT_STRINGZ when adding the item to the tree.Stig Bjørlykke1-1/+4
svn path=/trunk/; revision=31401
2009-10-02From Beth via bug 4049:Stig Bjørlykke1-0/+3
Add support for FT_BOOLEAN fields to FieldInfo and TreeItem. svn path=/trunk/; revision=30249
2009-09-10From Diego:Anders Broman1-0/+20
proto_item_set_len is missing from Lua API. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3994 svn path=/trunk/; revision=29837
2009-06-08Added a missing check for expired TreeItem.Stig Bjørlykke1-22/+28
Fixed some indents. svn path=/trunk/; revision=28668
2009-05-08Adjusted arguments used in Lua Pref.statictext()Stig Bjørlykke1-6/+6
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-01-27Corrected some defines. Use defines when appropriate.Stig Bjørlykke1-7/+7
Document last argument to DissectorTable.new(). svn path=/trunk/; revision=27309
2008-09-16Adds 64 bit integer handling to Lua interface.Balint Reczey1-2/+2
Fixes bug 2750. svn path=/trunk/; revision=26216
2008-08-05luis.ontanon@gmail.com => luis@ontanon.orgLuis Ontanon1-1/+1
svn path=/trunk/; revision=25937
2008-07-29Try to get the docbook buildbot runnig.Luis Ontanon1-1/+1
Do not generate doc items for wslua garbage collectors (they are transparet) svn path=/trunk/; revision=25857
2008-07-26From Balint ReczeyLuis Ontanon1-28/+66
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
2008-02-22From Balint Reczey via ↵Jeff Morriss1-1/+1
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2264 : fix IPv4 handling svn path=/trunk/; revision=24433
2008-02-21Fix Bug Enable int64, uint64 and ipv4 type fields for the Lua dissectorsAnders Broman1-1/+7
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2264 svn path=/trunk/; revision=24408
2007-12-17From RuudS:Stig Bjørlykke1-1/+3
Patch to LUA to implement byte arrays. This fixes bug 2110. svn path=/trunk/; revision=23896
2006-10-24Have Lua disabled by default.Luis Ontanon1-20/+37
Add more documentation to the code. change make-dco.pl so that it creates more readable docbook output. This should be copied over to 0.99.4 svn path=/trunk/; revision=19670
2006-10-18Add module information for generated docsLuis Ontanon1-1/+3
svn path=/trunk/; revision=19595
2006-09-25Move the Lua interface into epan... (not a plugin anymore).Luis Ontanon1-0/+290
- Rename Tap into Listener - add a mechanism to pass protocols' tap data to the Listener svn path=/trunk/; revision=19319