diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2015-08-11 14:08:08 +0200 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2015-08-11 12:09:07 +0000 |
commit | ecc4f756bdb6175cc0b3b11af2f90884db1c602c (patch) | |
tree | 99d8ca48a72752e1257d4b8b321f41d1767ee020 /ui/qt/main_window.h | |
parent | 70d06deb2e31bd605e672200a7755764febe94ae (diff) |
Added Reload Lua plugins.
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>
Diffstat (limited to 'ui/qt/main_window.h')
-rw-r--r-- | ui/qt/main_window.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/qt/main_window.h b/ui/qt/main_window.h index c61bc66500..49e9a90cde 100644 --- a/ui/qt/main_window.h +++ b/ui/qt/main_window.h @@ -192,6 +192,9 @@ private: void recursiveCopyProtoTreeItems(QTreeWidgetItem *item, QString &clip, int ident_level); void captureFileReadStarted(const QString &action); + void addMenuActions(QList<QAction *> &actions, int menu_group); + void removeMenuActions(QList<QAction *> &actions, int menu_group); + signals: void showProgress(struct progdlg **dlg_p, bool animate, const QString message, bool terminate_is_stop, bool *stop_flag, float pct); void setCaptureFile(capture_file *cf); @@ -264,6 +267,7 @@ private slots: void showPreferenceEditor(); // module_t *, pref * void addStatsPluginsToMenu(); void addDynamicMenus(); + void reloadDynamicMenus(); void addExternalMenus(); void startInterfaceCapture(bool valid); @@ -418,6 +422,9 @@ private slots: void on_actionAnalyzeEnabledProtocols_triggered(); void on_actionAnalyzeDecodeAs_triggered(); +#ifdef HAVE_LUA + void on_actionAnalyzeReloadLuaPlugins_triggered(); +#endif void openFollowStreamDialog(follow_type_t type); void on_actionAnalyzeFollowTCPStream_triggered(); |