#include "DRW/drwwh.h"

#include "DRW/drwWwinit.h"
#include "DRW/drwWxdata.h"

#ifndef drwDSVh_H
 #include "DRW/drwDSVh.h"
#endif

#ifndef drwSelnfnh_H
 #include "DRW/drwSelnfnh.h"
#endif

#include "DRW/drwWRamTfr.h"
#include "DRW/drwURamTfr.h"


extern int drw_u_accept_ram_tfr(int *ramtfrtype,
                                int tfrsize,
                                wimp_w destw,
                                wimp_i desti,
                                int destx,
                                int desty,
                                bits filetype,
                                wimp_w wSavew,
                                byte **buffer,
                                int *buffpos,
                                int *buffsize)

{

return FALSE;

}



extern int drw_u_ramtfr(byte *addr,
                        int tfrinfotype,
                        void *tfrinfo,
                        wimp_caret *ghostcaret,
                        drw_wcaretseln *cseln,
                        int tfrtype,
                        int numtfrd,
                        int end_of_ram_tfr,
                        int *tfrsize,
                        byte **buffer,
                        int *buffpos,
                        int *buffsize)

{

/* drw_u_ramtfr is called from drw_wint_ramfetch on receiving a RAM_FETCH and
   from drw_wint_ramtransmit on receiving a RAM_TRANSMIT message. tfrtype is
   the type of the received message. tfrinfotype is the type of the data
   structure representing the data being transferred. end_of_ram_tfr is
   already known at this stage for a RAM_TRANSMIT, but must be set by the
   user routine for when responding to a RAM_FETCH message if it has is sending
   its last data block, or an error has occured. */

return FALSE;

}


extern int drw_u_returned_ramtfr(int my_ref,
                                 int your_ref,
                                 int tfrtype,
                                 int firstfetch,
                                 int tfrinfotype,
                                 void *tfrinfo)

{

int tryagain;

tryagain = FALSE;
if (tfrtype == message_RAM_FETCH && firstfetch)
 tryagain = TRUE;

return tryagain;

}


extern int drw_u_try_ram_fetch(bits file_type,
                               int est_size,
                               wimp_w w,
                               wimp_i i,
                               int x,
                               int y,
                               wimp_caret *ghostcaret,
                               void *selndata,
                               byte **buffptr,
                               int *buffsize,
                               int *buffpos)

{

drw_wcaretseln *cseln;

cseln = (drw_wcaretseln *) selndata;

if (buffptr)
 *buffptr = NULL;

return FALSE;

}


extern void drw_u_post_ramtfr(int tfrtypein,
                              int tfrinfotype,
                              void *tfrinfo,
                              wimp_caret *ghostcaret,
                              drw_wcaretseln *cseln,
                              byte *buffer,
                              int buffpos,
                              int buffsize)

{

return;

}


