aboutsummaryrefslogtreecommitdiffstats
path: root/ui/software_update.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2016-12-13 10:33:02 -0800
committerAnders Broman <a.broman58@gmail.com>2016-12-20 14:18:14 +0000
commit795f4eb106d877ba6f2bd30524cc871404e9e42a (patch)
tree2ba3df1aa07b2b6f565929f3efef916525c047cc /ui/software_update.h
parent0de990e022a74aab7b6b1c9bf35849a035327b92 (diff)
Qt+Win32: Make software updates more friendly.
Add WinSparkle can_shutdown and shutdown_request callbacks which are called prior to running the installer. Reject updates when we have unsaved information. Add notes about possible improvements. Ping-Bug: 9687 Ping-Bug: 12989 Change-Id: Ia126244b311417aa3105ea8136f186adc2745445 Reviewed-on: https://code.wireshark.org/review/19244 Reviewed-by: Gerald Combs <gerald@wireshark.org> Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/software_update.h')
-rw-r--r--ui/software_update.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/ui/software_update.h b/ui/software_update.h
index b3e593b89c..a7ba154960 100644
--- a/ui/software_update.h
+++ b/ui/software_update.h
@@ -45,6 +45,19 @@ extern void software_update_check(void);
*/
extern void software_update_cleanup(void);
+/** Check to see if Wireshark can shut down safely (e.g. offer to save the
+ * current capture). Called from a separate thread.
+ *
+ * Does nothing on platforms that don't support software updates.
+ */
+extern int software_update_can_shutdown_callback(void);
+
+/** Shut down Wireshark in preparation for an upgrade. Called from a separate
+ * thread.
+ *
+ * Does nothing on platforms that don't support software updates.
+ */
+extern void software_update_shutdown_request_callback(void);
#ifdef __cplusplus
}