Commit Graph

926 Commits

Author SHA1 Message Date
Gerald Combs 80e2a01fae From Matt Briggs via bug 3062: Keep Lua from doing rude things to
the stack.

svn path=/trunk/; revision=27139
2008-12-31 01:20:20 +00:00
Balint Reczey 315c36c847 From yami <yamisoe@gmail.com>:
Expose pinfo->private_data to lua interface.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3129

svn path=/trunk/; revision=27132
2008-12-30 12:49:42 +00:00
Balint Reczey a5622ba415 Do not include init.lua in distribution tar.gz.
svn path=/trunk/; revision=27094
2008-12-23 17:01:59 +00:00
Balint Reczey f64f7b1e8d Separate reassembly request methods in Lua API implementation.
Now both new-style and pinfo based method work without interference.

svn path=/trunk/; revision=27002
2008-12-15 15:46:53 +00:00
Stig Bjørlykke c8f933d0b9 From Jim Young (bug 3102):
Trivial patch to fix a structured comment within wslua_pinfo.c

svn path=/trunk/; revision=26943
2008-12-09 07:53:11 +00:00
Balint Reczey fc2f95b921 Add access to pinfo->desegment_len and pinfo->desegment_offset to Lua API.
This enables Lua dissectors to request reassembly via the pinfo struct.

svn path=/trunk/; revision=26926
2008-12-05 17:19:34 +00:00
Balint Reczey 0e4856e8b9 Fix PDU reassembly for Lua dissectors.
Now Lua dissectors that do not request PDU reassembly will work again.

svn path=/trunk/; revision=26821
2008-11-21 15:47:14 +00:00
Balint Reczey e326300ef3 Fix PDU reassembly for Lua dissectors.
This hopefully really fixes bug 2146.

svn path=/trunk/; revision=26815
2008-11-20 12:54:34 +00:00
Balint Reczey 41723a5ef2 Signal error on field values that cannot be safely represented as strings instead of crashing.
This fixes bug 2845.

svn path=/trunk/; revision=26749
2008-11-11 13:32:51 +00:00
Balint Reczey cc1bef5004 fix double free bug caused by Lua GC after opening and closing Lua console
svn path=/trunk/; revision=26700
2008-11-05 15:00:46 +00:00
Stig Bjørlykke ec8b88f947 Document the new lua functions.
svn path=/trunk/; revision=26660
2008-10-31 20:02:42 +00:00
Balint Reczey 33294f830c Provide TvbRange:{offset|len}() instead of TvbRange.{offset|len}.
Write access to offset and len from Lua is gone, too.
This fixes bug 2243.

svn path=/trunk/; revision=26657
2008-10-31 18:14:47 +00:00
Gerald Combs d934f6786d Fix compilation under Windows (uint -> guint).
svn path=/trunk/; revision=26217
2008-09-16 18:26:43 +00:00
Balint Reczey 8566c6046e Adds 64 bit integer handling to Lua interface.
Fixes bug 2750.

svn path=/trunk/; revision=26216
2008-09-16 14:37:00 +00:00
Balint Reczey d3c1fca78d Fix for bug 1965:
Fix ByteArray append() and set_size()

svn path=/trunk/; revision=26215
2008-09-16 14:00:48 +00:00
Luis Ontanon fd7fa42438 Get rid of a '<' in the description that causes docbook to bail out...
svn path=/trunk/; revision=25980
2008-08-11 07:32:17 +00:00
Luis Ontanon dfd6dd53a4 Add a slightly modified version of Paolo Abeni's funneled progress dialog (ref https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2725) and its wslua interface.
svn path=/trunk/; revision=25977
2008-08-11 01:33:31 +00:00
Luis Ontanon 42c3239a1a luis.ontanon@gmail.com => luis@ontanon.org
svn path=/trunk/; revision=25937
2008-08-05 21:03:46 +00:00
Luis Ontanon 9bf9f8615f Try to get the docbook buildbot runnig.
Do not generate doc items for wslua garbage collectors (they are transparet)


svn path=/trunk/; revision=25857
2008-07-29 00:23:58 +00:00
Luis Ontanon 006e41af12 From Balint Reczey
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-07-26 23:41:31 +00:00
Guy Harris a04774395f Add Makefile.common files for epan/dfilter and epan/ftypes.
Add checkapi rules to Makefile.am files.

svn path=/trunk/; revision=25656
2008-07-02 01:44:30 +00:00
Guy Harris b6e20d89be Put printf into a separate "termoutput" API group. For most files,
check for it - but not for TShark plugins, as they are expected to
print to the standard output.

svn path=/trunk/; revision=25653
2008-07-01 21:13:32 +00:00
Jeff Morriss 83f9ecf96f Move privileges.c and unicode-utils.c from epan to wsutil (so things like
capinfos and dumpcap don't need to depend on libwireshark nor directly pull
in those modules).  Because capinfos and editcap were only being linked with
privileges.c if we had plugins, this allows those programs to be linked when
someone is compiling --without-plugins.

svn path=/trunk/; revision=25640
2008-06-30 17:16:29 +00:00
Anders Broman 2640b786f4 Fix run checkapi for more targets.
svn path=/trunk/; revision=25414
2008-06-03 05:35:19 +00:00
Jeff Morriss a5cee04fad Move the file utility functions from wiretap to libwsutil so that
libwireshark (and the plugins using those functions) do not depend on
wiretap on Windows.

While doing that, rename the eth_* functions to ws_*.

svn path=/trunk/; revision=25354
2008-05-22 15:46:27 +00:00
Bill Meier fe5c2d9820 g_string_sprintf --> g_string_printf and g_string_sprintfa --> g_string_append_printf
svn path=/trunk/; revision=25276
2008-05-11 18:33:49 +00:00
Guy Harris 1ad79116ed Get rid of old GLib 1.2[.x] stuff, as we now require GLib 2.x.
svn path=/trunk/; revision=25192
2008-04-29 08:44:57 +00:00
Jaap Keuter da005d4aaf From Márton Németh:
Cleanup ident of epan/wslua/init_wslua.c: use spaces instead of tabs.
cleanup the ident of generator scripts and for template-init.lua
Spaces used instead of tabs for indent. Removed spaces placed by generator
script just before a newline.

svn path=/trunk/; revision=25176
2008-04-25 19:04:52 +00:00
Jaap Keuter a923b5491c From: Márton Németh:
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-25 18:59:20 +00:00
Ulf Lamping 85e14ceb86 rename REGISTER_xxx_GROUP_NONE to REGISTER_xxx_GROUP_UNSORTED, as NONE seems a bit misleading
svn path=/trunk/; revision=25086
2008-04-17 02:16:39 +00:00
Luis Ontanon 0fca04e6a0 attempt to fix init.lua construction in Windows.
more diagnostics to make-init-lua.pl


svn path=/trunk/; revision=25044
2008-04-15 12:22:25 +00:00
Luis Ontanon 602de4d33c Die stating why when a file could no be opened.
svn path=/trunk/; revision=25042
2008-04-15 10:22:39 +00:00
Luis Ontanon 4eb08aad66 From Marton Nemeth:
Addenda and fixes to WSLUA_CLASS_DEFINE documentation

Mine: fix init.lua generation



svn path=/trunk/; revision=25025
2008-04-14 21:16:32 +00:00
Stig Bjørlykke 88f296224c From Marton Nemeth (bug 2447):
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-04-12 13:56:28 +00:00
Luis Ontanon 2a96b4aff6 fix http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2448
Tvb:xxx() functions are unpropperly named Tvb:get_xxx in the wsluarm


svn path=/trunk/; revision=24887
2008-04-10 23:59:19 +00:00
Luis Ontanon f35472dc08 From Marton Nemeth:
"defaults to MENU_STAT_GENERIC" added to the description of the group argument of register_menu()


svn path=/trunk/; revision=24885
2008-04-10 23:28:15 +00:00
Luis Ontanon db608bdf76 From Marton Nemeth <nm127@freemail.hu>
correct example and documentation about register_menu()

my own: do not fail to make init.lua when building in a different dir



svn path=/trunk/; revision=24879
2008-04-10 20:07:58 +00:00
Jeff Morriss 9e54e45e70 From http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2413 : fix comment typo
svn path=/trunk/; revision=24876
2008-04-10 15:26:22 +00:00
Stephen Fisher 726a1caaf1 - Remove GLIB1 code
- Change ugly GLIB version checking statements to GLIB_CHECK_VERSION
- Remove ws_strsplit files because we no longer need to borrow GLIB2's
  g_strsplit code for the no longer supported GLIB1 builds


svn path=/trunk/; revision=24829
2008-04-07 05:22:54 +00:00
Bill Meier bef5e5c9fc One more g_free ....
svn path=/trunk/; revision=24501
2008-02-29 02:09:22 +00:00
Bill Meier 030c8c6f3e Fix wireshark/tshark crash when initializing lua (using init.lua, etc).
Essentially: A small cleanup of SVN 24479.
(Fortunately the 0.99.8 release does not have this issue).
Also: add some lines of (what appears to be) missing code.

svn path=/trunk/; revision=24500
2008-02-29 01:49:31 +00:00
Jeff Morriss 1e65f5b562 A couple more const fixes.
svn path=/trunk/; revision=24483
2008-02-26 23:30:40 +00:00
Jeff Morriss 7ffc01c6ce Oops, freeing a const char* doesn't always work. Make it not a const.
svn path=/trunk/; revision=24482
2008-02-26 23:05:05 +00:00
Jeff Morriss 1d6df91a9d get_datafile_path() and get_persconffile_path() return malloc'd memory,
free it when we're done with the file name.

svn path=/trunk/; revision=24479
2008-02-26 19:52:21 +00:00
Jeff Morriss 146d642ebe From Balint Reczey via http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2264 : fix IPv4 handling
svn path=/trunk/; revision=24433
2008-02-22 21:02:10 +00:00
Anders Broman 85c51a72a0 Fix Bug Enable int64, uint64 and ipv4 type fields for the Lua dissectors
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2264

svn path=/trunk/; revision=24408
2008-02-21 19:58:09 +00:00
Bill Meier 936381623d Add 'executable' property to a few .pl and .py files
svn path=/trunk/; revision=24390
2008-02-19 13:44:02 +00:00
Stig Bjørlykke 8d512b51d2 From Peter (bug 2224):
Patch to fix compile with glib-1.2.

svn path=/trunk/; revision=24199
2008-01-26 15:28:37 +00:00
Stig Bjørlykke a2d1e9005d This patch adds support for configuration profiles, which can be used to
configure and use more than one set of preferences and configuration files.

This can be found in the "Configuration Profiles..." menu item from the Edit
menu, or by pressing Shift-Ctrl-A.  It's also possible to start wireshark
and tshark with a named profile by using the "-C ProfileName" option.
A new status pane in the main window will show the current profile.

The configuration files currently stored in the Profiles are:
- Preferences
- Capture Filters
- Display Filters
- Coloring Rules
- Disabled Protocols
- User Accessible Tables

The recent data are by design not added to the profile.

Planned future enhancements:
- make a more convenient function to switch between profiles
- add a "clone profile" button to copy an existing profile
- make the profiles list active and accept return as OK
- save users "Decode as" in the profile
- make new, clone and deletion of profiles more secure
- make some of the recent values available in the profile

This patch also fixes:
- setting default status pane sizes
- a bug setting status pane for packets when not having main lower pane.

svn path=/trunk/; revision=24089
2008-01-14 16:40:23 +00:00
Stig Bjørlykke e63c643cb2 Add a cast.
svn path=/trunk/; revision=24028
2008-01-07 23:00:09 +00:00
Stig Bjørlykke 8959e6f766 From Balint Reczey (bug 2146):
Make it possible to write Lua dissectors that use TCP reassembly.

svn path=/trunk/; revision=24026
2008-01-07 21:24:23 +00:00
Stig Bjørlykke 3d7d0393b2 From RuudS:
Patch to LUA to implement byte arrays.

This fixes bug 2110.

svn path=/trunk/; revision=23896
2007-12-17 09:00:45 +00:00
Sake Blok 6bec9d3d9e From tmiller@hcjbtech.org : Spelling error on GDS DB protocol dissector: "Buffer lenght:"
(recursively grepped through the source and corrected all occurences, even 
the ones just in comments)



svn path=/trunk/; revision=23211
2007-10-16 23:42:33 +00:00
Jeff Morriss 53489c8f5d A few more s/fopen/eth_fopen/
svn path=/trunk/; revision=23207
2007-10-16 15:58:25 +00:00
Guy Harris 98309a6c83 Squelch a warning.
svn path=/trunk/; revision=22442
2007-08-02 19:07:08 +00:00
Guy Harris dd86332046 Gak. <> makes it too easy to make these make- scripts do what the rest
do, and take $(srcdir) as the first argument.  Back the previous changes
out, for now.

svn path=/trunk/; revision=22441
2007-08-02 16:06:13 +00:00
Guy Harris ad76a231d4 We have to include Makefile.common if we move definitions we need
there....

svn path=/trunk/; revision=22440
2007-08-02 08:24:00 +00:00
Guy Harris 4f00d5fcc1 Move the list of source files to a Makefile.common file.
Don't put $(srcdir)/ at the beginning of those file names - other
Makefile.am files don't have it, and it appears to break "make
distcheck", at least on my Mac OS X 10.4 machine.

svn path=/trunk/; revision=22439
2007-08-02 07:54:03 +00:00
Luis Ontanon 6c31e5fc14 Fix documentation comments
svn path=/trunk/; revision=22373
2007-07-21 18:23:08 +00:00
Jörg Mayer 4b87c65bad Fix warning about unused parameter
svn path=/trunk/; revision=21863
2007-05-21 16:36:21 +00:00
Jörg Mayer 7c888570e4 Hack to fix out of tree builds
svn path=/trunk/; revision=21861
2007-05-21 16:02:31 +00:00
Luis Ontanon 51a7fa1404 The forgotten file strikes back.
... It also fixes a lua compile warning/error in wslua_gui.c. ...


svn path=/trunk/; revision=21656
2007-05-02 23:54:01 +00:00
Luis Ontanon 8a293db121 From Tamas Regos (Via Balint Reczey)
The attached patch adds ability of of creating radio button, drop-down
list and range type preference entries to the Lua plugin.
It also fixes a lua compile warning/error in wslua_gui.c.
The patch is written by Tamas Regos, he asked me to send it to the list.

svn path=/trunk/; revision=21655
2007-05-02 23:39:44 +00:00
Luis Ontanon 5f5f656108 From: Balint Reczey
I would like to handle the rare situation of Little Endian encoded
IP addresses, so i added a function which reads the address with
tvb_get_ipv4(), then swaps the bytes before SET_ADDRESS().


svn path=/trunk/; revision=21397
2007-04-12 22:45:22 +00:00
Luis Ontanon 5b08821866 have tvbrange:get_ipv4() not modifying the byte order of the extraced data.
have Proto.new() registering the protocol by name.


svn path=/trunk/; revision=21385
2007-04-11 19:24:19 +00:00
Stephen Fisher 6d8d2854c8 From Sake Blok:
Fix for bug #491: Unexpected frame.time_delta behavior

This patch ... fixes bug 491. It does this by changing the
behaviour of the frame.time_delta field so it reflects the delta
time between captured packets (tshark already did this).  To keep
the delta time between displayed packets, the field 
frame.time_delta_displayed is created.


svn path=/trunk/; revision=21154
2007-03-23 18:08:17 +00:00
Stephen Fisher 62f88a4a04 From Sebastien Tandel:
(Temporarily disable the warnings as errors default on Unix to get
to get the buildbots and people with gcc40 going again until those
additional warnings gcc40 generates can be fixed-I'm working on it
ASAP)

   Patch for configure.in which disables by default the treatment of
warnings as errors.
It can be enabled with './configure --with-warnings-as-errors'.
The macro will test first if GCC is present. If it's the case,
HAVE_WARNINGS_AS_ERRORS is defined. All the USING_GCC have been replaced
by HAVE_WARNINGS_AS_ERRORS.
With this switch, people won't suffer from unexpected warnings when
downloading svn sources during the transition time ;)


svn path=/trunk/; revision=21153
2007-03-23 17:49:59 +00:00
Stephen Fisher 84c5becd89 Add -Werror for gcc to a few more directories and fix a few warnings
svn path=/trunk/; revision=21129
2007-03-22 23:24:13 +00:00
Ulf Lamping dcb1e1bdfd add "treat warnings as errors" flag(s)
svn path=/trunk/; revision=21125
2007-03-22 22:54:00 +00:00
Ulf Lamping 8d311b9250 fix warnings
svn path=/trunk/; revision=21124
2007-03-22 22:47:37 +00:00
Jörg Mayer 3fab97b6ad Fixes for: warning: ISO C does not allow extra ';' outside of a function
svn path=/trunk/; revision=21085
2007-03-21 05:06:01 +00:00
Jörg Mayer 636e20e431 Fixes for: warning: comma at end of enumerator list
svn path=/trunk/; revision=21084
2007-03-21 04:59:53 +00:00
Luis Ontanon 5fa8e75149 packet_info.c and packet.c
add sccp_info to struct _packet_info (Sorry but the way private_data works and the fact that TCAP uses it and BSSAP/RANAP can be tunnelled on GSMMAP over TCAP makes it impossible to avoid)

SCCP
- Have SCCP to have a TAP,
- Fix associations so that every message belongs to the association.
- Export message type values so that they can be used by a tap listener

RANAP
 - Have RANAP information attached to the sccp_info 

BSSAP + GSM_A
- Have DTAP, BSSMAP and BSSAP info attached to the sccp_info

svn path=/trunk/; revision=21076
2007-03-21 00:48:46 +00:00
Bill Meier 04d29de81d Fix Windows Makefiles so clean removes all pdb files (PDB_FILE no longer defined)
svn path=/trunk/; revision=21052
2007-03-18 15:36:22 +00:00
Luis Ontanon 78028f02b5 fix Bug 1370
LUA function all_field_infos() causes wire shark to terminate.

svn path=/trunk/; revision=21004
2007-03-08 23:00:28 +00:00
Luis Ontanon 2688c9b3f3 do not return before ENDTRY when handling an exception, this would leave the fat stack without the top and cause the dereferencing of a null pointer later on when popping in the next ENDTRY.
Oddly enough this shows up only on windows. Maybe there's something good in my Mac's temporary disability!

svn path=/trunk/; revision=20972
2007-03-04 16:00:05 +00:00
Luis Ontanon 7d352fa51b some cleanup and pset of svn:ignore
svn path=/trunk/; revision=20603
2007-01-29 14:11:44 +00:00
Luis Ontanon db9803fdd0 fix distcheck
svn path=/trunk/; revision=20578
2007-01-27 04:08:06 +00:00
Luis Ontanon 3472c0fa67 Fix docbook documentation
svn path=/trunk/; revision=20577
2007-01-27 02:33:21 +00:00
Bill Meier 09f508b57b A few more ethereal --> wireshark
svn path=/trunk/; revision=20559
2007-01-26 01:34:29 +00:00
Gerald Combs 1f955f3fcf Fix compilation (under Windows, at least).
svn path=/trunk/; revision=20541
2007-01-24 01:06:24 +00:00
Luis Ontanon 6f5c055c81 add range to the metatable of Tvb.
svn path=/trunk/; revision=20540
2007-01-23 23:36:28 +00:00
Luis Ontanon e9d3877fb8 tvb:range did not appear under Tvb in generated refman
pinfo.curr_proto appeared as pinfo.match
pinfo.columns in the refman was pinfo.cols in lua (now it is both in lua and in refman)


svn path=/trunk/; revision=20539
2007-01-23 23:34:41 +00:00
Luis Ontanon 58126f3753 fix bug 1321
svn path=/trunk/; revision=20515
2007-01-21 17:06:16 +00:00
Luis Ontanon a850669c19 fix bug 1320
svn path=/trunk/; revision=20514
2007-01-21 17:05:33 +00:00
Martin Mathieson 997e5415f9 Add separate union entries to fvalue.value for signed and unsigned
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
2007-01-18 11:02:26 +00:00
Luis Ontanon 69ebd4f948 * have the Dumper using either '\' or '/' as directory separator in all plattforms.
* use the directory separator not a pointer to it.



svn path=/trunk/; revision=20330
2007-01-05 15:09:33 +00:00
Luis Ontanon 96234ee374 * rename url->file in browser_open_data_file()
svn path=/trunk/; revision=20328
2007-01-05 12:14:42 +00:00
Luis Ontanon 6ad83076e6 + register_stat_cmd_arg()
* use '/' as directory separator on both plattforms

svn path=/trunk/; revision=20327
2007-01-05 12:11:05 +00:00
Gerald Combs 3e09e4c8d7 Remove duplicate targets.
svn path=/trunk/; revision=20319
2007-01-04 23:54:00 +00:00
Luis Ontanon 4c9297addd Add the documentation directory
svn path=/trunk/; revision=20317
2007-01-04 22:58:33 +00:00
Guy Harris 1c9939e359 Rename pkgdata_DATA to dist_pkgdata_DATA, to make sure it's in the
distribution.  That means we don't have to include it in EXTRA_DIST.

svn path=/trunk/; revision=20310
2007-01-04 18:35:33 +00:00
Gerald Combs 32837914e6 Add clean targets to wslua. Fix the config.nmake include in crypt.
svn path=/trunk/; revision=20232
2006-12-28 17:28:29 +00:00
Luis Ontanon aa235a4262 + browser_open_url()
+ browser_open_data_file()


svn path=/trunk/; revision=20223
2006-12-27 01:46:42 +00:00
Luis Ontanon bfbb92ad28 get rid of an unused variable.
svn path=/trunk/; revision=20208
2006-12-23 03:53:13 +00:00
Luis Ontanon 874912824c - Fix an error in the tap listener callback
- add some comments to console.lua


svn path=/trunk/; revision=20206
2006-12-23 03:45:46 +00:00
Luis Ontanon 1234c207f6 fix a typo.
svn path=/trunk/; revision=20193
2006-12-22 05:54:12 +00:00
Luis Ontanon 74cb1d2b46 - Fix the name of the disable_lua variable.
== improve documentation
   make-doc.pl ( make doc ) generates an almost complete reference manual.
 



svn path=/trunk/; revision=20192
2006-12-22 05:48:57 +00:00
Luis Ontanon f8bc734cb2 Avoid ${ename}[...] being interpreted as $ename[...].
svn path=/trunk/; revision=19824
2006-11-06 18:16:56 +00:00
Anders Broman a0438e6cf0 console.lua missing from the svn tarball preventing making a package. I hope this
is the right way to fix it.

svn path=/trunk/; revision=19764
2006-10-31 22:28:50 +00:00
Gerald Combs 21c1d62d88 Attempt to get compilation working under Windows.
svn path=/trunk/; revision=19677
2006-10-25 00:17:28 +00:00
Luis Ontanon 493ee85cb0 Improve the documentation generators
add some docs.


svn path=/trunk/; revision=19671
2006-10-24 17:34:17 +00:00
Luis Ontanon 0072205e18 Have Lua disabled by default.
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-24 13:16:57 +00:00
Gerald Combs 7217c6ba50 Fix a typo.
svn path=/trunk/; revision=19610
2006-10-19 17:34:11 +00:00
Luis Ontanon 82abc5f08b - wslua_gui.c:
- remove data_ref where it is not used anymore (callbacks won't pass userdata as this ius better done using lua's closures)
  - have TextWindow:set_editable() using its argument

- add wslua_optbool(L,n,d) to pull an optional boolean from the stack

- several fixes to docbook generation (now it compiles!)



svn path=/trunk/; revision=19608
2006-10-19 17:02:23 +00:00
Luis Ontanon 125c6243f6 Add module information for generated docs
svn path=/trunk/; revision=19595
2006-10-18 18:45:24 +00:00
Luis Ontanon 0757dcbba3 - better indentation and fix some errors
svn path=/trunk/; revision=19594
2006-10-18 18:39:30 +00:00
Luis Ontanon 2e03cbb421 - have console.lua not using os.date when os has been disabled
- try to avoid a warning in wslua_gui.c
- make-doc.pl --> docbook (still broken I guess)



svn path=/trunk/; revision=19593
2006-10-18 17:59:49 +00:00
Luis Ontanon aee9a87da4 - Fix the makefile
- improve the Lua Console


svn path=/trunk/; revision=19591
2006-10-18 15:05:55 +00:00
Luis Ontanon 9777d83a8f Add the license
svn path=/trunk/; revision=19582
2006-10-17 18:29:24 +00:00
Luis Ontanon b8ef88a6e2 Several changes:
- 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-17 18:20:44 +00:00
Luis Ontanon 02a2382a36 - add persconffile(opt_str)
- add datafile_path(opt_str)
- add Dir class -- a Directory Iterator


svn path=/trunk/; revision=19507
2006-10-12 17:00:11 +00:00
Ulf Lamping a2a1c0c3d1 add some missing files to the clean target
svn path=/trunk/; revision=19465
2006-10-09 22:32:50 +00:00
Luis Ontanon 8dee75cf68 have the funnel client passing the destructors for btn data structures to the funnel.
Although useless in practice, it is better to implement it this way... the funnel mini gui might be used by other modules in the future.


svn path=/trunk/; revision=19440
2006-10-05 16:25:13 +00:00
Luis Ontanon ba81fb99da Misterious bug with cf_read() solved... had nothing to do with cf_read :)
the callback data for TextWindow buttons was ep_allocated!
after cf_read() it was reused and so it was rewritten...

fix that making it g_malloced instead.


svn path=/trunk/; revision=19432
2006-10-04 18:45:26 +00:00
Luis Ontanon ba90067e62 - wslua_util.c: replace Lua's loadfile and dofile for versions that will 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-10-04 14:37:46 +00:00
Ulf Lamping 4d1da73c6f an attempt to fix the Ubuntu buildbot:
ERROR: files left in build directory after distclean:
./epan/wslua/declare_wslua.h
./epan/wslua/register_wslua.c

Louis, could you have a look - I might have produced a mess :-)

svn path=/trunk/; revision=19423
2006-10-03 23:32:51 +00:00
Luis Ontanon 62ecee25ce Update nmakefile to latest changes.
svn path=/trunk/; revision=19411
2006-10-03 18:24:08 +00:00
Luis Ontanon e23201c62a - Make sure that the registration files are created whenever there's a change
- get rid of 5.0.2 stuff
- add the apply_filter() API


svn path=/trunk/; revision=19406
2006-10-03 14:27:45 +00:00
Luis Ontanon 161b9a55ea more Lua APIs:
- set_filter() : sets the main window filter
- reload() : reloads the current capture file
- copy_to_clipboard() : copies its first arfg to the clipboard
- open_capture_file() : opens a capture file for viewing (still broken)


svn path=/trunk/; revision=19404
2006-10-03 12:07:10 +00:00
Luis Ontanon 2e7726b3ff * rename REGISTER_STAT_GROUP_E -> register_stat_group_t
* Add a "Tools" menu
* allow wslua's register_menu to register menu items into more menus


svn path=/trunk/; revision=19338
2006-09-27 17:12:42 +00:00
Luis Ontanon 611d1e6443 Add a simple lua console to allow evaluation of conde into init.lua
svn path=/trunk/; revision=19332
2006-09-27 02:51:08 +00:00
Gerald Combs d1737fd2eb Fix distcheck errors. Add epan/wslua to the list of distribution
directories, make sure $(scrdir) is prepended to script paths, and 
fixup the wslua distclean target.

svn path=/trunk/; revision=19329
2006-09-26 22:24:50 +00:00
Luis Ontanon 7ae6780cd6 wslua_init() must return a value
svn path=/trunk/; revision=19326
2006-09-26 04:06:17 +00:00
Luis Ontanon c8a95a0548 Lua 5.1.1 for windows
svn path=/trunk/; revision=19324
2006-09-26 03:31:00 +00:00
Luis Ontanon 6462d05044 Move the Lua interface into epan... (not a plugin anymore).
- Rename Tap into Listener
- add a mechanism to pass protocols' tap data to the Listener


svn path=/trunk/; revision=19319
2006-09-25 01:09:00 +00:00