no-callback.c 807 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Stub version of the callback.c functions. Doesn't let anyone
  3. * _schedule_ a callback (because that would lead them into the false
  4. * assumption that it would actually happen later on), but permits the
  5. * other functions without error, on the grounds that it's well
  6. * defined what they would do if nobody had scheduled any callbacks.
  7. */
  8. #include "putty.h"
  9. void queue_idempotent_callback(struct IdempotentCallback *ic)
  10. {
  11. unreachable("callbacks are not supported in this application");
  12. }
  13. void delete_callbacks_for_context(void *ctx)
  14. {
  15. }
  16. void queue_toplevel_callback(toplevel_callback_fn_t fn, void *ctx)
  17. {
  18. unreachable("callbacks are not supported in this application");
  19. }
  20. bool run_toplevel_callbacks(void)
  21. {
  22. return false;
  23. }
  24. bool toplevel_callback_pending(void)
  25. {
  26. return false;
  27. }