ftc.h 1.47 KB
/*
 * Modifications Copyright 1996, 1999, 2000, 2001, 2002, 2003 by Paul Mattes.
 * Copyright October 1995 by Dick Altenbern
 *  Permission to use, copy, modify, and distribute this software and its
 *  documentation for any purpose and without fee is hereby granted,
 *  provided that the above copyright notice appear in all copies and that
 *  both that copyright notice and this permission notice appear in
 *  supporting documentation.
 *
 * x3270, c3270, s3270 and tcl3270 are distributed in the hope that they will
 * be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the file LICENSE
 * for more details.
 */

/*
 *	ftc.h
 *		Global declarations for ft.c.
 */

#if defined(X3270_FT) /*[*/

#include <lib3270/filetransfer.h>

//	#define CHECK_FT_HANDLE(x) if(!x) x = ftsession;

LIB3270_INTERNAL Boolean ascii_flag;
LIB3270_INTERNAL Boolean cr_flag;
LIB3270_INTERNAL unsigned long ft_length;

LIB3270_INTERNAL H3270FT	* get_ft_handle(H3270 *hSession);

LIB3270_INTERNAL void		  ft_init(H3270 *hSession);

LIB3270_INTERNAL void		  ft_aborting(H3270FT *h, const char *reason);
LIB3270_INTERNAL void		  ft_complete(H3270FT *h, const char *errmsg);
LIB3270_INTERNAL void		  ft_failed(H3270FT *h, const char *errmsg);
LIB3270_INTERNAL void		  ft_message(H3270FT *h, const char *msg);
LIB3270_INTERNAL void		  ft_running(H3270FT *h, Boolean is_cut);
LIB3270_INTERNAL void		  ft_update_length(H3270FT *h);

#endif /*]*/