aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wslua/init_wslua.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2013-09-08 19:32:10 +0000
committerMichael Mann <mmann78@netscape.net>2013-09-08 19:32:10 +0000
commit1b009df7495d3bd20aa09d7691855d927d96a87d (patch)
treeecb30deac855b55596994b9eb32490c9dc91ad90 /epan/wslua/init_wslua.c
parentfb75b6867e2181095ad023e09cafa72ab706a94c (diff)
Couldn't quite figure out how to make the expert items in proto.c and the LUA API filterable (suggestions welcome!), but I wanted to start forcing dissectors to use the filterable expert API (nothing like compile errors to force change!). I created expert_add_info_format_internal (original expert_add_info_format) and used it as a placeholder for proto.c/LUA API until a solution is created. The "new" expert_add_info_format will be the "old" expert_add_info_format_text, and I'll slowly do the search/replace.
For those with dissectors outside the source tree, please see tools/convert_expert_add_info_format.pl for help with the conversion. Please do not use expert_add_info_format_internal, as it's support time will be very short lived. svn path=/trunk/; revision=51844
Diffstat (limited to 'epan/wslua/init_wslua.c')
-rw-r--r--epan/wslua/init_wslua.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/wslua/init_wslua.c b/epan/wslua/init_wslua.c
index 5c43c158ff..d773658422 100644
--- a/epan/wslua/init_wslua.c
+++ b/epan/wslua/init_wslua.c
@@ -99,7 +99,7 @@ int dissect_lua(tvbuff_t* tvb, packet_info* pinfo, proto_tree* tree, void* data
const gchar* error = lua_tostring(L,-1);
proto_item* pi = proto_tree_add_text(tree,tvb,0,0,"Lua Error: %s",error);
- expert_add_info_format(pinfo, pi, PI_UNDECODED, PI_ERROR ,"Lua Error");
+ expert_add_info_format_internal(pinfo, pi, PI_UNDECODED, PI_ERROR ,"Lua Error");
} else {
/* if the Lua dissector reported the consumed bytes, pass it to our caller */
@@ -114,7 +114,7 @@ int dissect_lua(tvbuff_t* tvb, packet_info* pinfo, proto_tree* tree, void* data
proto_item* pi = proto_tree_add_text(tree,tvb,0,0,"Lua Error: did not find the %s dissector"
" in the dissectors table",pinfo->current_proto);
- expert_add_info_format(pinfo, pi, PI_UNDECODED, PI_ERROR ,"Lua Error");
+ expert_add_info_format_internal(pinfo, pi, PI_UNDECODED, PI_ERROR ,"Lua Error");
}
register_frame_end_routine(pinfo, lua_frame_end);