mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
68d89b0e69
These are all going to be used by a test program I have in the works, which will need to link against a lot more of the code base than any so far. So we need a pile of new stubs. The trickiest of these was stubs/no-network.c, which had to conditionally define a couple of extra network functions, because there are Windows-specific plug_closing_system_error and plug_closing_winsock_error functions.
34 lines
807 B
C
34 lines
807 B
C
/*
|
|
* Stub version of the callback.c functions. Doesn't let anyone
|
|
* _schedule_ a callback (because that would lead them into the false
|
|
* assumption that it would actually happen later on), but permits the
|
|
* other functions without error, on the grounds that it's well
|
|
* defined what they would do if nobody had scheduled any callbacks.
|
|
*/
|
|
|
|
#include "putty.h"
|
|
|
|
void queue_idempotent_callback(struct IdempotentCallback *ic)
|
|
{
|
|
unreachable("callbacks are not supported in this application");
|
|
}
|
|
|
|
void delete_callbacks_for_context(void *ctx)
|
|
{
|
|
}
|
|
|
|
void queue_toplevel_callback(toplevel_callback_fn_t fn, void *ctx)
|
|
{
|
|
unreachable("callbacks are not supported in this application");
|
|
}
|
|
|
|
bool run_toplevel_callbacks(void)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool toplevel_callback_pending(void)
|
|
{
|
|
return false;
|
|
}
|