aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wslua/wslua_field.c
AgeCommit message (Collapse)AuthorFilesLines
2011-08-19Introduce NSTime Lua object to handle nstime_t.Stig Bjørlykke1-0/+7
This object can be used to retreive other absolute and relative time fields, create and modify nstime_t values and put generated time values in the tree. Also added ProtoField.absolute_time and ProtoField.relative_time. svn path=/trunk/; revision=38616
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
2011-01-30Fix a number of msvc level 4 "Unreachable code" warnings by removing unneededBill Meier1-1/+0
return statements. svn path=/trunk/; revision=35709
2010-10-21Aw, man, I knew this code was parsed, but I missed the docbook part. Revert ↵Jeff Morriss1-79/+55
34598 and 34599. svn path=/trunk/; revision=34602
2010-10-21Make the indentation consistent.Jeff Morriss1-61/+85
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-02-22Handle FT_PROTOCOL as ByteArray when used in a Field extractor.Stig Bjørlykke1-0/+1
svn path=/trunk/; revision=31951
2010-01-28Fix various gcc -Wshadow warnings.Bill Meier1-2/+2
svn path=/trunk/; revision=31716
2009-10-11Make more functions static.Stig Bjørlykke1-3/+3
svn path=/trunk/; revision=30517
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-06-08Allocate correct lengths for int64 and uint64.Stig Bjørlykke1-2/+2
svn path=/trunk/; revision=28657
2009-06-05Have tap listeners specify whether the "packet" routine requiresGuy Harris1-3/+4
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-13/+13
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
2008-11-11Signal error on field values that cannot be safely represented as strings ↵Balint Reczey1-5/+15
instead of crashing. This fixes bug 2845. svn path=/trunk/; revision=26749
2008-09-16Adds 64 bit integer handling to Lua interface.Balint Reczey1-6/+11
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-26From Balint ReczeyLuis Ontanon1-1/+2
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-05-11g_string_sprintf --> g_string_printf and g_string_sprintfa --> ↵Bill Meier1-1/+1
g_string_append_printf svn path=/trunk/; revision=25276
2008-04-25From: Márton Németh:Jaap Keuter1-4/+4
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
2007-07-21Fix documentation commentsLuis Ontanon1-3/+9
svn path=/trunk/; revision=22373
2007-03-08fix Bug 1370Luis Ontanon1-1/+7
LUA function all_field_infos() causes wire shark to terminate. svn path=/trunk/; revision=21004
2007-01-18Add separate union entries to fvalue.value for signed and unsignedMartin Mathieson1-1/+3
32-bit numbers. Separate signed and unsigned accessors have been added and used where appropriate. Definitely not for 0.99.5. svn path=/trunk/; revision=20472
2006-10-25Attempt to get compilation working under Windows.Gerald Combs1-4/+4
svn path=/trunk/; revision=19677
2006-10-24Improve the documentation generatorsLuis Ontanon1-18/+15
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-1/+1
- 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-10-04- wslua_util.c: replace Lua's loadfile and dofile for versions that will ↵Luis Ontanon1-1/+4
try to open the file in perscofdir then dataconfdir if there's no such file in cwd - wslua_field.c: avoid FieldInfo:__tostring() crashing when the ftype has no val_to_string_repr - init.lua: inform the user that a packet has been disabled, intead of a cryptic "attemt to call nil" - Makefile.am: add register_wslua.c and declare_wslua.h to MAINTAINERCLEANFILES - wslua_gui.c: fix a typo svn path=/trunk/; revision=19425
2006-09-25Move the Lua interface into epan... (not a plugin anymore).Luis Ontanon1-0/+445
- Rename Tap into Listener - add a mechanism to pass protocols' tap data to the Listener svn path=/trunk/; revision=19319