aboutsummaryrefslogtreecommitdiffstats
path: root/epan/funnel.h
AgeCommit message (Collapse)AuthorFilesLines
2016-01-11Lua: Added reload_lua_pluginsStig Bjørlykke1-1/+2
This makes it possible to trigger reloading Lua plugins from within a Lua plugin. This can be used when having a plugin to update local plugins from a external source. Renamed reload() to reload_packets() to clarify what's reloaded, and added a alias (marked as obsoleted) from reload(). Change-Id: I4e529992af5f651613950329e73718dbda317d2e Reviewed-on: https://code.wireshark.org/review/13024 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
2015-12-11epan: Don't export deregister functionsStig Bjørlykke1-1/+1
Most of the deregister functions are used internally from Lua while reloading plugins. Don't export them for others to use. Change-Id: I919dbfa807f696c38d409ca7206104a0fba1ae65 Reviewed-on: https://code.wireshark.org/review/12508 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
2015-08-11Added Reload Lua plugins.Stig Bjørlykke1-2/+9
This is initial support for reloading Lua plugins without restarting the application. Still todo: - Deregister FileHandlers - Support deregister ProtoField with existing abbrev (same_name_hfinfo) - Add a progress dialog when reloading many plugins - Search for memory leakages in wslua functions Change-Id: I48870d8741251705ca15ffe1068613fcb0cb18c1 Reviewed-on: https://code.wireshark.org/review/5028 Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
2015-07-07Qt: Add initial Lua support.Gerald Combs1-20/+32
Add a FunnelStatistics class, which is the main interface between the Qt UI and the Funnel API. Add FunnelTextDialog, which implements the text_window, ProgDlg, menu, and other routines. Add FunnelStringDialog, which implements dlg_new. We currently only support "Tools" menu items (MENU_TOOLS_UNSORTED, aka REGISTER_TOOLS_GROUP_UNSORTED). Add a disabled placeholder to the "Tools" menu in case we don't load any scripts. Use "struct progdlg" instead of needlessly casting to funnel_progress_window_t. To do: - Add support for MENU_STAT_UNSORTED, MENU_STAT_GENERIC, etc. - Make the firewall config generator a Lua script? - Add FunnelGraphDialog? It seems like it would be useful to make QCustomPlot accessible to Lua scripts. Ping-Bug: 9845 Change-Id: Iefff02e9032ed1853666f7902509ed08b431e7a7 Reviewed-on: https://code.wireshark.org/review/9523 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Gerald Combs <gerald@wireshark.org>
2015-01-18Clean up ftype-conversion and dfilter error message string handling.Guy Harris1-1/+1
Have dfilter_compile() take an additional gchar ** argument, pointing to a gchar * item that, on error, gets set to point to a g_malloc()ed error string. That removes one bit of global state from the display filter parser, and doesn't impose a fixed limit on the error message strings. Have fvalue_from_string() and fvalue_from_unparsed() take a gchar ** argument, pointer to a gchar * item, rather than an error-reporting function, and set the gchar * item to point to a g_malloc()ed error string on an error. Allow either gchar ** argument to be null; if the argument is null, no error message is allocated or provided. Change-Id: Ibd36b8aaa9bf4234aa6efa1e7fb95f7037493b4c Reviewed-on: https://code.wireshark.org/review/6608 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-07-03Rename and move ui/stat_menu.h to epan/stat_groups.h.Guy Harris1-1/+1
The groups are, technically, independent of the notion of a menu, and, if we have mechanisms by which taps that are not only GUI toolkit-independent but independent of the *existence* of a GUI can be registered, they might want to register themselves in a group just in case they're running in a program that has a GUI. Also, this might fix the Debian package build. Change-Id: I29435681e79748fd4f2e0c5ac872cd11f831d172 Reviewed-on: https://code.wireshark.org/review/2830 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-06-30Move stat_menu.h to libui.Guy Harris1-1/+1
Change-Id: I7bed7f7931845bc41035535cc62e1fe17c71047d Reviewed-on: https://code.wireshark.org/review/2726 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-03-04Remove all $Id$ from top of fileAlexis La Goutte1-2/+0
(Using sed : sed -i '/^ \* \$Id\$/,+1 d') Fix manually some typo (in export_object_dicom.c and crc16-plain.c) Change-Id: I4c1ae68d1c4afeace8cb195b53c715cf9e1227a8 Reviewed-on: https://code.wireshark.org/review/497 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2013-03-01Export libwireshark symbols using WS_DLL_PUBLIC defineBalint Reczey1-4/+5
Also remove old WS_VAR_IMPORT define and related Makefile magic everywhere in the project. svn path=/trunk/; revision=47992
2012-09-19Fix up some indentation and trailing white space.Jeff Morriss1-22/+22
svn path=/trunk/; revision=45009
2012-09-15From Niels Widger via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7725Evan Huus1-0/+1
Add get_filter method to Wireshark's Lua interface (to correspond with the already-exposed set_filter method). svn path=/trunk/; revision=44916
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2011-06-27From bug 6057:Stig Bjørlykke1-0/+1
Lua API: add support to temporary color filters (10 color slots) svn path=/trunk/; revision=37801
2009-09-28Only include config.h in C files, to avoid multiple inclusion.Stig Bjørlykke1-4/+0
svn path=/trunk/; revision=30180
2009-03-06Rename a variable ('free') so checkAPIs doesn't incorrectly flag it.Bill Meier1-2/+2
svn path=/trunk/; revision=27627
2008-08-11The forgotten file!Luis Ontanon1-5/+7
svn path=/trunk/; revision=25979
2008-08-05luis.ontanon@gmail.com => luis@ontanon.orgLuis Ontanon1-1/+1
svn path=/trunk/; revision=25937
2007-04-23Add some GCC warnings to the standard set, and add some others to theGuy Harris1-1/+1
--enable-extra-gcc-checks set. If we turn on -pedantic, try turning on -Wno-long-long as well, so that it's not *so* pedantic that it rejects the 64-bit integral data types that we explicitly require. Constify a bunch of stuff, and make some other changes, to get rid of warnings. Clean up some indentation. svn path=/trunk/; revision=21526
2006-12-27+ browser_open_url()Luis Ontanon1-10/+7
+ browser_open_data_file() svn path=/trunk/; revision=20223
2006-10-05have the funnel client passing the destructors for btn data structures to ↵Luis Ontanon1-0/+2
the funnel. Although useless in practice, it is better to implement it this way... the funnel mini gui might be used by other modules in the future. svn path=/trunk/; revision=19440
2006-10-03- Make sure that the registration files are created whenever there's a changeLuis Ontanon1-0/+1
- get rid of 5.0.2 stuff - add the apply_filter() API svn path=/trunk/; revision=19406
2006-10-03more Lua APIs:Luis Ontanon1-0/+4
- set_filter() : sets the main window filter - reload() : reloads the current capture file - copy_to_clipboard() : copies its first arfg to the clipboard - open_capture_file() : opens a capture file for viewing (still broken) svn path=/trunk/; revision=19404
2006-09-27* rename REGISTER_STAT_GROUP_E -> register_stat_group_tLuis Ontanon1-2/+2
* Add a "Tools" menu * allow wslua's register_menu to register menu items into more menus svn path=/trunk/; revision=19338
2006-05-21name changeRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18197
2006-03-30TextWindow:Luis Ontanon1-0/+10
- add buttons - make editable svn path=/trunk/; revision=17773
2006-03-05+ retap_packets()Luis Ontanon1-0/+2
+ complete gtk TextWindow + fix elua_dumper + fix elua_proto svn path=/trunk/; revision=17462
2006-02-11This was missing from last check-inLuis Ontanon1-0/+6
svn path=/trunk/; revision=17254
2006-02-06- fix a leakLuis Ontanon1-0/+2
- register the funnel mini-api ASAP svn path=/trunk/; revision=17189
2006-02-06The simple dialogLuis Ontanon1-9/+9
svn path=/trunk/; revision=17172
2006-02-05* add an option to funnel_register_menu to retap the packets right after ↵Luis Ontanon1-4/+9
been called * add a set_close_cllback function to the textwindow mini-api to set a callback to be called when the window gets closed. * fix few issues regarding the closing of the window svn path=/trunk/; revision=17165
2006-02-05- add a register_menu funnel Luis Ontanon1-11/+3
- remove the field_menu altoghether (It was not what I thought) - move a declaration to the start of a function to allow VC6 to compile svn path=/trunk/; revision=17161
2006-02-04The funneled GUI mini API.Luis Ontanon1-0/+95
A very reduced set of gui ops (by now just a text window) that can be funneled to dissectors (even plugins) via epan. svn path=/trunk/; revision=17149