diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2013-09-07 11:27:38 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2013-09-07 11:27:38 +0000 |
commit | 7d3d67407cd4b57cac6f6253a41ced5215c97207 (patch) | |
tree | faf6608b328397db69e2780c8022ad6d8feec646 /epan/wslua/wslua.h | |
parent | a8638eec90bace9997e084bf4ab15f0485ac1106 (diff) |
Added support for a "prefs_change" function in Lua scripts, which is called
when the preferences for the dissector are changed.
This is not a 100% correct implementation at the time because the
prefs_changed function in all Lua plugins will be called whenever
a preference in a single Lua plugin is changed.
svn path=/trunk/; revision=51818
Diffstat (limited to 'epan/wslua/wslua.h')
-rw-r--r-- | epan/wslua/wslua.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/wslua/wslua.h b/epan/wslua/wslua.h index 0c1870e16f..3e99904b32 100644 --- a/epan/wslua/wslua.h +++ b/epan/wslua/wslua.h @@ -63,6 +63,7 @@ */ #define WSLUA_INIT_ROUTINES "init_routines" +#define WSLUA_PREFS_CHANGED "prefs_changed" #define LOG_DOMAIN_LUA "wslua" struct _wslua_tvb { @@ -433,7 +434,7 @@ extern gboolean wslua_optbool(lua_State* L, int n, gboolean def); extern const gchar* lua_shiftstring(lua_State* L,int idx); extern void wslua_setfuncs(lua_State *L, const luaL_Reg *l, int nup); extern int dissect_lua(tvbuff_t* tvb, packet_info* pinfo, proto_tree* tree, void* data); - +extern void wslua_prefs_changed(void); extern void proto_register_lua(void); extern GString* lua_register_all_taps(void); extern void wslua_prime_dfilter(epan_dissect_t *edt); |