wireshark/epan/wslua
Guy Harris 1f8999bb96 Redo the block options APIs.
A block can have zero or more instances of a given option.  We
distinguish between "one instance only" options, where a block can have
zero or one instance, and "multiple instances allowed" options, where a
block can have zero or more instances.

For "one instance only" options:

	"add" routines add an instance if there isn't one already
	and fail if there is;

	"set" routines add an instance if there isn't one already
	and change the value of the existing instance if there is one;

	"set nth" routines fail;

	"get" routines return the value of the instance if there is one
	and fail if there isn't;

	"get nth" routines fail.

For "multiple instances allowed" options:

	"add" routines add an instance;

	"set" routines fail;

	"set nth" routines set the value of the nth instance if there is
	one and fail otherwise;

	"get" routines fail;

	"get nth" routines get the value if the nth instance if there is
	one and fail otherwise.

Rename "optionblock" to just "block"; it describes the contents of a
block, including both mandatory items and options.

Add some support for NRB options, including IPv4 and IPv6 option types.

Change-Id: Iad184f668626c3d1498b2ed00c7f1672e4abf52e
Reviewed-on: https://code.wireshark.org/review/16444
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-07-14 23:02:39 +00:00
..
.editorconfig Add EditorConfig settings for most C files 2016-03-08 10:46:35 +00:00
CMakeLists.txt Add checkAPI calls to CMake. 2016-05-02 12:01:24 +00:00
Makefile.am Remove Nmake build system 2016-06-15 19:21:57 +00:00
console.lua Lua: Switch URL to documentation to HTTPS 2015-11-26 15:45:07 +00:00
dtd_gen.lua
init_wslua.c Lua: Fix add and remove Fields when reload Lua plugins 2016-04-11 17:59:11 +00:00
init_wslua.h Added Reload Lua plugins. 2015-08-11 12:09:07 +00:00
lrexlib.c
lrexlib.h Lua: add functions for more field information 2015-07-09 01:49:11 +00:00
lrexlib_algo.h Revert "Try to please both GCC (the compiler, not me) and clang." 2015-05-05 16:01:35 +00:00
lrexlib_glib.c Lua: add functions for more field information 2015-07-09 01:49:11 +00:00
lrexlib_glib_f.c
lua_bitop.c
lua_bitop.h
make-init-lua.pl Lua: Added support for ProtoField framenum type. 2015-11-15 18:33:16 +00:00
make-reg.pl wslua: do not pop from empty stack on newer LUA versions 2015-09-30 12:31:56 +00:00
make-taps.pl make-taps.pl: Remove perl >= 5.14 requirement 2016-04-17 01:34:56 +00:00
taps Create a way to register "capture" dissectors. 2015-12-13 14:34:13 +00:00
template-init.lua Lua: Added support for ProtoField framenum type. 2015-11-15 18:33:16 +00:00
wslua.h Redo the block options APIs. 2016-07-14 23:02:39 +00:00
wslua_address.c wslua: Drop unused "push_code" macro parameter 2016-06-14 18:32:51 +00:00
wslua_byte_array.c wslua: Drop unused "push_code" macro parameter 2016-06-14 18:32:51 +00:00
wslua_capture_info.c Redo the block options APIs. 2016-07-14 23:02:39 +00:00
wslua_column.c wslua: Drop unused "push_code" macro parameter 2016-06-14 18:32:51 +00:00
wslua_dir.c wslua: Drop unused "push_code" macro parameter 2016-06-14 18:32:51 +00:00
wslua_dissector.c wslua: Drop unused "push_code" macro parameter 2016-06-14 18:32:51 +00:00
wslua_dumper.c wslua: Drop unused "push_code" macro parameter 2016-06-14 18:32:51 +00:00
wslua_field.c Revert "tap: change glib functions to wmem." 2016-06-19 10:47:10 +00:00
wslua_file.c wslua: Drop unused "push_code" macro parameter 2016-06-14 18:32:51 +00:00
wslua_file_common.c Lua: split up wslua files into class-based files 2015-07-12 02:08:24 +00:00
wslua_file_common.h Lua: split up wslua files into class-based files 2015-07-12 02:08:24 +00:00
wslua_file_handler.c wslua: Drop unused "push_code" macro parameter 2016-06-14 18:32:51 +00:00
wslua_frame_info.c wslua: Drop unused "push_code" macro parameter 2016-06-14 18:32:51 +00:00
wslua_gui.c wslua: Drop unused "push_code" macro parameter 2016-06-14 18:32:51 +00:00
wslua_int64.c wslua: Drop unused "push_code" macro parameter 2016-06-14 18:32:51 +00:00
wslua_internals.c
wslua_listener.c Revert "tap: change glib functions to wmem." 2016-06-19 10:47:10 +00:00
wslua_nstime.c wslua: Drop unused "push_code" macro parameter 2016-06-14 18:32:51 +00:00
wslua_pinfo.c wslua: Drop unused "push_code" macro parameter 2016-06-14 18:32:51 +00:00
wslua_pinfo_common.h Lua: split up wslua files into class-based files 2015-07-12 02:08:24 +00:00
wslua_pref.c wslua: Drop unused "push_code" macro parameter 2016-06-14 18:32:51 +00:00
wslua_proto.c wslua: Drop unused "push_code" macro parameter 2016-06-14 18:32:51 +00:00
wslua_proto_expert.c wslua: Drop unused "push_code" macro parameter 2016-06-14 18:32:51 +00:00
wslua_proto_field.c wslua: Drop unused "push_code" macro parameter 2016-06-14 18:32:51 +00:00
wslua_struct.c wslua: Drop unused "push_code" macro parameter 2016-06-14 18:32:51 +00:00
wslua_tree.c wslua: fail on tree:add(nil) 2016-07-04 16:26:38 +00:00
wslua_tvb.c wslua: Drop unused "push_code" macro parameter 2016-06-14 18:32:51 +00:00
wslua_util.c Clean up modelines and indentation. 2016-02-25 21:34:36 +00:00