summaryrefslogtreecommitdiff
path: root/epan/wslua
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2016-07-29 15:00:56 +0100
committerJoão Valverde <j@v6e.pt>2016-08-05 13:59:25 +0000
commit917d34c4dee4556df348944d250814b7c3ab5db3 (patch)
tree24be748838e1f09119d4607d1833197014eefc88 /epan/wslua
parentbe16ff5f12eab61f753e6b9e2463691b7c0e97c7 (diff)
downloadwireshark-917d34c4dee4556df348944d250814b7c3ab5db3.tar.gz
Add PI_DEPRECATED expert info group
Change-Id: Ibc43b1976d5827e8c40252a5200852fbcd00b70c Reviewed-on: https://code.wireshark.org/review/16763 Petri-Dish: João Valverde <j@v6e.pt> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net> Reviewed-by: João Valverde <j@v6e.pt>
Diffstat (limited to 'epan/wslua')
-rw-r--r--epan/wslua/init_wslua.c12
-rw-r--r--epan/wslua/wslua_proto_expert.c1
2 files changed, 13 insertions, 0 deletions
diff --git a/epan/wslua/init_wslua.c b/epan/wslua/init_wslua.c
index dd57474377..2415bffc7e 100644
--- a/epan/wslua/init_wslua.c
+++ b/epan/wslua/init_wslua.c
@@ -129,6 +129,12 @@ static expert_field ei_lua_proto_comments_note = EI_INIT;
static expert_field ei_lua_proto_comments_warn = EI_INIT;
static expert_field ei_lua_proto_comments_error = EI_INIT;
+static expert_field ei_lua_proto_deprecated_comment = EI_INIT;
+static expert_field ei_lua_proto_deprecated_chat = EI_INIT;
+static expert_field ei_lua_proto_deprecated_note = EI_INIT;
+static expert_field ei_lua_proto_deprecated_warn = EI_INIT;
+static expert_field ei_lua_proto_deprecated_error = EI_INIT;
+
dissector_handle_t lua_data_handle;
static gboolean
@@ -821,6 +827,12 @@ void wslua_init(register_cb cb, gpointer client_data) {
{ &ei_lua_proto_comments_warn, { "_ws.lua.proto.warning", PI_COMMENTS_GROUP, PI_WARN ,"Protocol Warning", EXPFILL }},
{ &ei_lua_proto_comments_error, { "_ws.lua.proto.error", PI_COMMENTS_GROUP, PI_ERROR ,"Protocol Error", EXPFILL }},
+ { &ei_lua_proto_deprecated_comment, { "_ws.lua.proto.comment", PI_DEPRECATED, PI_COMMENT ,"Protocol Comment", EXPFILL }},
+ { &ei_lua_proto_deprecated_chat, { "_ws.lua.proto.chat", PI_DEPRECATED, PI_CHAT ,"Protocol Chat", EXPFILL }},
+ { &ei_lua_proto_deprecated_note, { "_ws.lua.proto.note", PI_DEPRECATED, PI_NOTE ,"Protocol Note", EXPFILL }},
+ { &ei_lua_proto_deprecated_warn, { "_ws.lua.proto.warning", PI_DEPRECATED, PI_WARN ,"Protocol Warning", EXPFILL }},
+ { &ei_lua_proto_deprecated_error, { "_ws.lua.proto.error", PI_DEPRECATED, PI_ERROR ,"Protocol Error", EXPFILL }},
+
/* this one is for reporting errors executing Lua code */
{ &ei_lua_error, { "_ws.lua.error", PI_UNDECODED, PI_ERROR ,"Lua Error", EXPFILL }},
};
diff --git a/epan/wslua/wslua_proto_expert.c b/epan/wslua/wslua_proto_expert.c
index 07ea90251d..feac031c4d 100644
--- a/epan/wslua/wslua_proto_expert.c
+++ b/epan/wslua/wslua_proto_expert.c
@@ -95,6 +95,7 @@ WSLUA_CONSTRUCTOR ProtoExpert_new(lua_State* L) {
case PI_SECURITY:
case PI_COMMENTS_GROUP:
case PI_DECRYPTION:
+ case PI_DEPRECATED:
break;
default:
luaL_argerror(L, WSLUA_ARG_ProtoExpert_new_GROUP, "Group must be one of expert.group.*");