diff options
author | Luis Ontanon <luis.ontanon@gmail.com> | 2006-10-03 14:27:45 +0000 |
---|---|---|
committer | Luis Ontanon <luis.ontanon@gmail.com> | 2006-10-03 14:27:45 +0000 |
commit | e23201c62a65bbac178b27ffb4d067c3de109301 (patch) | |
tree | 12ce7c6d55d40c055745c1cf6ca1933883d39f71 /epan/wslua/wslua_gui.c | |
parent | 3474ea868c8822f54eecd736a8abadbf2203e60d (diff) |
- Make sure that the registration files are created whenever there's a change
- get rid of 5.0.2 stuff
- add the apply_filter() API
svn path=/trunk/; revision=19406
Diffstat (limited to 'epan/wslua/wslua_gui.c')
-rw-r--r-- | epan/wslua/wslua_gui.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/epan/wslua/wslua_gui.c b/epan/wslua/wslua_gui.c index 0db396b313..e5586ac73d 100644 --- a/epan/wslua/wslua_gui.c +++ b/epan/wslua/wslua_gui.c @@ -572,3 +572,25 @@ WSLUA_FUNCTION wslua_set_filter(lua_State* L) { /* set the main filter text */ return 0; } +WSLUA_FUNCTION wslua_apply_filter(lua_State* L) { /* apply the filter in the main filter box */ + if (!ops->apply_filter) { + WSLUA_ERROR(wslua_set_filter, "does not work on TShark"); + } + + ops->apply_filter(); + + return 0; +} + + +WSLUA_FUNCTION wslua_reload(lua_State* L) { /* set the main filter text */ +#define WSLUA_ARG_set_filter_TEXT 1 /* The filter's text. */ + + if (!ops->reload) { + WSLUA_ERROR(wslua_reload, "does not work on TShark"); + } + + ops->reload(); + + return 0; +} |