/* drwDataSv */


#ifdef __cplusplus 
extern "C" {
#endif

extern int drw_compare_dtfr_tfrinfo(void *thistfr, void *cmpwith);
extern int drw_send_data_load_msg(int inmyref,
                                  wimp_t desttask,
                                  wimp_w destwhan,
                                  wimp_i destic,
                                  int destx,
                                  int desty,
                                  int est_size,
                                  bits filetype,
                                  char *filename);
extern void drw_wint_datasave(wimp_t desttask,
                              int inmyref,
                              int inyourref,
                              wimp_w destwhan,
                              wimp_i destic,
                              int destx,
                              int desty,
                              int est_size,
                              bits filetype,
                              char *filepath);
extern void drw_resume_data_save(int inyourref);
extern void drw_wint_dataload(bits type,
                              wimp_t desttask,
                              int inmyref,
                              int inyourref,
                              wimp_w whan,
                              wimp_i icon,
                              int x,
                              int y,
                              int size,
                              bits filetype,
                              char *filename);
extern int drw_post_data_load(drw_data_tfr_flags tfrflags,
                              int action,
                              bits msgtype,
                              char *path,
                              char *leafname,
                              wimp_w whandle,
                              wimp_i iconno,
                              char *ftype,
                              bits filetype,
                              int workx,
                              int worky);
extern void drw_wint_dataloadack(char *filename,
                                 wimp_t desttask,
                                 int inmyref,
                                 int inyourref,
                                 wimp_w whan,
                                 wimp_i icon,
                                 int x,
                                 int y,
                                 int size,
                                 bits filetype,
                                 int istempfile);
extern void drw_wint_recv_data_load_ack(wimp_t desttask,
                                        int inmyref,
                                        int inyourref,
                                        wimp_w destwhan,
                                        wimp_i destic,
                                        int destx,
                                        int desty,
                                        int est_size,
                                        bits filetype,
                                        char *filename);
extern int drw_wint_send_ramtfr_msg(wimp_message *wm,
                                    int tfrtype,
                                    byte *addr,
                                    byte *from,
                                    int buffsize,
                                    int nbytes);
extern void drw_start_data_tfr(wimp_message *wm,
                               drw_datatfr *dtfr,
                               int tfrtype,
                               int firstfetch,
                               wimp_t desttask,
                               int myref,
                               wimp_w destwhan,
                               wimp_i destic,
                               int destx,
                               int desty,
                               int size,
                               bits ftype,
                               char *filename);
extern void drw_wint_dataloadapp(wimp_t desttask,
                                 int inmyref,
                                 int inyourref,
                                 wimp_w destwhan,
                                 wimp_i destic,
                                 int destx,
                                 int desty,
                                 int sizein,
                                 bits ftype,
                                 char *filename);
extern void drw_wint_returned_data_save_ack(wimp_message *wmsg);
extern void drw_wint_returned_data_load(wimp_message *wmsg);
extern void drw_wint_returned_data_save(wimp_message *wmsg);
extern void drw_set_keep_data_tfr_flag(int value);
extern int drw_compare_dsvd_ref(void *thisdtfr, void *cmpwith);
extern void drw_send_datasavedmsg(int my_saved_ref);
extern void drw_recv_datasaved_msg(wimp_message *wmsg);
extern void drw_catch_msg_datasave(wimp_message *wmsg,
                            bits msgactioncode,
                            wimp_event_no reason,
                            void *actiondata);
extern void drw_catch_datasaveack(wimp_message *wmsg,
                                  bits msgactioncode,
                                  wimp_event_no reason,
                                  void *actiondata);
extern void drw_catch_msg_dataload(wimp_message *wmsg,
                                   bits msgactioncode,
                                   wimp_event_no reason,
                                   void *actiondata);
extern void drw_catch_msg_dataloadack(wimp_message *wmsg,
                                      bits msgactioncode,
                                      wimp_event_no reason,
                                      void *actiondata);
extern void drw_catch_msg_dataopen(wimp_message *wmsg,
                                   bits msgactioncode,
                                   wimp_event_no reason,
                                   void *actiondata);
extern void drw_catch_msg_datasaved(wimp_message *wmsg,
                                    bits msgactioncode,
                                    wimp_event_no reason,
                                    void *actiondata);
extern void drw_catch_rtnd_dataload(wimp_message *wmsg,
                                    bits msgackcode,
                                    wimp_event_no reason,
                                    void *actiondata);
extern void drw_catch_rtnd_datasaveack(wimp_message *wmsg,
                                       bits msgackcode,
                                       wimp_event_no reason,
                                       void *actiondata);
extern void drw_catch_rtnd_datasave(wimp_message *wmsg,
                                    bits msgackcode,
                                    wimp_event_no reason,
                                    void *actiondata);
extern void drw_datasave_init(void);
extern void drw_datasaved_init(void);
extern int drw_wimp_start_data_save(wimp_t sendto,
                                    wimp_w w,
                                    wimp_i i,
                                    int x,
                                    int y,
                                    bits filetype,
                                    char *leafname,
                                    int est_size);

#ifdef __cplusplus
}
#endif

