File: wgets.h

package info (click to toggle)
ncftp 2%3A3.2.4-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 3,316 kB
  • ctags: 3,323
  • sloc: ansic: 39,621; sh: 3,174; makefile: 883; cpp: 612; perl: 101
file content (39 lines) | stat: -rw-r--r-- 835 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/* WGets.h */

#ifndef _wgets_h_
#define _wgets_h_ 1

#define wg_TraceFileName "trace"

#define wg_EOF (-1)
#define wg_BadParamBlock (-2)
#define wg_DstSizeTooSmall (-3)
#define wg_WindowTooSmall (-4)
#define wg_BadCursesWINDOW (-5)
#define wg_BadCoordinates (-6)
#define wg_BadBufferPointer (-7)

#define wg_RegularEcho 0
#define wg_BulletEcho 1
#define wg_NoEcho 2

#define wg_Bullet '.'

#define wg_NoHistory	((FTPLineListPtr) 0)

typedef struct WGetsParams {
	WINDOW *w;				/* in */
	int sy, sx;				/* in */
	char *dst;				/* in, out */
	int fieldLen;			/* in */
	size_t dstSize;			/* in */
	int useCurrentContents;	/* in */
	int echoMode;			/* in */
	int changed;			/* out */
	int dstLen;				/* out */
	FTPLineListPtr history;	/* in, out */
} WGetsParams, *WGetsParamPtr;

int wg_Gets(WGetsParamPtr wgpp);

#endif	/* _wgets_h_ */