/*
 * save.h
 *
 * [Generated from save, 08 November 1995]
 */

#pragma include_only_once
#pragma force_top_level

#ifndef __save_h
#define __save_h

/*----- Overview ----------------------------------------------------------*
 *
 * Functions provided:
 *
 *  save
 */

/* --- save --- *
 *
 * On entry:	R0 == window handle to send to
 *		R1 == icon handle to send to
 *		R2 == estimated size of the data
 *		R3 == file type of data to send and flag:
 *		      bit 31: use R8 as below
 *		R4 == pointer to name of file (may be full path)
 *		R5 == address of handler block
 *		R6 == value to pass handlers in R10
 *		R7 == value to pass handlers in R12
 *		R8 == pointer to extra handler block (only if bit 31 of R3)
 *
 * On exit:	--
 *
 * Use:		Starts a save operation to another application.  The extra
 *		handler is used by systems like saveas which need to be
 *		aware of data transfer start/end conditions without
 *		interfering with the normal entry table.  This will not
 *		normally concern applications however.
 */

extern routine save;

/*----- The save handler --------------------------------------------------*/

#define sEntry__save 0

#define sEntry__send 4

#define sEntry__success 8

#define sEntry__failed 12

/*----- That's all, folks -------------------------------------------------*/

#endif
