Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mRemoteNG/PuTTYNG.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2021-09-14 12:13:28 +0300
committerSimon Tatham <anakin@pobox.com>2021-09-14 13:23:20 +0300
commit9f0e7d291558989cc44f98cf8603d5cf2787ce3a (patch)
tree9cbc0e789209458cb7a834f794106f63ba38741c /ldisc.c
parent2fd2f4715d55b5009620b6c03de2e939712cc249 (diff)
Backends: notify ldisc when sendok becomes true. (NFC)
I've introduced a function ldisc_notify_sendok(), which backends should call on their ldisc (if they have one) when anything changes that might cause backend_sendok() to start returning true. At the moment, the function does nothing. But in future, I'm going to make ldisc start buffering typed-ahead input data not yet sent to the backend, and then the effect of this function will be to trigger flushing all that data into the backend. Backends only have to call this function if sendok was previously false: backends requiring no network connection stage (like pty and serial) can safely return true from sendok, and in that case, they don't also have to immediately call this function.
Diffstat (limited to 'ldisc.c')
-rw-r--r--ldisc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ldisc.c b/ldisc.c
index e5e1449d..8c985f06 100644
--- a/ldisc.c
+++ b/ldisc.c
@@ -139,6 +139,10 @@ void ldisc_echoedit_update(Ldisc *ldisc)
seat_echoedit_update(ldisc->seat, ECHOING, EDITING);
}
+void ldisc_check_sendok(Ldisc *ldisc)
+{
+}
+
void ldisc_send(Ldisc *ldisc, const void *vbuf, int len, bool interactive)
{
const char *buf = (const char *)vbuf;