aboutsummaryrefslogtreecommitdiffstats
path: root/ui/software_update.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2020-02-13 15:18:14 -0800
committerAnders Broman <a.broman58@gmail.com>2020-02-15 11:13:25 +0000
commitd7bbe384f51b99b03694db811f48cf5a098ad65c (patch)
treef48a399d76c2badef1319228fda10928fb7d5b1e /ui/software_update.h
parent7247b98d45d906b297b3f307c26ff9bd322ad51d (diff)
Test+Qt: Add an automatic update check.
Add software_update_info() to the software update module, which returns the name of our update library if we have one. Use it to add automatic update information to the compiled information in `wireshark --version`. Add a "release" test suite, which contains a test for automatic updates. Ping-Bug: 16381 Change-Id: I867a96bdcfde8be541eca2dc0e84b5000276e7dd Reviewed-on: https://code.wireshark.org/review/36107 Reviewed-by: Gerald Combs <gerald@wireshark.org> Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/software_update.h')
-rw-r--r--ui/software_update.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/software_update.h b/ui/software_update.h
index b764c5b5b4..a5a72b3939 100644
--- a/ui/software_update.h
+++ b/ui/software_update.h
@@ -41,6 +41,12 @@ extern void software_update_check(void);
*/
extern void software_update_cleanup(void);
+/** Fetch a description of the software update mechanism.
+ *
+ * @return NULL, "Sparkle", or "WinSparkle".
+ */
+extern const char *software_update_info(void);
+
#ifdef _WIN32
/** Check to see if Wireshark can shut down safely (e.g. offer to save the
* current capture). Called from a separate thread.