projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add asynchronous callback capability to the askappend() alert box.
[u/mdw/putty]
/
macosx
/
osxclass.h
diff --git
a/macosx/osxclass.h
b/macosx/osxclass.h
index
76a8fc7
..
2e4d1de
100644
(file)
--- a/
macosx/osxclass.h
+++ b/
macosx/osxclass.h
@@
-27,6
+27,13
@@
extern AppController *controller;
* The SessionWindow class, defined in osxwin.m.
*/
* The SessionWindow class, defined in osxwin.m.
*/
+struct alert_queue {
+ struct alert_queue *next;
+ NSAlert *alert;
+ void (*callback)(void *, int);
+ void *ctx;
+};
+
@class SessionWindow;
@class TerminalView;
@class SessionWindow;
@class TerminalView;
@@
-40,8
+47,14
@@
extern AppController *controller;
void *ldisc;
Backend *back;
void *backhandle;
void *ldisc;
Backend *back;
void *backhandle;
+ /*
+ * The following two members relate to the currently active
+ * alert sheet, if any. They are NULL if there isn't one.
+ */
void (*alert_callback)(void *, int);
void *alert_ctx;
void (*alert_callback)(void *, int);
void *alert_ctx;
+ /* This queues future alerts that need to be shown. */
+ struct alert_queue *alert_qhead, *alert_qtail;
}
- (id)initWithConfig:(Config)cfg;
- (void)drawStartFinish:(BOOL)start;
}
- (id)initWithConfig:(Config)cfg;
- (void)drawStartFinish:(BOOL)start;