home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 200-299 / ff276.lzh / DateRequester / MRDateReq.h < prev    next >
C/C++ Source or Header  |  1989-11-09  |  1KB  |  35 lines

  1. /*  MRDateReq.h - definitions of the date requester package. */
  2.  
  3. #ifndef _MRDATEREQ_H
  4. #define _MRDATEREQ_H
  5. #include <libraries/dos.h>
  6. #include "MRDates.h"
  7.  
  8. /*  The following structure defines a packet used to interface with the
  9.  *  MRDateRequest function. It is highly recommended that objects of this
  10.  *  type be dynamically allocated using AllocMem() (or equivalent) to 
  11.  *  insure that the base address of the structure is longword-aligned.
  12.  *  Also note that the pointer to a structure of this type is equivalent
  13.  *  to a "struct DateTime *" since the first field in this structure is
  14.  *  an embedded ARP DateTime structure.
  15.  */
  16. typedef struct {
  17.     /* The following fields are filled in by the caller: */
  18.     struct DateTime     ARPDatePacket;
  19.     char                *prompt;
  20.     struct Window       *window;
  21.  
  22.     /* The following fields are filled in by MRDateRequest: */
  23.     struct Requester    *requester;     /* for local use only! */
  24.     MRDate              newDate;        /* alternate format date */
  25.     int                 status;         /* result code */
  26.     int                 myStrings;      /* true => strings are mine */
  27.     } MRDatePacket;
  28.  
  29. void            FreeMRDatePacket(/* MRDatePacket *thePacket */);
  30. MRDatePacket *  CreateMRDatePacket(/* struct DateStamp *theDate, 
  31.                                     int theFormat, int makeStrings */);
  32. int             MRDateRequest(/* MRDatePacket *datePacket */);
  33.  
  34. #endif
  35.