Debian Codegraph @

ax25/axgetput/axgetput.h

raw
1 /*
2 * (c) 2002 Thomas Osterried DL9SAU <[email protected]>
3 * License: GPL. See http://www.fsf.org/
4 * Sources: http://x-berg.in-berlin.de/cgi-bin/viewcvs.cgi/ampr/axgetput/
5 */
6
7 #ifndef AXGETPUT_H
8 #define AXGETPUT_H
9
10 extern int fdin;
11 extern int fdout;
12 extern int fderr;
13
14 extern int fdin_is_pipe;
15 extern int fdout_is_pipe;
16
17 extern char myname[PATH_MAX+1];
18 extern char filename[PATH_MAX+1];
19 extern char err_msg[2048];
20
21 extern int is_stream;
22 extern int mode;
23 extern int do_crc_only;
24
25 extern char c_eol;
26 extern char *send_on_signal;
27
28 /* modes */
29 #define RECV_BIN 1 /* #BIN# protocol: receive */
30 #define SEND_BIN 2 /* #BIN# protocol: send */
31 #define RECV_YAPP 3 /* yapp protocol: receive */
32 #define SEND_YAPP 4 /* yapp protocol: send */
33 #define RECV_DIDADIT 5 /* didadit protocol: receive */
34 #define SEND_DIDADIT 6 /* didadit protocol: send */
35
36
37 /* block sizes */
38
39 extern unsigned int BLOCKSIZ;
40
41 #define BLOCKSIZ_MIN 1 /* not suggested */
42 #define BLOCKSIZ_DEFAULT 256 /* useful, because it fits in an ax25 frame */
43 #define BLOCKSIZ_MAX 1024 /* max. our buffer relies on it */
44
45 #endif /* AXGETPUT_H */