~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Oops - check in leftovers from yesterday's development. That's what
[sgt/putty]
/
putty.h
diff --git
a/putty.h
b/putty.h
index
e7bb859
..
9d00154
100644
(file)
--- a/
putty.h
+++ b/
putty.h
@@
-17,6
+17,7
@@
#endif
typedef struct config_tag Config;
#endif
typedef struct config_tag Config;
+typedef struct backend_tag Backend;
#include "puttyps.h"
#include "network.h"
#include "puttyps.h"
#include "network.h"
@@
-98,8
+99,6
@@
typedef struct config_tag Config;
#define ATTR_CUR_AND (~(ATTR_BOLD|ATTR_REVERSE|ATTR_BLINK|ATTR_COLOURS))
#define ATTR_CUR_XOR 0x00BA0000UL
#define ATTR_CUR_AND (~(ATTR_BOLD|ATTR_REVERSE|ATTR_BLINK|ATTR_COLOURS))
#define ATTR_CUR_XOR 0x00BA0000UL
-#define SEL_NL { 13, 10 }
-
GLOBAL int rows, cols, savelines;
GLOBAL int has_focus;
GLOBAL int rows, cols, savelines;
GLOBAL int has_focus;
@@
-121,6
+120,9
@@
GLOBAL int big_cursor;
GLOBAL char *help_path;
GLOBAL int help_has_contents;
GLOBAL char *help_path;
GLOBAL int help_has_contents;
+GLOBAL int nsessions;
+GLOBAL char **sessions;
+
GLOBAL int utf;
GLOBAL int dbcs_screenfont;
GLOBAL int font_codepage;
GLOBAL int utf;
GLOBAL int dbcs_screenfont;
GLOBAL int font_codepage;
@@
-199,7
+201,7
@@
enum {
COE_ALWAYS /* Always close the window */
};
COE_ALWAYS /* Always close the window */
};
-
typedef struct
{
+
struct backend_tag
{
char *(*init) (char *host, int port, char **realhost, int nodelay);
/* back->send() returns the current amount of buffered data. */
int (*send) (char *buf, int len);
char *(*init) (char *host, int port, char **realhost, int nodelay);
/* back->send() returns the current amount of buffered data. */
int (*send) (char *buf, int len);
@@
-217,7
+219,7
@@
typedef struct {
*/
void (*unthrottle) (int);
int default_port;
*/
void (*unthrottle) (int);
int default_port;
-}
Backend
;
+};
GLOBAL Backend *back;
GLOBAL Backend *back;
@@
-367,6
+369,11
@@
struct config_tag {
} sshbug_ignore1, sshbug_plainpw1, sshbug_rsa1,
sshbug_hmac2, sshbug_derivekey2, sshbug_rsapad2,
sshbug_dhgex2;
} sshbug_ignore1, sshbug_plainpw1, sshbug_rsa1,
sshbug_hmac2, sshbug_derivekey2, sshbug_rsapad2,
sshbug_dhgex2;
+ /* Options for pterm. Should split out into platform-dependent part. */
+ int stamp_utmp;
+ int login_shell;
+ int scrollbar_on_left;
+ char boldfont[64];
};
/*
};
/*
@@
-427,9
+434,11
@@
void set_raw_mouse_mode(int);
Mouse_Button translate_button(Mouse_Button b);
void connection_fatal(char *, ...);
void fatalbox(char *, ...);
Mouse_Button translate_button(Mouse_Button b);
void connection_fatal(char *, ...);
void fatalbox(char *, ...);
+void modalfatalbox(char *, ...);
void beep(int);
void begin_session(void);
void sys_cursor(int x, int y);
void beep(int);
void begin_session(void);
void sys_cursor(int x, int y);
+void request_paste(void);
#define OPTIMISE_IS_SCROLL 1
void set_iconic(int iconic);
#define OPTIMISE_IS_SCROLL 1
void set_iconic(int iconic);
@@
-460,6
+469,8
@@
void random_destroy_seed(void);
void save_settings(char *section, int do_host, Config * cfg);
void load_settings(char *section, int do_host, Config * cfg);
void get_sesslist(int allocate);
void save_settings(char *section, int do_host, Config * cfg);
void load_settings(char *section, int do_host, Config * cfg);
void get_sesslist(int allocate);
+void do_defaults(char *, Config *);
+void registry_cleanup(void);
/*
* Exports from terminal.c.
/*
* Exports from terminal.c.
@@
-478,6
+489,7
@@
void term_update(void);
void term_invalidate(void);
void term_blink(int set_cursor);
void term_do_paste(void);
void term_invalidate(void);
void term_blink(int set_cursor);
void term_do_paste(void);
+int term_paste_pending(void);
void term_paste(void);
void term_nopaste(void);
int term_ldisc(int option);
void term_paste(void);
void term_nopaste(void);
int term_ldisc(int option);
@@
-589,6
+601,15
@@
int wc_match(const char *wildcard, const char *target);
int wc_unescape(char *output, const char *wildcard);
/*
int wc_unescape(char *output, const char *wildcard);
/*
+ * Exports from windlg.c
+ */
+void logevent(char *);
+void verify_ssh_host_key(char *host, int port, char *keytype,
+ char *keystr, char *fingerprint);
+void askcipher(char *ciphername, int cs);
+int askappend(char *filename);
+
+/*
* Exports from console.c (that aren't equivalents to things in
* windlg.c).
*/
* Exports from console.c (that aren't equivalents to things in
* windlg.c).
*/