File: no-callback.c

package info (click to toggle)
putty 0.83-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 13,216 kB
  • sloc: ansic: 148,476; python: 8,466; perl: 1,830; makefile: 128; sh: 117
file content (33 lines) | stat: -rw-r--r-- 807 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
 * 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;
}