| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
sparkle_bridge.h
Go to the documentation of this file.
1
26
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
39 typedef void (*sparkle_update_attention_callback_t)(void);
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.
44 typedef 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.
48 typedef void (*sparkle_will_relaunch_callback_t)(void);
49
53 class SparkleBridge
54{
58 SparkleBridge() {}
59
60 public:
61
81 static void updateInit(const char *url, bool enabled, int interval);
82
90 static void updateCheck();
91
102 static void setUpdateCallbacks(
103 sparkle_update_attention_callback_t attention_cb,
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
SparkleBridge::updateCheck
static void updateCheck()
Definition sparkle_bridge.mm:280
SparkleBridge::updateInit
static void updateInit(const char *url, bool enabled, int interval)
Definition sparkle_bridge.mm:258
SparkleBridge::setUpdateCallbacks
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
sparkle_update_attention_callback_t
void(* sparkle_update_attention_callback_t)(void)
Definition sparkle_bridge.h:39