diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2011-10-18 17:46:00 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2011-10-18 17:46:00 +0000 |
commit | 82e0b650388aa4f89c4fc371eab057b278b59f92 (patch) | |
tree | 1e4c56840b5168eaee0ac033059ea671f00f79a4 /epan/dtd_parse.h | |
parent | cc4fe5789b6f294df614afafb6c265e3171370ee (diff) |
Added a private hash table to transport string values between dissectors.
This works between C and Lua.
In C the pinfo.private_table pointer must be initialized using
g_hash_table_new (g_str_hash, g_str_equal);
In Lua the values are available using pinfo.private.<key>, and the
table is created automatically on first usage. It's possible to use
this datatypes: nil, boolean, number and string, but every value
is converted to string so numbers must be converted using tonumber()
on usage. Boolean is either nil or an empty string.
svn path=/trunk/; revision=39461
Diffstat (limited to 'epan/dtd_parse.h')
0 files changed, 0 insertions, 0 deletions