wireshark/epan/wslua
Guy Harris 2d41b15495 Add a "failed" return for tap packet routines.
This allows taps that can fail to report an error and fail; a failed
tap's packet routine won't be called again, so they don't have to keep
track of whether they've failed themselves.

We make the return value from the packet routine an enum.

Don't have a separate type for the per-packet routine for "follow" taps;
they're expected to act like tap packet routines, so just use the type
for tap packet routines.

One tap packet routine returned -1; that's not a valid return value, and
wasn't one before this change (the return value was a boolean), so
presume the intent was "don't redraw".

Another tap routine's early return, without doing any work, returned
TRUE; this is presumably an error (no work done, no need to redraw), so
presumably it should be "don't redraw".

Clean up some white space while we're at it.

Change-Id: Ia7d2b717b2cace4b13c2b886e699aa4d79cc82c8
Reviewed-on: https://code.wireshark.org/review/31283
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2019-01-01 05:03:42 +00:00
..
.editorconfig
CMakeLists.txt CMake: Simplify CMAKE_INSTALL_DATADIR usage 2018-12-03 22:35:37 +00:00
console.lua Lua: remove various logging functions (debug, warn, etc.) 2018-09-07 04:02:45 +00:00
dtd_gen.lua
init_wslua.c wslua: fix source argument in debug info for luacov 2018-09-07 04:02:25 +00:00
init_wslua.h epan: Remove unnecessary all protocols registration callback 2018-08-29 23:22:44 +00:00
lrexlib.c
lrexlib.h
lrexlib_algo.h
lrexlib_glib.c
lrexlib_glib_f.c
lua_bitop.c Revert "Some older compilers don't allow diagnostic pragmas inside a function." 2018-09-12 16:29:30 +00:00
lua_bitop.h
make-init-lua.pl wslua: Add support for base.RANGE_STRING handling. 2018-10-17 20:08:57 +00:00
make-reg.pl
make-taps.pl
taps Rename packet-ssl* to packet-tls* 2018-09-25 13:24:17 +00:00
template-init.lua Revert "Add routines to load Lua programs that assume the path is UTF-8 on Windows." 2018-12-30 07:49:22 +00:00
wslua.h Lua: remove various logging functions (debug, warn, etc.) 2018-09-07 04:02:45 +00:00
wslua_address.c lua: add support for ethernet addresses to the Address class 2018-10-18 07:51:36 +00:00
wslua_byte_array.c epan: Guard g_base64_decode_inplace() against zero length string 2018-09-05 17:19:42 +00:00
wslua_capture_info.c Use an enum for compression types in various interfaces. 2018-11-16 09:20:36 +00:00
wslua_column.c
wslua_dir.c wslua: fix memleak in Dir.remove_all on error path 2018-05-10 06:16:19 +00:00
wslua_dissector.c
wslua_dumper.c Try to squeeze some bytes out of the frame_data structure. 2018-12-27 04:34:29 +00:00
wslua_field.c Add a tap "finish" callback, called when a listener is removed. 2018-07-21 00:51:13 +00:00
wslua_file.c Use an enum for compression types in various interfaces. 2018-11-16 09:20:36 +00:00
wslua_file_common.c
wslua_file_common.h
wslua_file_handler.c Lua: fix crash in reloading Lua plugins that use FileHandler 2018-12-29 10:38:13 +00:00
wslua_frame_info.c Try to discourage the use of APIs via counting. 2018-09-19 16:07:03 +00:00
wslua_gui.c Try to discourage the use of APIs via counting. 2018-09-19 16:07:03 +00:00
wslua_int64.c
wslua_internals.c
wslua_listener.c Add a "failed" return for tap packet routines. 2019-01-01 05:03:42 +00:00
wslua_nstime.c wslua: fix NSTime:__tostring for negative values 2018-05-25 12:50:18 +00:00
wslua_pinfo.c Try to squeeze some bytes out of the frame_data structure. 2018-12-27 04:34:29 +00:00
wslua_pinfo_common.h
wslua_pref.c Free g_array_free-related memory leaks 2018-05-14 13:44:23 +00:00
wslua_proto.c
wslua_proto_expert.c
wslua_proto_field.c wslua: Add support for base.RANGE_STRING handling. 2018-10-17 20:08:57 +00:00
wslua_struct.c
wslua_tree.c
wslua_tvb.c
wslua_util.c Revert "Add routines to load Lua programs that assume the path is UTF-8 on Windows." 2018-12-30 07:49:22 +00:00