Kerberos: add kerberos_inject_longterm_key() helper function
[wireshark-sm.git] / ui / software_update.h
blob49568a9c3c46592437dee9c41ce3e9057f1e89f0
1 /** @file
3 * Wrappers and routines to check for software updates.
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * SPDX-License-Identifier: GPL-2.0-or-later
12 #ifndef __SOFTWARE_UPDATE_H__
13 #define __SOFTWARE_UPDATE_H__
15 /** @file
16 * Automatic update routines.
18 * Routines that integrate with WinSparkle on Windows and Sparkle on
19 * macOS.
20 * @ingroup main_ui_group
23 #ifdef __cplusplus
24 extern "C" {
25 #endif /* __cplusplus */
27 /** Initialize software updates.
29 * Does nothing on platforms that don't support software updates.
31 extern void software_update_init(void);
33 /** Force a software update check.
35 * Does nothing on platforms that don't support software updates.
37 extern void software_update_check(void);
39 /** Clean up software update checking.
41 * Does nothing on platforms that don't support software updates.
43 extern void software_update_cleanup(void);
45 /** Fetch a description of the software update mechanism.
47 * @return NULL, "Sparkle", or "WinSparkle".
49 extern const char *software_update_info(void);
51 #ifdef _WIN32
52 /** Check to see if Wireshark can shut down safely (e.g. offer to save the
53 * current capture). Called from a separate thread.
55 * Does nothing on platforms that don't support software updates.
57 extern int software_update_can_shutdown_callback(void);
59 /** Shut down Wireshark in preparation for an upgrade. Called from a separate
60 * thread.
62 * Does nothing on platforms that don't support software updates.
64 extern void software_update_shutdown_request_callback(void);
65 #endif
67 #ifdef __cplusplus
69 #endif /* __cplusplus */
71 #endif /* __SOFTWARE_UPDATE_H__ */