38 lines
1.3 KiB
C
38 lines
1.3 KiB
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
enum gw_source_account_cancel_result {
|
|
GW_SOURCE_CANCEL_ACCEPTED = 0,
|
|
GW_SOURCE_CANCEL_INVALID_GENERATION = -1,
|
|
GW_SOURCE_CANCEL_NOT_CURRENT = -2,
|
|
GW_SOURCE_CANCEL_PAST_SELECTION = -3
|
|
};
|
|
|
|
/* Typed callback for a project host that owns the Source worker. Its adapter
|
|
* must acquire the same ownership lock as generation publication/retirement.
|
|
* This callback type does not register Lua or change an engine entry point.
|
|
* A positive generation must be the exact ID of an already-started Source
|
|
* attempt. Accepts active authentication or an unselected realm list only.
|
|
* Zero acknowledges the cancellation request, not completed teardown. Keep
|
|
* submission blocked until that same generation reports closed/failed.
|
|
* Refusal leaves the current attempt and every newer generation untouched.
|
|
* Invoke outside a borrowed Source call: the adapter acquires its own lock.
|
|
*/
|
|
typedef int32_t (*gw_source_account_cancel_fn)(uint32_t expected_generation);
|
|
|
|
/* Additive ordinary Wire ABI. No credentials or engine objects cross it. */
|
|
#if defined(_WIN32)
|
|
__declspec(dllexport) int32_t __stdcall gw_wire_account_ui_cancel_generation(uint32_t expected_generation);
|
|
#else
|
|
int32_t gw_wire_account_ui_cancel_generation(uint32_t expected_generation);
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|