diff options
author | Hadriel Kaplan <hadrielk@yahoo.com> | 2014-03-20 17:56:21 -0400 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2014-03-22 08:06:47 +0000 |
commit | 66719c9b6a17f15848f4e7151b0f6cbf9d37f9ed (patch) | |
tree | ea028a6604dafbae2c94e14b515a728324237b3b /capture_win_ifnames.c | |
parent | 296bc0b2a9374bb4102fcec4fd0106421aa5e34a (diff) |
Add way for Lua file reader to save state per file read/write ops
Lua can create a file reader/writer, to open new capture file
formats or write to new ones. To save local state, it can save
things in Lua itself; but since there can be multiple open files
at the same time (for example during a reload), the Lua script
won't know for which file and state its read/write functions are
being invoked for. To remedy this, and also provide a convenient
way to store such state, this commit adds the ability for a Lua
script to store a Lua table in the wtap/wtap_dumper's priv
data member, just like C-code-based reader/writers do.
Change-Id: Ifc9e0d5f0379accee56f2a04b6080238670fec52
Reviewed-on: https://code.wireshark.org/review/766
Reviewed-by: Hadriel Kaplan <hadrielk@yahoo.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'capture_win_ifnames.c')
0 files changed, 0 insertions, 0 deletions