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
51{
52
53 SparkleBridge() {}
54
55public:
56
76 static void updateInit(const char *url, bool enabled, int interval);
77
85 static void updateCheck();
86
97 static void setUpdateCallbacks(
99 sparkle_postpone_relaunch_callback_t postpone_relaunch_cb,
100 sparkle_will_relaunch_callback_t will_relaunch_cb);
101
102};
103
104#endif // SPARKLE_BRIDGE_H
Definition sparkle_bridge.h:51
static void updateCheck()
Definition sparkle_bridge.mm:272
static void updateInit(const char *url, bool enabled, int interval)
Definition sparkle_bridge.mm:250
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:282
void(* sparkle_update_attention_callback_t)(void)
Definition sparkle_bridge.h:39