idlec.h.unused
1.35 KB
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
34
35
36
37
38
39
40
41
42
43
/*
* Copyright 2002, 2003 by Paul Mattes.
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose and without fee is hereby granted,
* provided that the above copyright notice appear in all copies and that
* both that copyright notice and this permission notice appear in
* supporting documentation.
*
* x3270, c3270, s3270 and tcl3270 are distributed in the hope that they will
* be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the file LICENSE
* for more details.
*/
/*
* idlec.h
* Global declarations for idle.c.
*/
enum idle_enum {
IDLE_DISABLED = 0,
IDLE_SESSION = 1,
IDLE_PERM = 2
};
#if defined(X3270_SCRIPT) /*[*/
LIB3270_INTERNAL void cancel_idle_timer(void);
LIB3270_INTERNAL void idle_init(void);
LIB3270_INTERNAL void reset_idle_timer(void);
LIB3270_INTERNAL char *get_idle_command();
LIB3270_INTERNAL char *get_idle_timeout();
LIB3270_INTERNAL Boolean idle_changed;
LIB3270_INTERNAL char *idle_command;
LIB3270_INTERNAL char *idle_timeout_string;
LIB3270_INTERNAL enum idle_enum idle_user_enabled;
#if defined(X3270_DISPLAY) && defined(X3270_MENUS) /*[*/
LIB3270_INTERNAL void popup_idle(void);
#endif /*]*/
#else /*][*/
#define cancel_idle_timer()
#define idle_init()
#define reset_idle_timer()
#endif /*]*/