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 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129
|
/*
* Copyright (c) 1995-2009, Paul Mattes.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the names of Paul Mattes nor the names of his contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY PAUL MATTES "AS IS" AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
* EVENT SHALL PAUL MATTES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*
* macrosc.h
* Global declarations for macros.c.
*/
/* macro definition */
struct macro_def {
char *name;
char **parents;
char *action;
struct macro_def *next;
};
extern struct macro_def *macro_defs;
extern Boolean macro_output;
extern void abort_script(void);
extern void Abort_action(Widget w, XEvent *event, String *params,
Cardinal *num_params);
extern void AnsiText_action(Widget w, XEvent *event, String *params,
Cardinal *num_params);
extern void AsciiField_action(Widget w, XEvent *event, String *params,
Cardinal *num_params);
extern void Ascii_action(Widget w, XEvent *event, String *params,
Cardinal *num_params);
#if defined(X3270_SCRIPT) /*[*/
extern void cancel_if_idle_command(void);
#else /*][*/
#define cancel_if_idle_command()
#endif /*]*/
extern void Bell_action(Widget w, XEvent *event, String *params,
Cardinal *num_params);
extern void CloseScript_action(Widget w, XEvent *event, String *params,
Cardinal *num_params);
extern void ContinueScript_action(Widget w, XEvent *event, String *params,
Cardinal *num_params);
extern void EbcdicField_action(Widget w, XEvent *event, String *params,
Cardinal *num_params);
extern void Ebcdic_action(Widget w, XEvent *event, String *params,
Cardinal *num_params);
extern void Execute_action(Widget w, XEvent *event, String *params,
Cardinal *num_params);
extern void execute_action_option(Widget w, XtPointer client_data,
XtPointer call_data);
extern void Expect_action(Widget w, XEvent *event, String *params,
Cardinal *num_params);
#if defined(X3270_SCRIPT) && defined(X3270_PLUGIN) /*[*/
extern void plugin_aid(unsigned char aid);
#else /*][*/
#define plugin_aid(a)
#endif /*]*/
#if defined(X3270_SCRIPT) /*[*/
extern void Plugin_action(Widget w, XEvent *event, String *params,
Cardinal *num_params);
#endif /*]*/
extern void login_macro(char *s);
extern void macros_init(void);
extern void Macro_action(Widget w, XEvent *event, String *params,
Cardinal *num_params);
extern void macro_command(struct macro_def *m);
extern void PauseScript_action(Widget w, XEvent *event, String *params,
Cardinal *num_params);
extern void peer_script_init(void);
extern void ps_set(char *s, Boolean is_hex);
extern void Printer_action(Widget w, XEvent *event, String *params,
Cardinal *num_params);
extern void push_command(char *);
extern void push_idle(char *);
extern void push_keymap_action(char *);
extern void push_macro(char *, Boolean);
extern void Query_action(Widget w, XEvent *event, String *params,
Cardinal *num_params);
extern void ReadBuffer_action(Widget w, XEvent *event, String *params,
Cardinal *num_params);
extern void Script_action(Widget w, XEvent *event, String *params,
Cardinal *num_params);
#if defined(X3270_SCRIPT) /*[*/
extern void sms_accumulate_time(struct timeval *, struct timeval *);
#else /*][*/
#define sms_accumulate_time(a, b)
#endif /*]*/
extern Boolean sms_active(void);
extern void sms_connect_wait(void);
extern void sms_continue(void);
extern void sms_error(const char *msg);
extern void sms_host_output(void);
extern void sms_info(const char *fmt, ...) printflike(1, 2);
extern void sms_init(void);
extern Boolean sms_in_macro(void);
extern Boolean sms_redirect(void);
extern void sms_store(unsigned char c);
#if defined(X3270_SCRIPT) || defined(TCL3270) || defined(S3270) /*[*/
extern void Snap_action(Widget w, XEvent *event, String *params,
Cardinal *num_params);
#endif /*]*/
#if defined(TCL3270) /*[*/
extern void Status_action(Widget w, XEvent *event, String *params,
Cardinal *num_params);
#endif /*]*/
extern void Source_action(Widget w, XEvent *event, String *params,
Cardinal *num_params);
extern void Wait_action(Widget w, XEvent *event, String *params,
Cardinal *num_params);
|