summaryrefslogtreecommitdiffstats
path: root/ax25io.h
diff options
context:
space:
mode:
authorCraig Small <csmall@enc.com.au>2003-02-21 10:34:43 +0000
committerCraig Small <csmall@enc.com.au>2003-02-21 10:34:43 +0000
commit4db04ea52017af4685a2ba8259fc94acd0a2ecfa (patch)
tree4433d6541e620c1fd43e034bbae6589390272dec /ax25io.h
parent9ebab933bdf67fb9bf87e5bd853417b20f416290 (diff)
put in Tomi and Jereons patches for axio blocking
Diffstat (limited to 'ax25io.h')
-rw-r--r--ax25io.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/ax25io.h b/ax25io.h
index 5a97b65..b699bcd 100644
--- a/ax25io.h
+++ b/ax25io.h
@@ -33,6 +33,8 @@ typedef struct ax25io_s {
int paclen; /* paclen */
unsigned char ibuf[AXBUFLEN]; /* input buffer */
unsigned char obuf[AXBUFLEN]; /* output buffer */
+ unsigned char gbuf[AXBUFLEN]; /* getline buffer */
+ int gbuf_usage; /* getline buffer usage */
int iptr; /* input pointer */
int optr; /* output pointer */
void *zptr; /* pointer to the compression struct */
@@ -73,13 +75,13 @@ extern int axio_getc(ax25io *);
extern int axio_putc(int, ax25io *);
extern char *axio_getline(ax25io *);
-extern char *axio_gets(char *, int, ax25io *);
+extern int axio_gets(char *, int, ax25io *);
extern int axio_puts(const char *, ax25io *);
extern int axio_printf(ax25io *, const char *, ...);
-extern void axio_tn_do_linemode(ax25io *);
-extern void axio_tn_will_echo(ax25io *);
-extern void axio_tn_wont_echo(ax25io *);
+extern int axio_tn_do_linemode(ax25io *);
+extern int axio_tn_will_echo(ax25io *);
+extern int axio_tn_wont_echo(ax25io *);
-#endif _AX25IO_H
+#endif /* _AX25IO_H */