Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
sparkle_bridge.h
Go to the documentation of this file.
1
27// XXX We could alternatively do this via C++:
28// https://github.com/sparkle-project/Sparkle/issues/1137
29
30
31#ifndef SPARKLE_BRIDGE_H
32#define SPARKLE_BRIDGE_H
33
40
41// Callback invoked when Sparkle wants to relaunch for an update.
42// The application should save all documents and perform cleanup.
43// Call the provided proceed function pointer when ready.
44typedef void (*sparkle_postpone_relaunch_callback_t)(void (*proceed)(void *ctx), void *ctx);
45
46// Callback invoked right before the application is relaunched.
47// Last-chance notification — cannot be vetoed.
48typedef void (*sparkle_will_relaunch_callback_t)(void);
49
54{
58 SparkleBridge() {}
59
60public:
61
81 static void updateInit(const char *url, bool enabled, int interval);
82
90 static void updateCheck();
91
102 static void setUpdateCallbacks(
104 sparkle_postpone_relaunch_callback_t postpone_relaunch_cb,
105 sparkle_will_relaunch_callback_t will_relaunch_cb);
106
107};
108
109#endif // SPARKLE_BRIDGE_H
C++ wrapper for the Sparkle update framework.
Definition sparkle_bridge.h:54
static void updateCheck()
Definition sparkle_bridge.mm:280
static void updateInit(const char *url, bool enabled, int interval)
Definition sparkle_bridge.mm:258
static void setUpdateCallbacks(sparkle_update_attention_callback_t attention_cb, sparkle_postpone_relaunch_callback_t postpone_relaunch_cb, sparkle_will_relaunch_callback_t will_relaunch_cb)
Definition sparkle_bridge.mm:290
void(* sparkle_update_attention_callback_t)(void)
Definition sparkle_bridge.h:39